Interface Schema
- All Superinterfaces:
- Factory
- All Known Implementing Classes:
- FilterSchema,- GMLSchema,- OGCSchema,- sldSchema,- WMSSchema,- XLinkSchema
The distinction between the public portion of a XML Schema and the entire XML Schema is or particular important when comparing, or printing two XML Schemas. This interface does is intended to provide enough information to re-create the original Schema (note the lack or annotations as an example). This interface is however intended to provide functional semantic equivalence. By this is mean that two XML Schemas represented using this interface should have the same SET of declarations. There is no guarantee that the Schema represented matches the original document with respect to orderwithin the sets, except where order is explicitly defined (Sequence, Choice).
This method must be inplemented within extensions: public static Schema getInstance();. It will be used by the Schema factory to load the required extensions into memory.
- Author:
- dzwiers www.refractions.net
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intUsed to denote byte masks representing either XML block attributes or XML final attributes.static final intUsed to denote byte masks representing either XML block attributes or XML final attributes.static final intUsed to denote byte masks representing either XML block attributes or XML final attributes.static final intUsed to denote byte masks representing either XML block attributes or XML final attributes.
- 
Method SummaryModifier and TypeMethodDescriptionThis method is intended to provide a list of public AttributeGroups defined by this Schema.This method is intended to provide a list of public Attributes defined by this Schema.intThis method returns the default block value associated with this schema as a mask.This method is intended to provide a list of public ComplexTypes defined by this Schema.Element[]This method is intended to provide a list of public Elements defined by this Schema.intThis method returns the default final value associated with this schema as a mask.Group[]This method is intended to provide a list of public Groups defined by this Schema.getId()This method is intended to provide the ID of this Schema.Schema[]This method is intended to provide a list of public Imports defined by this Schema.Gets the recommended prefix for this schema.This method is intended to provide a list of public SimpleTypes defined by this Schema.This returns the intended use name of the Schema (kinda like an ID, for a better definition see the XML Schema Specification).getURI()This returns the Schema version ...booleanincludesURI(URI uri) This looks to see if the URI passed in is represented by this Schema.booleanReturns true when the Default Attribute Form is qualified, false otherwise.booleanReturns true when the Default Element Form is qualified, false otherwise.Methods inherited from interface FactorygetImplementationHints
- 
Field Details- 
NONEstatic final int NONEUsed to denote byte masks representing either XML block attributes or XML final attributes.- See Also:
 
- 
EXTENSIONstatic final int EXTENSIONUsed to denote byte masks representing either XML block attributes or XML final attributes.- See Also:
 
- 
RESTRICTIONstatic final int RESTRICTIONUsed to denote byte masks representing either XML block attributes or XML final attributes.- See Also:
 
- 
ALLstatic final int ALLUsed to denote byte masks representing either XML block attributes or XML final attributes.- See Also:
 
 
- 
- 
Method Details- 
getAttributeGroupsAttributeGroup[] getAttributeGroups()This method is intended to provide a list of public AttributeGroups defined by this Schema. The definition of 'public AttributeGroups' should be interpreted as the set of AttributeGroups available when creating an instance document, extending the schema, or importing the schema.- Returns:
- AttributeGroup[]
- See Also:
 
- 
getAttributesAttribute[] getAttributes()This method is intended to provide a list of public Attributes defined by this Schema. The definition of 'public Attributes' should be interpreted as the set of Attributes available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getBlockDefaultint getBlockDefault()This method returns the default block value associated with this schema as a mask. The keys for the mask are represented as constants at the head of this file. As defined in the XML Schema specification, element and type blocks should only be extended to include this block if one is not specified.- Returns:
- Block Mask
 
- 
getComplexTypesComplexType[] getComplexTypes()This method is intended to provide a list of public ComplexTypes defined by this Schema. The definition of 'public ComplexTypes' should be interpreted as the set of ComplexTypes available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getElementsElement[] getElements()This method is intended to provide a list of public Elements defined by this Schema. The definition of 'public Elements' should be interpreted as the set of Elements available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getFinalDefaultint getFinalDefault()This method returns the default final value associated with this schema as a mask. The keys for the mask are represented as constants at the head of this file. As defined in the XML Schema specification, element and type final values should only be extended to include this final value if one is not specified.- Returns:
- Final Mask
 
- 
getGroupsGroup[] getGroups()This method is intended to provide a list of public Groups defined by this Schema. The definition of 'public Groups' should be interpreted as the set of Groups available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getIdString getId()This method is intended to provide the ID of this Schema.
- 
getImportsSchema[] getImports()This method is intended to provide a list of public Imports defined by this Schema. The definition of 'public Imports' should be interpreted as the set of Imports available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getPrefixString getPrefix()Gets the recommended prefix for this schema.
- 
getSimpleTypesSimpleType[] getSimpleTypes()This method is intended to provide a list of public SimpleTypes defined by this Schema. The definition of 'public SimpleTypes' should be interpreted as the set of SimpleTypes available when creating an instance document, extending the schema, or importing the schema.- See Also:
 
- 
getTargetNamespaceURI getTargetNamespace()This returns the intended use name of the Schema (kinda like an ID, for a better definition see the XML Schema Specification).
- 
getURIURI getURI()
- 
getVersionString getVersion()This returns the Schema version ...
- 
includesURIThis looks to see if the URI passed in is represented by this Schema. Often this method uses some heuritics on the list of included URIs. This allows one Schema to represent one targetNamespace, but be potentially represented in more than one file.Used to determine if the uri should provided should be included in an instance document. - See Also:
- 
- #getUris()
 
 
- 
isAttributeFormDefaultboolean isAttributeFormDefault()Returns true when the Default Attribute Form is qualified, false otherwise.
- 
isElementFormDefaultboolean isElementFormDefault()Returns true when the Default Element Form is qualified, false otherwise.
 
-