public interface Schema extends Factory
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.
Modifier and Type | Field and Description |
---|---|
static int |
ALL
Used to denote byte masks representing either XML block attributes or XML final attributes.
|
static int |
EXTENSION
Used to denote byte masks representing either XML block attributes or XML final attributes.
|
static int |
NONE
Used to denote byte masks representing either XML block attributes or XML final attributes.
|
static int |
RESTRICTION
Used to denote byte masks representing either XML block attributes or XML final attributes.
|
Modifier and Type | Method and Description |
---|---|
AttributeGroup[] |
getAttributeGroups()
This method is intended to provide a list of public AttributeGroups defined by this Schema.
|
Attribute[] |
getAttributes()
This method is intended to provide a list of public Attributes defined by this Schema.
|
int |
getBlockDefault()
This method returns the default block value associated with this schema as a mask.
|
ComplexType[] |
getComplexTypes()
This method is intended to provide a list of public ComplexTypes defined by this Schema.
|
Element[] |
getElements()
This method is intended to provide a list of public Elements defined by this Schema.
|
int |
getFinalDefault()
This method returns the default final value associated with this schema as a mask.
|
Group[] |
getGroups()
This method is intended to provide a list of public Groups defined by this Schema.
|
String |
getId()
This method is intended to provide the ID of this Schema.
|
Schema[] |
getImports()
This method is intended to provide a list of public Imports defined by this Schema.
|
String |
getPrefix()
Gets the recommended prefix for this schema.
|
SimpleType[] |
getSimpleTypes()
This method is intended to provide a list of public SimpleTypes defined by this Schema.
|
URI |
getTargetNamespace()
This returns the intended use name of the Schema (kinda like an ID, for a better definition
see the XML Schema Specification).
|
URI |
getURI() |
String |
getVersion()
This returns the Schema version ...
|
boolean |
includesURI(URI uri)
This looks to see if the URI passed in is represented by this Schema.
|
boolean |
isAttributeFormDefault()
Returns true when the Default Attribute Form is qualified, false otherwise.
|
boolean |
isElementFormDefault()
Returns true when the Default Element Form is qualified, false otherwise.
|
getImplementationHints
static final int NONE
static final int EXTENSION
static final int RESTRICTION
static final int ALL
AttributeGroup[] getAttributeGroups()
AttributeGroup
Attribute[] getAttributes()
Attribute
int getBlockDefault()
ComplexType[] getComplexTypes()
ComplexType
Element[] getElements()
Element
int getFinalDefault()
Group[] getGroups()
Group
String getId()
Schema[] getImports()
Schema
String getPrefix()
SimpleType[] getSimpleTypes()
SimpleType
URI getTargetNamespace()
URI getURI()
String getVersion()
boolean includesURI(URI uri)
Used to determine if the uri should provided should be included in an instance document.
uri
- #getUris()
boolean isAttributeFormDefault()
boolean isElementFormDefault()
Copyright © 1996–2019 Geotools. All rights reserved.