public class DTDTypingNonValidator extends DTDValidatorBase
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.
|
EMPTY_MAP, mAttrCount, mAttrSpecs, mCurrAttrDefs, mCurrElem, mElemCount, mElems, mIdAttrIndex, mNormAttrs, mTmpKey, NO_ATTRS
Constructor and Description |
---|
DTDTypingNonValidator(DTDSubset schema,
org.codehaus.stax2.validation.ValidationContext ctxt,
boolean hasNsDefaults,
Map<PrefixedName,DTDElement> elemSpecs,
Map<String,EntityDecl> genEntities) |
Modifier and Type | Method and Description |
---|---|
protected ElementIdMap |
getIdMap() |
boolean |
reallyValidating() |
void |
setAttrValueNormalization(boolean state)
This 'validator' will not normalize any attributes,
so let's implement this as no-op.
|
String |
validateAttribute(String localName,
String uri,
String prefix,
char[] valueChars,
int valueStart,
int valueEnd) |
String |
validateAttribute(String localName,
String uri,
String prefix,
String value) |
int |
validateElementAndAttributes() |
int |
validateElementEnd(String localName,
String uri,
String prefix) |
void |
validateElementStart(String localName,
String uri,
String prefix)
Method called to update information about the newly encountered (start)
element.
|
void |
validationCompleted(boolean eod) |
checkNsDefaults, doAddDefaultValue, doReportValidationProblem, getAttributeType, getIdAttrIndex, getNotationAttrIndex, getSchema, hasNsDefaults, mayHaveNsDefaults, validateText, validateText
protected boolean mHasAttrDefaults
protected BitSet mCurrDefaultAttrs
protected boolean mHasNormalizableAttrs
public DTDTypingNonValidator(DTDSubset schema, org.codehaus.stax2.validation.ValidationContext ctxt, boolean hasNsDefaults, Map<PrefixedName,DTDElement> elemSpecs, Map<String,EntityDecl> genEntities)
public final boolean reallyValidating()
reallyValidating
in class DTDValidatorBase
public void setAttrValueNormalization(boolean state)
setAttrValueNormalization
in class DTDValidatorBase
public void validateElementStart(String localName, String uri, String prefix) throws XMLStreamException
DTDValidatorBase
validateElementStart
in class DTDValidatorBase
XMLStreamException
public String validateAttribute(String localName, String uri, String prefix, String value) throws XMLStreamException
validateAttribute
in class DTDValidatorBase
XMLStreamException
public String validateAttribute(String localName, String uri, String prefix, char[] valueChars, int valueStart, int valueEnd) throws XMLStreamException
validateAttribute
in class DTDValidatorBase
XMLStreamException
public int validateElementAndAttributes() throws XMLStreamException
validateElementAndAttributes
in class DTDValidatorBase
XMLStreamException
public int validateElementEnd(String localName, String uri, String prefix) throws XMLStreamException
validateElementEnd
in class DTDValidatorBase
XMLStreamException
public void validationCompleted(boolean eod)
validationCompleted
in class DTDValidatorBase
protected ElementIdMap getIdMap()
getIdMap
in class DTDValidatorBase
Copyright © 2018 FasterXML. All rights reserved.