APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.jaxp.validation

pack-priv final Class ValidatorHandlerImpl

extends ValidatorHandler
implements DTDHandler, EntityState, PSVIProvider, ValidatorHelper, XMLDocumentHandler
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler, com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHelper, com.sun.org.apache.xerces.internal.xs.PSVIProvider, com.sun.org.apache.xerces.internal.impl.validation.EntityState, org.xml.sax.DTDHandler
Imports
com.sun.org.apache.xerces.internal.impl.Constants, .XMLEntityManager, .XMLErrorReporter, com.sun.org.apache.xerces.internal.impl.dv.XSSimpleType, com.sun.org.apache.xerces.internal.impl.validation.EntityState, .ValidationManager, com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator, com.sun.org.apache.xerces.internal.util.AttributesProxy, .SAXLocatorWrapper, .SAXMessageFormatter, .Status, .SymbolTable, .URI, .XMLAttributesImpl, .XMLSymbols, com.sun.org.apache.xerces.internal.xni.Augmentations, .NamespaceContext, .QName, .XMLAttributes, .XMLDocumentHandler, .XMLLocator, .XMLResourceIdentifier, .XMLString, .XNIException, com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException, .XMLDocumentSource, .XMLParseException, com.sun.org.apache.xerces.internal.xs.AttributePSVI, .ElementPSVI, .ItemPSVI, .PSVIProvider, .XSTypeDefinition, java.io.IOException, .InputStream, .Reader, .StringReader, java.util.HashMap, .Map, javax.xml.XMLConstants, javax.xml.parsers.FactoryConfigurationError, javax.xml.transform.Result, .Source, javax.xml.transform.sax.SAXResult, .SAXSource, javax.xml.validation.TypeInfoProvider, .ValidatorHandler, jdk.xml.internal.JdkConstants, .JdkXmlUtils, .XMLSecurityManager, .XMLSecurityPropertyManager, org.w3c.dom.TypeInfo, org.w3c.dom.ls.LSInput, .LSResourceResolver, org.xml.sax.Attributes, .ContentHandler, .DTDHandler, .ErrorHandler, .InputSource, .Locator, .SAXException, .SAXNotRecognizedException, .SAXNotSupportedException, .XMLReader, org.xml.sax.ext.Attributes2, .EntityResolver2

Implementation of ValidatorHandler for W3C XML Schemas and also a validator helper for SAXSources.

Authors
Kohsuke Kawaguchi, Michael Glavassevich, IBM

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private class

Field Summary

Modifier and TypeField and Description
private static final String
ERROR_REPORTER

Property identifier: error reporter.

private final AttributesProxy
fAttrAdapter

References Deprecated AttributesProxy is deprecated or references (maybe indirectly) at least one deprecated element.
private final QName
private final XMLAttributesImpl
private XMLSchemaValidatorComponentManager
fComponentManager

Component manager.

private ContentHandler
private final QName
fElementQName

Fields for start element, end element and characters.

private XMLErrorReporter
fErrorReporter

Error reporter.

private NamespaceContext
fNamespaceContext

The namespace context of this document: stores namespaces in scope

private boolean
fNeedPushNSContext

Flag used to track whether the namespace context needs to be pushed.

private final ValidatorHandlerImpl.ResolutionForwarder
fResolutionForwarder

SAX adapter for an LSResourceResolver.

private final SAXLocatorWrapper
fSAXLocatorWrapper

XML Locator wrapper for SAX.

private XMLSchemaValidator
fSchemaValidator

Schema validator.

private boolean
fStringsInternalized

Flag used to track whether XML names and Namespace URIs have been internalized.

private SymbolTable
fSymbolTable

Symbol table

private final XMLString
private final ValidatorHandlerImpl.XMLSchemaTypeInfoProvider
private Map<String, String>
fUnparsedEntities

Map for tracking unparsed entities.

private ValidationManager
fValidationManager

Validation manager.

private static final String
NAMESPACE_CONTEXT

Property identifier: namespace context.

private static final String
NAMESPACE_PREFIXES

Feature identifier: namespace prefixes.

private static final String
SCHEMA_VALIDATOR

Property identifier: XML Schema validator.

private static final String
SECURITY_MANAGER

Property identifier: security manager.

protected static final String
STRING_INTERNING

Feature identifier: string interning.

private static final String
SYMBOL_TABLE

Property identifier: symbol table.

private static final String
VALIDATION_MANAGER

Property identifier: validation manager.

private static final String
XML_SECURITY_PROPERTY_MANAGER

Property identifier: Security property manager.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
characters(char[] ch, int start, int length)

Implements org.xml.sax.ContentHandler.characters.

Receive notification of character data.

public void
public void
doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.doctypeDecl.

Notifies of the presence of the DOCTYPE line in the document.

public void
public void
public void
public void
endDocument()

Implements org.xml.sax.ContentHandler.endDocument.

Receive notification of the end of a document.

public void
public void
endElement(String uri, String localName, String qName)

