public class ValidatingXMLStreamReader extends StreamReaderDelegate implements XMLStreamReader
| Modifier and Type | Field and Description |
|---|---|
protected Validator |
_validator |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
ValidatingXMLStreamReader()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String s) |
void |
init(XMLStreamReader xsr,
boolean startWithCurrentEvent,
SchemaType contentType,
SchemaTypeLoader stl,
XmlOptions options,
Collection<XmlError> errorListener)
Used in case of reusing the same ValidatinXMLStreamReader object
|
boolean |
isValid() |
int |
next() |
protected void |
validate_attribute(int attIndex) |
protected void |
validate_attributes(int attCount) |
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, setParent, standaloneSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSetprotected Validator _validator
public ValidatingXMLStreamReader()
init(javax.xml.stream.XMLStreamReader, boolean, org.apache.xmlbeans.SchemaType, org.apache.xmlbeans.SchemaTypeLoader, org.apache.xmlbeans.XmlOptions, java.util.Collection<org.apache.xmlbeans.XmlError>)public void init(XMLStreamReader xsr, boolean startWithCurrentEvent, SchemaType contentType, SchemaTypeLoader stl, XmlOptions options, Collection<XmlError> errorListener)
xsr - The stream to be validatedstartWithCurrentEvent - Validation will start if true with the current event or if false with the next event in the streamcontentType - The schemaType of the content. This can be null for document and global Att validationstl - SchemaTypeLoader context of validationoptions - Validator optionserrorListener - Errors and warnings listenerpublic Object getProperty(String s) throws IllegalArgumentException
getProperty in interface XMLStreamReadergetProperty in class StreamReaderDelegateIllegalArgumentExceptionpublic int next()
throws XMLStreamException
next in interface XMLStreamReadernext in class StreamReaderDelegateXMLStreamExceptionprotected void validate_attributes(int attCount)
protected void validate_attribute(int attIndex)
public boolean isValid()