Java Doc for XMLSchemaValidator.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » xs » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.impl.xs 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.impl.xs.XMLSchemaValidator

XMLSchemaValidator
public class XMLSchemaValidator implements XMLComponent,XMLDocumentFilter,FieldActivator,RevalidationHandler(Code)
The XML Schema validator. The validator implements a document filter: receiving document events from the scanner; validating the content and structure; augmenting the InfoSet, if applicable; and notifying the parser of the information resulting from the validation process.

This component requires the following features and properties from the component manager that uses it:

  • http://xml.org/sax/features/validation
  • http://apache.org/xml/properties/internal/symbol-table
  • http://apache.org/xml/properties/internal/error-reporter
  • http://apache.org/xml/properties/internal/entity-resolver

author:
   Sandy Gao IBM
author:
   Elena Litani IBM
author:
   Andy Clark IBM
author:
   Neeraj Bajaj, Sun Microsystems, inc.
version:
   $Id: XMLSchemaValidator.java 548089 2007-06-17 18:29:01Z mrglavas $

Inner Class :final protected class XSIErrorReporter
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 protected static class LocalIDKey
Inner Class :final protected static class ShortVector

Field Summary
final protected static  StringALLOW_JAVA_ENCODINGS
    
final protected static  StringCONTINUE_AFTER_FATAL_ERROR
    
final protected static  StringDYNAMIC_VALIDATION
     Feature identifier: dynamic validation.
final protected static  StringENTITY_MANAGER
    
final public static  StringENTITY_RESOLVER
     Property identifier: entity resolver.
final public static  StringERROR_REPORTER
     Property identifier: error reporter.
final protected static  StringGENERATE_SYNTHETIC_ANNOTATIONS
    
final protected static  StringHONOUR_ALL_SCHEMALOCATIONS
    
final protected static  StringIDENTITY_CONSTRAINT_CHECKING
    
final protected static  intID_CONSTRAINT_NUM
    
final protected static  StringID_IDREF_CHECKING
    
final protected static  StringIGNORE_XSI_TYPE
    
final static  intINC_STACK_SIZE
    
final static  intINITIAL_STACK_SIZE
    
final protected static  StringJAXP_SCHEMA_LANGUAGE
     Property identifier: JAXP schema language.
final protected static  StringJAXP_SCHEMA_SOURCE
     Property identifier: JAXP schema source.
final protected static  StringNORMALIZE_DATA
    
final protected static  StringPARSER_SETTINGS
    
final protected static  StringROOT_TYPE_DEF
     Property identifier: root type definition.
final protected static  StringSCHEMA_AUGMENT_PSVI
    
final protected static  StringSCHEMA_ELEMENT_DEFAULT
    
final protected static  StringSCHEMA_FULL_CHECKING
    
final protected static  StringSCHEMA_LOCATION
     Property identifier: schema location.
final protected static  StringSCHEMA_NONS_LOCATION
     Property identifier: no namespace schema location.
final protected static  StringSCHEMA_VALIDATION
     Feature identifier: validation.
final protected static  StringSTANDARD_URI_CONFORMANT_FEATURE
     Feature identifier: standard uri conformant feature.
final public static  StringSYMBOL_TABLE
     Property identifier: symbol table.
final protected static  StringUNPARSED_ENTITY_CHECKING
    
final protected static  StringUSE_GRAMMAR_POOL_ONLY
    
final protected static  StringVALIDATE_ANNOTATIONS
     Feature identifier: validate annotations.
final protected static  StringVALIDATION
     Feature identifier: validation.
final protected static  StringVALIDATION_MANAGER
    
final public static  StringXMLGRAMMAR_POOL
     Property identifier: grammar pool.
final static  XSAttributeDeclXSI_NIL
    
final static  XSAttributeDeclXSI_NONAMESPACESCHEMALOCATION
    
final static  XSAttributeDeclXSI_SCHEMALOCATION
    
final static  XSAttributeDeclXSI_TYPE
    
protected  booleanfAugPSVI
    
final protected  AugmentationsImplfAugmentations
    
protected  ElementPSVImplfCurrentPSVI
    
protected  XMLStringfDefaultValue
    
