| Constructor | Description |
|---|---|
XMLFileReader() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getContextPath() |
Get the context path required by the reader to read the input source.
|
Node |
getCurrentNode(Transformer t,
XMLStreamReader xsr) |
Return current XML Stream position as Node.
|
InputFormatType |
getInputFormat() |
Return the input format supported by the reader.
|
Map<String,Class<?>> |
getReaderInfo() |
Get information required by the reader to read the input source.
|
void |
numberXPath(Node node,
int index) |
Assign PATH to all node in the tree.
|
void |
read(ValidationInput input,
ValidationContext context) |
Main method to process the input.
|
void |
setContextPath(String contextPath) |
Set the context path required by the reader to read the input source.
|
void |
setReaderInfo(Map<String,Class<?>> readerInfo) |
Set information required by the reader to read the input source.
|
void |
setValidator(Validator validator) |
Set Validation to call during the reading.
|
void |
validate(LightweightElement lwElem,
ValidationContext context) |
Validate the business object expected in the rule (lightweight element).
|
void |
validate(Node node,
ValidationContext context,
Class<?> ruleClass) |
Validate the business object expected in the rule (POJO or Node).
|
public InputFormatType getInputFormat()
getInputFormat in interface Readerpublic void setValidator(Validator validator)
setValidator in interface Readervalidator - Validation to apply.public void read(ValidationInput input, ValidationContext context) throws ValidationException
read in interface Readerinput - The input to readcontext - Validation context with all information requiredValidationException - The validation exception.public void numberXPath(Node node, int index)
node - Root Node from which numbering starts.index - Current list index of Node.public void validate(Node node, ValidationContext context, Class<?> ruleClass) throws ValidationException
node - Root node for validation.context - Context information.ruleClass - Target class for current node.ValidationException - Validation exception.public void validate(LightweightElement lwElem, ValidationContext context) throws ValidationException
lwElem - Element for validation.context - Context information.ValidationException - Validation exception.public Node getCurrentNode(Transformer t, XMLStreamReader xsr) throws ValidationException
t - Transformer to use.xsr - Current XMLStreamReader position.ValidationException - Exception raised in transformation process.public Map<String,Class<?>> getReaderInfo()
public void setReaderInfo(Map<String,Class<?>> readerInfo)
readerInfo - informationpublic String getContextPath()
public void setContextPath(String contextPath)
contextPath - The context pathCopyright © 2025. All rights reserved.