| java.lang.Object org.apache.xerces.validators.common.XMLValidator
Inner Class :public interface AttributeValidator | |
Inner Class :final class AttValidatorNOTATION implements AttributeValidator | |
Inner Class :final class AttValidatorENUMERATION implements AttributeValidator | |
Inner Class :protected static class XPathMatcherStack | |
Inner Class :abstract protected class ValueStoreBase implements ValueStore | |
Inner Class :protected class UniqueValueStore extends ValueStoreBase | |
Inner Class :protected class KeyValueStore extends ValueStoreBase | |
Inner Class :protected class KeyRefValueStore extends ValueStoreBase | |
Inner Class :protected class ValueStoreCache | |
Inner Class :final static class OrderedHashtable implements Cloneable | |
Method Summary | |
public XPathMatcher | activateField(Field field) Request to activate the specified field. | public boolean | attribute(QName element, QName attrName, int attrValue) Signal the scanning of an attribute associated to the previous
start element tag. | public void | callCharacters(int ch) Call characters. | public void | callComment(int comment) Call comment. | public void | callEndCDATA() Call end CDATA section. | public void | callEndDocument() Call end document. | public void | callEndElement(int readerId) Call end element. | public void | callProcessingInstruction(int target, int data) Call processing instruction. | public void | callStandaloneIsYes() | public void | callStartCDATA() Call start CDATA section. | public void | callStartDocument() Call start document. | public void | callStartElement(QName element) Call start element. | public void | callTextDecl(int version, int encoding) Call text declaration. | public void | callXMLDecl(int version, int encoding, int standalone) Call XML declaration. | public void | element(QName element) Signal the scanning of an element name in a start element tag. | public void | endEntityReference(int entityName, int entityType, int entityContext) End entity reference. | public void | endNamespaceDeclScope(int prefix) End a namespace declaration scope. | public void | endValueScopeFor(IdentityConstraint identityConstraint) Ends the value scope for the specified identity constraint. | public boolean | externalEntityStandaloneCheck() External entity standalone check. | protected boolean | getAttDefIsExternal(QName element, QName attribute) Protected for use by AttributeValidator classes. | public int | getContentSpecHandle(int elementIndex) Returns the content spec handle for an element index. | public int | getContentSpecType(int elementIndex) Returns the content spec type for an element index. | public boolean | getDynamicValidationEnabled() Returns true if validation is dynamic. | public String | getExternalNoNamespaceSchema() | public String | getExternalSchemas() | public boolean | getLoadDTDGrammar() | public boolean | getNamespacesEnabled() Returns true if namespaces are enabled. | public boolean | getNormalizeConents() | public boolean | getSchemaFullCheckingEnabled() Returns true if full Schema checking is on. | public boolean | getSchemaValidationEnabled() Returns true if Schema support is on. | public boolean | getValidating() Return true if validating. | public boolean | getValidationEnabled() Returns true if validation is enabled. | public boolean | getWarningOnDuplicateAttDef() Returns true if duplicate attribute definitions signal a warning. | public boolean | getWarningOnUndeclaredElements() Returns true if undeclared elements signal a warning. | public void | initHandlers(boolean sendCharDataAsCharArray, XMLDocumentHandler docHandler, XMLDocumentHandler.DTDHandler dtdHandler) Set char data processing preference and handlers. | boolean | invalidStandaloneAttDef(QName element, QName attribute) Returns true if invalid standalone attribute definition. | public void | processCharacters(char[] chars, int offset, int length) Process characters. | public void | processCharacters(int data) Process characters. | public void | processWhitespace(char[] chars, int offset, int length) Process whitespace. | public void | processWhitespace(int data) Process whitespace. | protected void | reportRecoverableXMLError(int majorCode, int minorCode) Report a recoverable xml error. | protected void | reportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1) Report a recoverable xml error. | protected void | reportRecoverableXMLError(int majorCode, int minorCode, String string1) Report a recoverable xml error. | protected void | reportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1, int stringIndex2) Report a recoverable xml error. | protected void | reportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2) Report a recoverable xml error. | protected void | reportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2, String string3) Report a recoverable xml error. | public void | reset(StringPool stringPool) Reset. | public void | resetOrCopy(StringPool stringPool) Reset or copy. | public void | scanAttributeName(XMLEntityHandler.EntityReader entityReader, QName element, QName attribute) Scans attribute name. | public void | scanElementType(XMLEntityHandler.EntityReader entityReader, char fastchar, QName element) Scans element type. | public boolean | scanExpectedElementType(XMLEntityHandler.EntityReader entityReader, char fastchar, QName element) Scans expected element type. | public void | sendEndOfInputNotifications(int entityName, boolean moreToFollow) Send end of input notification. | public void | sendReaderChangeNotifications(XMLEntityHandler.EntityReader reader, int readerId) Send reader change notifications. | public void | setDynamicValidationEnabled(boolean flag) Sets whether validation is dynamic. | public void | setExternalNoNamespaceSchema(Object value) | public void | setExternalSchemas(Object value) | public void | setGrammarResolver(GrammarResolver grammarResolver) | public void | setLoadDTDGrammar(boolean loadDG) | public void | setNamespacesEnabled(boolean flag) Sets whether namespaces are enabled. | public void | setNormalizeAttributeValues(boolean normalize) | public void | setNormalizeContents(boolean normalize) | public void | setRootElementType(QName rootElement) Sets the root element. | public void | setSchemaFullCheckingEnabled(boolean flag) | public void | setSchemaValidationEnabled(boolean flag) Sets whether Schema support is on/off. | public void | setValidationEnabled(boolean flag) Turning on validation/dynamic turns on validation if it is off, and
this is remembered. | public void | setWarningOnDuplicateAttDef(boolean flag) Sets whether duplicate attribute definitions signal a warning. | public void | setWarningOnUndeclaredElements(boolean flag) Sets whether undeclared elements signal a warning. | public void | startEntityReference(int entityName, int entityType, int entityContext) Start entity reference. | public void | startNamespaceDeclScope(int prefix, int uri) Start a new namespace declaration scope. | public void | startValueScopeFor(IdentityConstraint identityConstraint) Start the value scope for the specified identity constraint. | void | validateUsingDV(DatatypeValidator dv, String content, boolean onlyVal3Types) | protected int | whatCanGoHere(int elementIndex, boolean fullyValid, InsertableElementsInfo info) Returns information about which elements can be placed at a particular point
in the passed element's content model.
Note that the incoming content model to test must be valid at least up to
the insertion point. |
DEBUG_IDENTITY_CONSTRAINTS | final protected static boolean DEBUG_IDENTITY_CONSTRAINTS(Code) | | Compile to true to debug identity constraints.
|
DEBUG_VALUE_STORES | final protected static boolean DEBUG_VALUE_STORES(Code) | | Compile to true to debug value stores.
|
fInElementContent | boolean fInElementContent(Code) | | |
fMatcherStack | protected XPathMatcherStack fMatcherStack(Code) | | Stack of active XPath matchers for identity constraints. All
active XPath matchers are notified of startElement, characters
and endElement callbacks in order to perform their matches.
For each element with identity constraints, the selector of
each identity constraint is activated. When the selector matches
its XPath, then all the fields of the identity constraint are
activated.
Note: Once the activation scope is left, the
XPath matchers are automatically removed from the stack of
active matchers and no longer receive callbacks.
|
fStandaloneReader | int fStandaloneReader(Code) | | |
fValidating | boolean fValidating(Code) | | |
fValueStoreCache | protected ValueStoreCache fValueStoreCache(Code) | | Cache of value stores for identity constraint fields.
|
activateField | public XPathMatcher activateField(Field field) throws Exception(Code) | | Request to activate the specified field. This method returns the
matcher for the field.
Parameters: field - The field to activate. |
attribute | public boolean attribute(QName element, QName attrName, int attrValue) throws Exception(Code) | | Signal the scanning of an attribute associated to the previous
start element tag.
Parameters: element - Element name scanned. Parameters: attrName - Attribute name scanned. Parameters: attrValue - The string pool index of the attribute value. |
callCharacters | public void callCharacters(int ch) throws Exception(Code) | | Call characters.
|
callComment | public void callComment(int comment) throws Exception(Code) | | Call comment.
|
callEndCDATA | public void callEndCDATA() throws Exception(Code) | | Call end CDATA section.
|
callEndDocument | public void callEndDocument() throws Exception(Code) | | Call end document.
|
callEndElement | public void callEndElement(int readerId) throws Exception(Code) | | Call end element.
|
callProcessingInstruction | public void callProcessingInstruction(int target, int data) throws Exception(Code) | | Call processing instruction.
|
callStandaloneIsYes | public void callStandaloneIsYes() throws Exception(Code) | | |
callStartCDATA | public void callStartCDATA() throws Exception(Code) | | Call start CDATA section.
|
callStartDocument | public void callStartDocument() throws Exception(Code) | | Call start document.
|
callStartElement | public void callStartElement(QName element) throws Exception(Code) | | Call start element.
|
callTextDecl | public void callTextDecl(int version, int encoding) throws Exception(Code) | | Call text declaration.
|
callXMLDecl | public void callXMLDecl(int version, int encoding, int standalone) throws Exception(Code) | | Call XML declaration.
|
element | public void element(QName element) throws Exception(Code) | | Signal the scanning of an element name in a start element tag.
Parameters: element - Element name scanned. |
endEntityReference | public void endEntityReference(int entityName, int entityType, int entityContext) throws Exception(Code) | | End entity reference.
|
endNamespaceDeclScope | public void endNamespaceDeclScope(int prefix) throws Exception(Code) | | End a namespace declaration scope.
|
endValueScopeFor | public void endValueScopeFor(IdentityConstraint identityConstraint) throws Exception(Code) | | Ends the value scope for the specified identity constraint.
Parameters: identityConstraint - The identity constraint. |
externalEntityStandaloneCheck | public boolean externalEntityStandaloneCheck()(Code) | | External entity standalone check.
|
getAttDefIsExternal | protected boolean getAttDefIsExternal(QName element, QName attribute)(Code) | | Protected for use by AttributeValidator classes.
|
getContentSpecHandle | public int getContentSpecHandle(int elementIndex)(Code) | | Returns the content spec handle for an element index.
|
getContentSpecType | public int getContentSpecType(int elementIndex)(Code) | | Returns the content spec type for an element index.
|
getDynamicValidationEnabled | public boolean getDynamicValidationEnabled()(Code) | | Returns true if validation is dynamic.
|
getExternalNoNamespaceSchema | public String getExternalNoNamespaceSchema()(Code) | | |
getLoadDTDGrammar | public boolean getLoadDTDGrammar()(Code) | | Returns fLoadDTDGrammar *
|
getNamespacesEnabled | public boolean getNamespacesEnabled()(Code) | | Returns true if namespaces are enabled.
|
getNormalizeConents | public boolean getNormalizeConents()(Code) | | |
getSchemaFullCheckingEnabled | public boolean getSchemaFullCheckingEnabled()(Code) | | Returns true if full Schema checking is on.
|
getSchemaValidationEnabled | public boolean getSchemaValidationEnabled()(Code) | | Returns true if Schema support is on.
|
getValidating | public boolean getValidating()(Code) | | Return true if validating.
|
getValidationEnabled | public boolean getValidationEnabled()(Code) | | Returns true if validation is enabled.
|
getWarningOnDuplicateAttDef | public boolean getWarningOnDuplicateAttDef()(Code) | | Returns true if duplicate attribute definitions signal a warning.
|
getWarningOnUndeclaredElements | public boolean getWarningOnUndeclaredElements()(Code) | | Returns true if undeclared elements signal a warning.
|
invalidStandaloneAttDef | boolean invalidStandaloneAttDef(QName element, QName attribute)(Code) | | Returns true if invalid standalone attribute definition.
|
processCharacters | public void processCharacters(char[] chars, int offset, int length) throws Exception(Code) | | Process characters. Schema Normalization
|
processCharacters | public void processCharacters(int data) throws Exception(Code) | | Process characters.
|
processWhitespace | public void processWhitespace(char[] chars, int offset, int length) throws Exception(Code) | | Process whitespace.
|
processWhitespace | public void processWhitespace(int data) throws Exception(Code) | | Process whitespace.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode) throws Exception(Code) | | Report a recoverable xml error.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1) throws Exception(Code) | | Report a recoverable xml error.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode, String string1) throws Exception(Code) | | Report a recoverable xml error.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1, int stringIndex2) throws Exception(Code) | | Report a recoverable xml error.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2) throws Exception(Code) | | Report a recoverable xml error.
|
reportRecoverableXMLError | protected void reportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2, String string3) throws Exception(Code) | | Report a recoverable xml error.
|
sendEndOfInputNotifications | public void sendEndOfInputNotifications(int entityName, boolean moreToFollow) throws Exception(Code) | | Send end of input notification.
|
setDynamicValidationEnabled | public void setDynamicValidationEnabled(boolean flag) throws Exception(Code) | | Sets whether validation is dynamic.
|
setExternalNoNamespaceSchema | public void setExternalNoNamespaceSchema(Object value)(Code) | | |
setExternalSchemas | public void setExternalSchemas(Object value)(Code) | | |
setLoadDTDGrammar | public void setLoadDTDGrammar(boolean loadDG)(Code) | | Sets fLoadDTDGrammar when validation is off *
|
setNamespacesEnabled | public void setNamespacesEnabled(boolean flag)(Code) | | Sets whether namespaces are enabled.
|
setNormalizeAttributeValues | public void setNormalizeAttributeValues(boolean normalize)(Code) | | Sets fNormalizeAttributeValues *
|
setNormalizeContents | public void setNormalizeContents(boolean normalize)(Code) | | Sets fNormalizeContents *
|
setRootElementType | public void setRootElementType(QName rootElement)(Code) | | Sets the root element.
|
setSchemaFullCheckingEnabled | public void setSchemaFullCheckingEnabled(boolean flag)(Code) | | Sets whether full Schema error checking is on/off
|
setSchemaValidationEnabled | public void setSchemaValidationEnabled(boolean flag)(Code) | | Sets whether Schema support is on/off.
|
setValidationEnabled | public void setValidationEnabled(boolean flag) throws Exception(Code) | | Turning on validation/dynamic turns on validation if it is off, and
this is remembered. Turning off validation DISABLES validation/dynamic
if it is on. Turning off validation/dynamic DOES NOT turn off
validation if it was explicitly turned on, only if it was turned on
BECAUSE OF the call to turn validation/dynamic on. Turning on
validation will REENABLE and turn validation/dynamic back on if it
was disabled by a call that turned off validation while
validation/dynamic was enabled.
|
setWarningOnDuplicateAttDef | public void setWarningOnDuplicateAttDef(boolean flag)(Code) | | Sets whether duplicate attribute definitions signal a warning.
|
setWarningOnUndeclaredElements | public void setWarningOnUndeclaredElements(boolean flag)(Code) | | Sets whether undeclared elements signal a warning.
|
startEntityReference | public void startEntityReference(int entityName, int entityType, int entityContext) throws Exception(Code) | | Start entity reference.
|
startNamespaceDeclScope | public void startNamespaceDeclScope(int prefix, int uri) throws Exception(Code) | | Start a new namespace declaration scope.
|
startValueScopeFor | public void startValueScopeFor(IdentityConstraint identityConstraint) throws Exception(Code) | | Start the value scope for the specified identity constraint. This
method is called when the selector matches in order to initialize
the value store.
Parameters: identityConstraint - The identity constraint. |
whatCanGoHere | protected int whatCanGoHere(int elementIndex, boolean fullyValid, InsertableElementsInfo info) throws Exception(Code) | | Returns information about which elements can be placed at a particular point
in the passed element's content model.
Note that the incoming content model to test must be valid at least up to
the insertion point. If not, then -1 will be returned and the info object
will not have been filled in.
If, on return, the info.isValidEOC flag is set, then the 'insert after'
elemement is a valid end of content, i.e. nothing needs to be inserted
after it to make the parent element's content model valid.
Parameters: elementIndex - The index within the ElementDeclPool of theelement which is being querying. Parameters: fullyValid - Only return elements that can be inserted and stillmaintain the validity of subsequent elements past theinsertion point (if any). If the insertion point is atthe end, and this is true, then only elements that canbe legal final states will be returned. Parameters: info - An object that contains the required input data for the method,and which will contain the output information if successful. The value -1 if fully valid, else the 0 based index of the childthat first failed before the insertion point. If the valuereturned is equal to the number of children, then the specifiedchildren are valid but additional content is required to reach avalid ending state. exception: Exception - Thrown on error. See Also: InsertableElementsInfo |
|
|