protected  booleanfDoValidation
    
protected  XMLDocumentHandlerfDocumentHandler
     Document handler.
protected  XMLDocumentSourcefDocumentSource
    
protected  booleanfDynamicValidation
    
protected  booleanfEntityRef
    
protected  XMLEntityResolverfEntityResolver
    
protected  StringfExternalNoNamespaceSchema
    
protected  StringfExternalSchemas
    
protected  booleanfFullChecking
    
protected  XMLGrammarPoolfGrammarPool
    
protected  booleanfIdConstraint
    
protected  booleanfInCDATA
    
protected  ObjectfJaxpSchemaSource
    
final protected  HashtablefLocationPairs
    
protected  XPathMatcherStackfMatcherStack
     Stack of active XPath matchers for identity constraints.
protected  booleanfNormalizeData
    
protected  booleanfSchemaDynamicValidation
    
protected  booleanfSchemaElementDefault
    
protected  SymbolTablefSymbolTable
     Symbol table.
protected  booleanfUseGrammarPoolOnly
    
protected  ValidationManagerfValidationManager
    
protected  ConfigurableValidationStatefValidationState
    
protected  ValueStoreCachefValueStoreCache
     Cache of value stores for identity constraint fields.
final protected  XSDDescriptionfXSDDescription
    
final protected  XSIErrorReporterfXSIErrorReporter
     Error reporter.

Constructor Summary
public  XMLSchemaValidator()
     Default constructor.

Method Summary
public  XPathMatcheractivateField(Field field, int initialDepth)
     Request to activate the specified field.
 voidaddDefaultAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp)
    
public  booleancharacterData(String data, Augmentations augs)
    
public  voidcharacters(XMLString text, Augmentations augs)
     Character content.
public  voidcomment(XMLString text, Augmentations augs)
     A comment.
public  voiddoctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)
     Notifies of the presence of the DOCTYPE line in the document.
public  voidelementDefault(String data)
    
 ObjectelementLocallyValidComplexType(QName element, Object textContent)
    
 ObjectelementLocallyValidType(QName element, Object textContent)
    
public  voidemptyElement(QName element, XMLAttributes attributes, Augmentations augs)
     An empty element.
public  voidendCDATA(Augmentations augs)
     The end of a CDATA section.
public  voidendDocument(Augmentations augs)
     The end of the document.
public  voidendElement(QName element, Augmentations augs)
     The end of an element.
final  AugmentationsendElementPSVI(boolean root, SchemaGrammar[] grammars, Augmentations augs)
    
public  voidendGeneralEntity(String name, Augmentations augs)
     This method notifies the end of a general entity.
public  voidendValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)
     Ends the value scope for the specified identity constraint.
 voidensureStackCapacity()
    
 SchemaGrammarfindSchemaGrammar(short contextType, String namespace, QName enclosingElement, QName triggeringComponet, XMLAttributes attributes)
    
 XSTypeDefinitiongetAndCheckXsiType(QName element, String xsiType, XMLAttributes attributes)
    
public  XMLDocumentHandlergetDocumentHandler()
    
public  XMLDocumentSourcegetDocumentSource()
    
 AugmentationsgetEmptyAugs(Augmentations augs)
    
public  BooleangetFeatureDefault(String featureId)
     Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
public  ObjectgetPropertyDefault(String propertyId)
     Returns the default state for a property, or null if this component does not want to report a default value for this property.
public  String[]getRecognizedFeatures()
     Returns a list of feature identifiers that are recognized by this component.
public  String[]getRecognizedProperties()
     Returns a list of property identifiers that are recognized by this component.
 booleangetXsiNil(QName element, String xsiNil)
    
 XMLStringhandleCharacters(XMLString text)
    
 voidhandleEndDocument()
    
 AugmentationshandleEndElement(QName element, Augmentations augs)
     Handle end element.
 voidhandleIgnorableWhitespace(XMLString text)
    
 voidhandleStartDocument(XMLLocator locator, String encoding)
    
 AugmentationshandleStartElement(QName element, XMLAttributes attributes, Augmentations augs)
     Handle element.
