Class ValidatingInfoXMLStreamReader
java.lang.Object
javax.xml.stream.util.StreamReaderDelegate
org.apache.xmlbeans.impl.validator.ValidatingXMLStreamReader
org.apache.xmlbeans.impl.validator.ValidatingInfoXMLStreamReader
- All Implemented Interfaces:
XMLStreamConstants,XMLStreamReader
public class ValidatingInfoXMLStreamReader extends ValidatingXMLStreamReader implements XMLStreamReader
Extension of
ValidatingXMLStreamReader to provide Post Schema Validation Info
over an XMLStreamReader.- Author:
- Cezar Andrei (cezar.andrei at bea.com) Date: Aug 17, 2004
-
Field Summary
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT -
Constructor Summary
Constructors Constructor Description ValidatingInfoXMLStreamReader() -
Method Summary
Modifier and Type Method Description booleangetBooleanValue()byte[]getByteArrayValue()SchemaLocalAttributegetCurrentAttribute()SchemaLocalElementgetCurrentElement()SchemaTypegetCurrentElementSchemaType()SchemaAttributeModelgetCurrentWildcardAttribute()SchemaParticlegetCurrentWildcardElement()BigDecimalgetDecimalValue()doublegetDoubleValue()floatgetFloatValue()GDategetGDateValue()GDurationgetGDurationValue()ListgetListTypes()ListgetListValue()QNamegetQNameValue()StringgetStringValue()SchemaTypegetUnionType()intnextWithAttributes()protected voidvalidate_attributes(int attCount)Methods inherited from class org.apache.xmlbeans.impl.validator.ValidatingXMLStreamReader
getProperty, init, isValid, next, validate_attributeMethods inherited from class javax.xml.stream.util.StreamReaderDelegate
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, standaloneSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.stream.XMLStreamReader
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet
-
Constructor Details
-
ValidatingInfoXMLStreamReader
public ValidatingInfoXMLStreamReader()
-
-
Method Details
-
nextWithAttributes
- Throws:
XMLStreamException
-
validate_attributes
protected void validate_attributes(int attCount)- Overrides:
validate_attributesin classValidatingXMLStreamReader
-
getCurrentElementSchemaType
- Returns:
- Returns the SchemaType of the current element.
This can be different than getCurrentElement().getType() if xsi:type attribute is used.
Null is returned if no schema type is available.
For attribute types use
getCurrentAttribute().getType(). Warning: the returned SchemaType can be anXmlBeans.NO_TYPE, seeSchemaType.isNoType(). Or can be the parent type, for unrecognized elements that are part of wildcards.
-
getCurrentElement
- Returns:
- Returns the curent local element, null if one is not available, see
getCurrentWildcardElement().
-
getCurrentWildcardElement
- Returns:
- Returns the current particle, if this is a wildcard particle
SchemaParticle.WILDCARDmethodgetCurrentElement()might return null if wildcard's processContents is skip or lax.
-
getCurrentAttribute
- Returns:
- Returns the curent local attribute, global attribute if the current attribute is part of an attribute wildcard, or null if none is available.
-
getCurrentWildcardAttribute
- Returns:
- Returns the attribute model for attributes if available, else null is returned.
-
getStringValue
-
getDecimalValue
-
getBooleanValue
public boolean getBooleanValue() -
getFloatValue
public float getFloatValue() -
getDoubleValue
public double getDoubleValue() -
getQNameValue
-
getGDateValue
-
getGDurationValue
-
getByteArrayValue
public byte[] getByteArrayValue() -
getListValue
-
getListTypes
-
getUnionType
-