Implements org.xml.sax.ContentHandler.endElement.

Receive notification of the end of an element.

public void
endGeneralEntity(String name, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.endGeneralEntity.

This method notifies the end of a general entity.

public void
endPrefixMapping(String prefix)

Implements org.xml.sax.ContentHandler.endPrefixMapping.

End the scope of a prefix-URI mapping.

private void
fillQName(QName toFill, String uri, String localpart, String raw)

Fills in a QName object.

private void
fillXMLAttribute(Attributes att, int index)

Adds an attribute to the XMLAttributes object.

private void
fillXMLAttributes(Attributes att)

Fills in the XMLAttributes object.

private void
fillXMLAttributes2(Attributes2 att)

Fills in the XMLAttributes object.

public AttributePSVI
getAttributePSVI(int index)

Implements com.sun.org.apache.xerces.internal.xs.PSVIProvider.getAttributePSVI.

Provides AttributePSVI given the index of an attribute information item in the current element's attribute list.

public AttributePSVI
getAttributePSVIByName(String uri, String localname)

Implements com.sun.org.apache.xerces.internal.xs.PSVIProvider.getAttributePSVIByName.

Provides AttributePSVI given the namespace name and the local name of an attribute information item in the current element's attribute list.

public ContentHandler
getContentHandler()

Implements abstract javax.xml.validation.ValidatorHandler.getContentHandler.

Gets the ContentHandler which receives the augmented validation result.

public XMLDocumentSource
public ElementPSVI
getElementPSVI()

Implements com.sun.org.apache.xerces.internal.xs.PSVIProvider.getElementPSVI.

Provides the post schema validation item for the current element information item.

public ErrorHandler
public boolean
getFeature(String name)

Overrides javax.xml.validation.ValidatorHandler.getFeature.

Look up the value of a feature flag.

public Object
getProperty(String name)

Overrides javax.xml.validation.ValidatorHandler.getProperty.

Look up the value of a property.

public LSResourceResolver
public TypeInfoProvider
public void
public void
ignorableWhitespace(char[] ch, int start, int length)

Implements org.xml.sax.ContentHandler.ignorableWhitespace.

Receive notification of ignorable whitespace in element content.

public boolean
isEntityDeclared(String name)

Implements com.sun.org.apache.xerces.internal.impl.validation.EntityState.isEntityDeclared.

Query method to check if entity with this name was declared.

public boolean
public void
notationDecl(String name, String publicId, String systemId)

Implements org.xml.sax.DTDHandler.notationDecl.

Receive notification of a notation declaration event.

public void
public void
processingInstruction(String target, String data)

Implements org.xml.sax.ContentHandler.processingInstruction.

Receive notification of a processing instruction.

public void
setContentHandler(ContentHandler receiver)

Implements abstract javax.xml.validation.ValidatorHandler.setContentHandler.

Sets the ContentHandler which receives the augmented validation result.

public void
setDocumentLocator(Locator locator)

Implements org.xml.sax.ContentHandler.setDocumentLocator.

Receive an object for locating the origin of SAX document events.

public void
public void
setErrorHandler(ErrorHandler errorHandler)

Implements abstract javax.xml.validation.ValidatorHandler.setErrorHandler.

Sets the ErrorHandler to receive errors encountered during the validation.

public void
setFeature(String name, boolean value)

Overrides javax.xml.validation.ValidatorHandler.setFeature.

Set a feature for this ValidatorHandler.

public void
setProperty(String name, Object object)

Overrides javax.xml.validation.ValidatorHandler.setProperty.

Set the value of a property.

public void
setResourceResolver(LSResourceResolver resourceResolver)

Implements abstract javax.xml.validation.ValidatorHandler.setResourceResolver.

Sets the LSResourceResolver to customize resource resolution while in a validation episode.

public void
skippedEntity(String name)

Implements org.xml.sax.ContentHandler.skippedEntity.

Receive notification of a skipped entity.

public void
public void
startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.startDocument.

The start of the document.

public void
startDocument()

Implements org.xml.sax.ContentHandler.startDocument.

Receive notification of the beginning of a document.

public void
public void
startElement(String uri, String localName, String qName, Attributes atts)

Implements org.xml.sax.ContentHandler.startElement.

Receive notification of the beginning of an element.

public void
startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.startGeneralEntity.

This method notifies the start of a general entity.

public void
startPrefixMapping(String prefix, String uri)

Implements org.xml.sax.ContentHandler.startPrefixMapping.

Begin the scope of a prefix-URI Namespace mapping.

public void
textDecl(String version, String encoding, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.textDecl.

Notifies of the presence of a TextDecl line in an entity.

public void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)

Implements org.xml.sax.DTDHandler.unparsedEntityDecl.

Receive notification of an unparsed entity declaration event.

public void
public void
xmlDecl(String version, String encoding, String standalone, Augmentations augs)

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.xmlDecl.

Notifies of the presence of an XMLDecl line in the document.