public  voidignorableWhitespace(XMLString text, Augmentations augs)
     Ignorable whitespace.
 voidprocessAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp)
    
 voidprocessElementContent(QName element)
     If there is not text content, and there is a {value constraint} on the corresponding element decl, then return an XMLString representing the default value.
 voidprocessOneAttribute(QName element, XMLAttributes attributes, int index, XSAttributeDecl currDecl, XSAttributeUseImpl currUse, AttributePSVImpl attrPSVI)
    
public  voidprocessingInstruction(String target, XMLString data, Augmentations augs)
     A processing instruction.
 voidreportSchemaError(String key, Object[] arguments)
    
public  voidreset(XMLComponentManager componentManager)
    
public  voidsetDocumentHandler(XMLDocumentHandler documentHandler)
     Sets the document handler to receive information about the document.
public  voidsetDocumentSource(XMLDocumentSource source)
    
public  voidsetFeature(String featureId, boolean state)
     Sets the state of a feature.
public  voidsetProperty(String propertyId, Object value)
     Sets the value of a property.
public  voidstartCDATA(Augmentations augs)
     The start of a CDATA section.
public  voidstartDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)
     The start of the document.
Parameters:
  locator - The system identifier of the entity if the entityis external, null otherwise.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream.
public  voidstartElement(QName element, XMLAttributes attributes, Augmentations augs)
     The start of an element.
public  voidstartGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
     This method notifies the start of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the general entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream.

public  voidstartValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)
     Start the value scope for the specified identity constraint.
 voidstoreLocations(String sLocation, String nsLocation)
    
public  voidtextDecl(String version, String encoding, Augmentations augs)
     Notifies of the presence of a TextDecl line in an entity.
public  voidxmlDecl(String version, String encoding, String standalone, Augmentations augs)
     Notifies of the presence of an XMLDecl line in the document.

Field Detail
ALLOW_JAVA_ENCODINGS
final protected static String ALLOW_JAVA_ENCODINGS(Code)
Feature identifier: whether to recognize java encoding names



CONTINUE_AFTER_FATAL_ERROR
final protected static String CONTINUE_AFTER_FATAL_ERROR(Code)
Feature identifier: whether to continue parsing a schema after a fatal error is encountered



DYNAMIC_VALIDATION
final protected static String DYNAMIC_VALIDATION(Code)
Feature identifier: dynamic validation.



ENTITY_MANAGER
final protected static String ENTITY_MANAGER(Code)



ENTITY_RESOLVER
final public static String ENTITY_RESOLVER(Code)
Property identifier: entity resolver.



ERROR_REPORTER
final public static String ERROR_REPORTER(Code)
Property identifier: error reporter.



GENERATE_SYNTHETIC_ANNOTATIONS
final protected static String GENERATE_SYNTHETIC_ANNOTATIONS(Code)
Feature: generate synthetic annotations



HONOUR_ALL_SCHEMALOCATIONS
final protected static String HONOUR_ALL_SCHEMALOCATIONS(Code)
Feature identifier: honour all schemaLocations



IDENTITY_CONSTRAINT_CHECKING
final protected static String IDENTITY_CONSTRAINT_CHECKING(Code)
Feature identifier: whether to ignore identity constraint errors



ID_CONSTRAINT_NUM
final protected static int ID_CONSTRAINT_NUM(Code)



ID_IDREF_CHECKING
final protected static String ID_IDREF_CHECKING(Code)
Feature identifier: whether to ignore ID/IDREF errors



IGNORE_XSI_TYPE
final protected static String IGNORE_XSI_TYPE(Code)
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered



INC_STACK_SIZE
final static int INC_STACK_SIZE(Code)



INITIAL_STACK_SIZE
final static int INITIAL_STACK_SIZE(Code)



JAXP_SCHEMA_LANGUAGE
final protected static String JAXP_SCHEMA_LANGUAGE(Code)
Property identifier: JAXP schema language.



JAXP_SCHEMA_SOURCE
final protected static String JAXP_SCHEMA_SOURCE(Code)
Property identifier: JAXP schema source.



NORMALIZE_DATA
final protected static String NORMALIZE_DATA(Code)
Feature identifier: expose schema normalized value



