Class 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.
  • Constructor Details

    • ValidatingInfoXMLStreamReader

      public ValidatingInfoXMLStreamReader()
  • Method Details

    • nextWithAttributes

      public int nextWithAttributes() throws XMLStreamException
      Throws:
      XMLStreamException
    • getCurrentElementSchemaType

      public SchemaType 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 an XmlBeans.NO_TYPE, see SchemaType.isNoType(). Or can be the parent type, for unrecognized elements that are part of wildcards.
    • getCurrentElement

      public SchemaLocalElement getCurrentElement()
      Returns:
      Returns the curent local element, null if one is not available, see getCurrentWildcardElement().
    • getCurrentWildcardElement

      public SchemaParticle getCurrentWildcardElement()
      Returns:
      Returns the current particle, if this is a wildcard particle SchemaParticle.WILDCARD method getCurrentElement() might return null if wildcard's processContents is skip or lax.
    • getCurrentAttribute

      public SchemaLocalAttribute 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

      public SchemaAttributeModel getCurrentWildcardAttribute()
      Returns:
      Returns the attribute model for attributes if available, else null is returned.
    • getStringValue

      public String getStringValue()
    • getDecimalValue

      public BigDecimal getDecimalValue()
    • getBooleanValue

      public boolean getBooleanValue()
    • getFloatValue

      public float getFloatValue()
    • getDoubleValue

      public double getDoubleValue()
    • getQNameValue

      public QName getQNameValue()
    • getGDateValue

      public GDate getGDateValue()
    • getGDurationValue

      public GDuration getGDurationValue()
    • getByteArrayValue

      public byte[] getByteArrayValue()
    • getListValue

      public List<?> getListValue()
    • getListTypes

      public List<SchemaType> getListTypes()
    • getUnionType

      public SchemaType getUnionType()