| Modifier and Type | Field and Description |
|---|---|
| protected BitSet | mCurrDefaultAttrs
Bitset used for keeping track of defaulted attributes for which values have been found. |
| protected boolean | mHasAttrDefaults
Flag that indicates if current element has any attributes that have default values. |
| protected boolean | mHasNormalizableAttrs
Flag that indicates whether any of the attributes is potentially normalizable, and we are in attribute-normalizing mode. |
| protected BitSet | mTmpDefaultAttrs
Reusable lazily instantiated BitSet; needed to keep track of 'missing' attributes with default values (normal default, #FIXED). |
| Access | Constructor and Description |
|---|---|
| public | DTDTypingNonValidator(DTDSubset schema, ValidationContext ctxt, boolean hasNsDefaults, Map<PrefixedName, DTDElement> elemSpecs, Map<String, EntityDecl> genEntities)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ElementIdMap | |
| public final boolean | Returns: False, since this is not a real validatorImplements abstract com.
|
| public void | setAttrValueNormalization(boolean state)
Overrides com. This 'validator' will not normalize any attributes, so let's implement this as no-op. |
| public String | validateAttribute(String localName, String uri, String prefix, String value)
Implements abstract com. Callback method called on validator to give it a chance to validate the value of an attribute, as well as to normalize its value if appropriate (remove leading/trailing/intervening white space for certain token types etc.). |
| public String | validateAttribute(String localName, String uri, String prefix, char[]
Character array that contains value (possibly
along with some other text) valueChars, int Index of the first character of the value in
in valueStart, int valueChars arrayIndex of the character AFTER the last character;
so that the length of the value String is
valueEnd)valueEnd - valueStartImplements abstract com. Callback method called on validator to give it a chance to validate the value of an attribute, as well as to normalize its value if appropriate (remove leading/trailing/intervening white space for certain token types etc.). |
| public int | validateElementAndAttributes()
Implements abstract com. Method called after calling |
| public int | validateElementEnd(String localName, String uri, String prefix)
Implements abstract com. Method called right after encountering an element close tag. |
| public void | validateElementStart(String localName, String uri, String prefix)
Implements abstract com. Method called to update information about the newly encountered (start) element. |
| public void | validationCompleted(boolean
Flag that indicates whether this method was called by the
context due to the end of the stream (true); or by an application
requesting end of validation (false). eod)Implements abstract com. Method called when the validation is completed; either due to the input stream ending, or due to an explicit 'stop validation' request by the application (via context object). |
| mCurrDefaultAttrs | back to summary |
|---|---|
| protected BitSet mCurrDefaultAttrs Bitset used for keeping track of defaulted attributes for which values have been found. Only non-null when current element does have such attributes | |
| mHasAttrDefaults | back to summary |
|---|---|
| protected boolean mHasAttrDefaults Flag that indicates if current element has any attributes that have default values. | |
| mHasNormalizableAttrs | back to summary |
|---|---|
| protected boolean mHasNormalizableAttrs Flag that indicates whether any of the attributes is potentially normalizable, and we are in attribute-normalizing mode. | |
| mTmpDefaultAttrs | back to summary |
|---|---|
| protected BitSet mTmpDefaultAttrs Reusable lazily instantiated BitSet; needed to keep track of 'missing' attributes with default values (normal default, #FIXED). | |
| DTDTypingNonValidator | back to summary |
|---|---|
| public DTDTypingNonValidator(DTDSubset schema, ValidationContext ctxt, boolean hasNsDefaults, Map<PrefixedName, DTDElement> elemSpecs, Map<String, EntityDecl> genEntities) | |
| getIdMap | back to summary |
|---|---|
| protected ElementIdMap getIdMap() Implements abstract com.
| |
| reallyValidating | back to summary |
|---|---|
| public final boolean reallyValidating() Implements abstract com.
| |
| setAttrValueNormalization | back to summary |
|---|---|
| public void setAttrValueNormalization(boolean state) Overrides com. This 'validator' will not normalize any attributes, so let's implement this as no-op.
| |
| validateAttribute | back to summary |
|---|---|
| public String validateAttribute(String localName, String uri, String prefix, String value) throws XMLStreamException Implements abstract com. Doc from org. Callback method called on validator to give it a chance to validate the value of an attribute, as well as to normalize its value if appropriate (remove leading/trailing/intervening white space for certain token types etc.).
| |
| validateAttribute | back to summary |
|---|---|
| public String validateAttribute(String localName, String uri, String prefix, char[] valueChars, int valueStart, int valueEnd) throws XMLStreamException Implements abstract com. Doc from org. Callback method called on validator to give it a chance to validate the value of an attribute, as well as to normalize its value if appropriate (remove leading/trailing/intervening white space for certain token types etc.).
| |
| validateElementAndAttributes | back to summary |
|---|---|
| public int validateElementAndAttributes() throws XMLStreamException Implements abstract com. Doc from org. Method called after calling
| |
| validateElementEnd | back to summary |
|---|---|
| public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException Implements abstract com. Doc from org. Method called right after encountering an element close tag.
| |
| validateElementStart | back to summary |
|---|---|
| public void validateElementStart(String localName, String uri, String prefix) throws XMLStreamException Implements abstract com. Doc from com. Method called to update information about the newly encountered (start) element. At this point namespace information has been resolved, but no DTD validation has been done. Validator is to do these validations, including checking for attribute value (and existence) compatibility.
| |
| validationCompleted | back to summary |
|---|---|
| public void validationCompleted(boolean eod) Implements abstract com. Doc from org. Method called when the validation is completed; either due to the input stream ending, or due to an explicit 'stop validation' request by the application (via context object).
| |