PARSER_SETTINGS
final protected static String PARSER_SETTINGS(Code)



ROOT_TYPE_DEF
final protected static String ROOT_TYPE_DEF(Code)
Property identifier: root type definition.



SCHEMA_AUGMENT_PSVI
final protected static String SCHEMA_AUGMENT_PSVI(Code)
Feature identifier: augment PSVI



SCHEMA_ELEMENT_DEFAULT
final protected static String SCHEMA_ELEMENT_DEFAULT(Code)
Feature identifier: send element default value via characters()



SCHEMA_FULL_CHECKING
final protected static String SCHEMA_FULL_CHECKING(Code)
Feature identifier: schema full checking



SCHEMA_LOCATION
final protected static String SCHEMA_LOCATION(Code)
Property identifier: schema location.



SCHEMA_NONS_LOCATION
final protected static String SCHEMA_NONS_LOCATION(Code)
Property identifier: no namespace schema location.



SCHEMA_VALIDATION
final protected static String SCHEMA_VALIDATION(Code)
Feature identifier: validation.



STANDARD_URI_CONFORMANT_FEATURE
final protected static String STANDARD_URI_CONFORMANT_FEATURE(Code)
Feature identifier: standard uri conformant feature.



SYMBOL_TABLE
final public static String SYMBOL_TABLE(Code)
Property identifier: symbol table.



UNPARSED_ENTITY_CHECKING
final protected static String UNPARSED_ENTITY_CHECKING(Code)
Feature identifier: whether to ignore unparsed entity errors



USE_GRAMMAR_POOL_ONLY
final protected static String USE_GRAMMAR_POOL_ONLY(Code)
Feature identifier: use grammar pool only



VALIDATE_ANNOTATIONS
final protected static String VALIDATE_ANNOTATIONS(Code)
Feature identifier: validate annotations.



VALIDATION
final protected static String VALIDATION(Code)
Feature identifier: validation.



VALIDATION_MANAGER
final protected static String VALIDATION_MANAGER(Code)



XMLGRAMMAR_POOL
final public static String XMLGRAMMAR_POOL(Code)
Property identifier: grammar pool.



XSI_NIL
final static XSAttributeDecl XSI_NIL(Code)



XSI_NONAMESPACESCHEMALOCATION
final static XSAttributeDecl XSI_NONAMESPACESCHEMALOCATION(Code)



XSI_SCHEMALOCATION
final static XSAttributeDecl XSI_SCHEMALOCATION(Code)



XSI_TYPE
final static XSAttributeDecl XSI_TYPE(Code)



fAugPSVI
protected boolean fAugPSVI(Code)



fAugmentations
final protected AugmentationsImpl fAugmentations(Code)



fCurrentPSVI
protected ElementPSVImpl fCurrentPSVI(Code)
current PSVI element info



fDefaultValue
protected XMLString fDefaultValue(Code)



fDoValidation
protected boolean fDoValidation(Code)



fDocumentHandler
protected XMLDocumentHandler fDocumentHandler(Code)
Document handler.



fDocumentSource
protected XMLDocumentSource fDocumentSource(Code)



fDynamicValidation
protected boolean fDynamicValidation(Code)



fEntityRef
protected boolean fEntityRef(Code)



fEntityResolver
protected XMLEntityResolver fEntityResolver(Code)
Entity resolver



fExternalNoNamespaceSchema
protected String fExternalNoNamespaceSchema(Code)



fExternalSchemas
protected String fExternalSchemas(Code)



fFullChecking
protected boolean fFullChecking(Code)



fGrammarPool
protected XMLGrammarPool fGrammarPool(Code)



fIdConstraint
protected boolean fIdConstraint(Code)



fInCDATA
protected boolean fInCDATA(Code)



fJaxpSchemaSource
protected Object fJaxpSchemaSource(Code)



fLocationPairs
final protected Hashtable fLocationPairs(Code)



fMatcherStack
protected XPathMatcherStack fMatcherStack(Code)
Stack of active XPath matchers for identity constraints. All active XPath matchers are notified of startElement 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.




fNormalizeData
protected boolean fNormalizeData(Code)



fSchemaDynamicValidation
protected boolean fSchemaDynamicValidation(Code)



fSchemaElementDefault
protected boolean fSchemaElementDefault(Code)



fSymbolTable
protected SymbolTable fSymbolTable(Code)
Symbol table.



fUseGrammarPoolOnly
protected boolean fUseGrammarPoolOnly(Code)



fValidationManager
protected ValidationManager fValidationManager(Code)



fValidationState
protected ConfigurableValidationState fValidationState(Code)



fValueStoreCache
protected ValueStoreCache fValueStoreCache(Code)
Cache of value stores for identity constraint fields.



fXSDDescription
final protected XSDDescription fXSDDescription(Code)
Schema Grammar Description passed, to give a chance to application to supply the Grammar



fXSIErrorReporter
final protected XSIErrorReporter fXSIErrorReporter(Code)
Error reporter.




Constructor Detail
XMLSchemaValidator
public XMLSchemaValidator()(Code)
Default constructor.




Method Detail
activateField
public XPathMatcher activateField(Field field, int initialDepth)(Code)
Request to activate the specified field. This method returns the matcher for the field.
Parameters:
  field - The field to activate.



addDefaultAttributes
void addDefaultAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp)(Code)



characterData
public boolean characterData(String data, Augmentations augs)(Code)



characters
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)
Character content.
Parameters:
  text - The content.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



comment
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)
A comment.
Parameters:
  text - The text in the comment.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by application to signal an error.



doctypeDecl
public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)
Notifies of the presence of the DOCTYPE line in the document.
Parameters:
  rootElement - The name of the root element.
Parameters:
  publicId - The public identifier if an external DTD or nullif the external DTD is specified using SYSTEM.
Parameters:
  systemId - The system identifier if an external DTD, nullotherwise.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



elementDefault
public void elementDefault(String data)(Code)



elementLocallyValidComplexType
Object elementLocallyValidComplexType(QName element, Object textContent)(Code)



elementLocallyValidType
Object elementLocallyValidType(QName element, Object textContent)(Code)



emptyElement
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)
An empty element.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endCDATA
public void endCDATA(Augmentations augs) throws XNIException(Code)
The end of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endDocument
public void endDocument(Augmentations augs) throws XNIException(Code)
The end of the document.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endElement
public void endElement(QName element, Augmentations augs) throws XNIException(Code)
The end of an element.
Parameters:
  element - The name of the element.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endElementPSVI
final Augmentations endElementPSVI(boolean root, SchemaGrammar[] grammars, Augmentations augs)(Code)



endGeneralEntity
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)
This method notifies the end of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the entity.
Parameters:
  augs - Additional information that may include infoset augmentations
exception:
  XNIException - Thrown by handler to signal an error.




endValueScopeFor
public void endValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)(Code)
Ends the value scope for the specified identity constraint.
Parameters:
  identityConstraint - The identity constraint.



ensureStackCapacity
void ensureStackCapacity()(Code)
ensure element stack capacity



findSchemaGrammar
SchemaGrammar findSchemaGrammar(short contextType, String namespace, QName enclosingElement, QName triggeringComponet, XMLAttributes attributes)(Code)



getAndCheckXsiType
XSTypeDefinition getAndCheckXsiType(QName element, String xsiType, XMLAttributes attributes)(Code)



getDocumentHandler
public XMLDocumentHandler getDocumentHandler()(Code)
Returns the document handler



getDocumentSource
public XMLDocumentSource getDocumentSource()(Code)
Returns the document source



getEmptyAugs
Augmentations getEmptyAugs(Augmentations augs)(Code)



getFeatureDefault
public Boolean getFeatureDefault(String featureId)(Code)
Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
Parameters:
  featureId - The feature identifier.
since:
   Xerces 2.2.0



getPropertyDefault
public Object getPropertyDefault(String propertyId)(Code)
Returns the default state for a property, or null if this component does not want to report a default value for this property.
Parameters:
  propertyId - The property identifier.
since:
   Xerces 2.2.0



getRecognizedFeatures
public String[] getRecognizedFeatures()(Code)
Returns a list of feature identifiers that are recognized by this component. This method may return null if no features are recognized by this component.



getRecognizedProperties
public String[] getRecognizedProperties()(Code)
Returns a list of property identifiers that are recognized by this component. This method may return null if no properties are recognized by this component.



getXsiNil
boolean getXsiNil(QName element, String xsiNil)(Code)



handleCharacters
XMLString handleCharacters(XMLString text)(Code)



handleEndDocument
void handleEndDocument()(Code)



handleEndElement
Augmentations handleEndElement(QName element, Augmentations augs)(Code)
Handle end element. If there is not text content, and there is a {value constraint} on the corresponding element decl, then set the fDefaultValue XMLString representing the default value.



handleIgnorableWhitespace
void handleIgnorableWhitespace(XMLString text)(Code)



handleStartDocument
void handleStartDocument(XMLLocator locator, String encoding)(Code)



handleStartElement
Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs)(Code)
Handle element.



ignorableWhitespace
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)
Ignorable whitespace. For this method to be called, the document source must have some way of determining that the text containing only whitespace characters should be considered ignorable. For example, the validator can determine if a length of whitespace characters in the document are ignorable based on the element content model.
Parameters:
  text - The ignorable whitespace.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



processAttributes
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp)(Code)



processElementContent
void processElementContent(QName element)(Code)
If there is not text content, and there is a {value constraint} on the corresponding element decl, then return an XMLString representing the default value.



processOneAttribute
void processOneAttribute(QName element, XMLAttributes attributes, int index, XSAttributeDecl currDecl, XSAttributeUseImpl currUse, AttributePSVImpl attrPSVI)(Code)



processingInstruction
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)
A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.
Parameters:
  target - The target.
Parameters:
  data - The data or null if none specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




reportSchemaError
void reportSchemaError(String key, Object[] arguments)(Code)



reset
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)



setDocumentHandler
public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)
Sets the document handler to receive information about the document.



setDocumentSource
public void setDocumentSource(XMLDocumentSource source)(Code)
Sets the document source



setFeature
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)
Sets the state of a feature. This method is called by the component manager any time after reset when a feature changes state.

Note: Components should silently ignore features that do not affect the operation of the component.
Parameters:
  featureId - The feature identifier.
Parameters:
  state - The state of the feature.
throws:
  SAXNotRecognizedException - The component should not throwthis exception.
throws:
  SAXNotSupportedException - The component should not throwthis exception.




setProperty
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)
Sets the value of a property. This method is called by the component manager any time after reset when a property changes value.

Note: Components should silently ignore properties that do not affect the operation of the component.
Parameters:
  propertyId - The property identifier.
Parameters:
  value - The value of the property.
throws:
  SAXNotRecognizedException - The component should not throwthis exception.
throws:
  SAXNotSupportedException - The component should not throwthis exception.




startCDATA
public void startCDATA(Augmentations augs) throws XNIException(Code)
The start of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startDocument
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)
The start of the document.
Parameters:
  locator - The system identifier of the entity if the entityis external, null otherwise.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader).
Parameters:
  namespaceContext - The namespace context in effect at thestart of this document.This object represents the current context.Implementors of this class are responsiblefor copying the namespace bindings from thethe current context (and its parent contexts)if that information is important.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startElement
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)
The start of an element.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startGeneralEntity
public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)
This method notifies the start of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the general entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader).
Parameters:
  augs - Additional information that may include infoset augmentations
exception:
  XNIException - Thrown by handler to signal an error.




startValueScopeFor
public void startValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)(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.



storeLocations
void storeLocations(String sLocation, String nsLocation)(Code)



textDecl
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)
Notifies of the presence of a TextDecl line in an entity. If present, this method will be called immediately following the startEntity call.

Note: This method will never be called for the document entity; it is only called for external general entities referenced in document content.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  version - The XML version, or null if not specified.
Parameters:
  encoding - The IANA encoding name of the entity.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




xmlDecl
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)
Notifies of the presence of an XMLDecl line in the document. If present, this method will be called immediately following the startDocument call.
Parameters:
  version - The XML version.
Parameters:
  encoding - The IANA encoding name of the document, or null ifnot specified.
Parameters:
  standalone - The standalone value, or null if not specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.