Package org.geotools.xml.xLink
Class XLinkSchema
Object
XLinkSchema
This class is a hard-coded version of the XLink Schema. The results of parsing the schema in through the parser and
calling the resulting Schema objects methods should be the same as calling these methods, except that these methods
should be faster.
This class consists of a series of internal private classes and an implementation of the Schema interface which is public.
- Author:
- dzwiers www.refractions.net
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classActuate represents an Actuate attribute in the XLink Schemastatic classArcLink represents a ArcLink AttributeGroup in the XLink Schemastatic classArcrole represents an Arcrole attribute in the XLink Schemastatic classEmptyLink represents a EmptyLink AttributeGroup in the XLink Schemastatic classExtendedLink represents a ExtendedLink AttributeGroup in the XLink Schemastatic classFrom represents a From attribute in the XLink Schemastatic classHref purpose.static classLabel represents a Label attribute in the XLink Schemastatic classLocatorLink represents a LocatorLink AttributeGroup in the XLink Schemastatic classResourceLink represents a ResourceLink AttributeGroup in the XLink Schemastatic classstatic classShow represents a Show attribute in the XLink Schemastatic classSimpleLink represents a SimpleLink AttributeGroup in the XLink Schemastatic classTitle represents a Title attribute in the XLink Schemastatic classTitleLink represents a TitleLink AttributeGroup in the XLink Schemastatic classTo represents a To attribute in the XLink Schemaprotected static classXLinkAttribute purpose.protected static classXLinkAttributeGroup purpose. -
Field Summary
FieldsFields inherited from interface Schema
ALL, EXTENSION, NONE, RESTRICTION -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Returns the implementation hints.Schema[]This method is intended to provide a list of public Imports defined by this Schema.static SchemaGets 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.
-
Field Details
-
NAMESPACE
The full xLink namespace
-
-
Constructor Details
-
XLinkSchema
public XLinkSchema()
-
-
Method Details
-
getInstance
- See Also:
-
org.geotools.xml.schema.Schema#getInstance()
-
getAttributeGroups
Description copied from interface:SchemaThis 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.- Specified by:
getAttributeGroupsin interfaceSchema- Returns:
- AttributeGroup[]
- See Also:
-
schema.Schema#getAttributeGroups()
-
getAttributes
Description copied from interface:SchemaThis 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.- Specified by:
getAttributesin interfaceSchema- See Also:
-
schema.Schema#getAttributeDescriptors()
-
getBlockDefault
public int getBlockDefault()Description copied from interface:SchemaThis 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.- Specified by:
getBlockDefaultin interfaceSchema- Returns:
- Block Mask
-
getComplexTypes
Description copied from interface:SchemaThis 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.- Specified by:
getComplexTypesin interfaceSchema- See Also:
-
schema.Schema#getComplexTypes()
-
getElements
Description copied from interface:SchemaThis 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.- Specified by:
getElementsin interfaceSchema- See Also:
-
schema.Schema#getElements()
-
getFinalDefault
public int getFinalDefault()Description copied from interface:SchemaThis 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.- Specified by:
getFinalDefaultin interfaceSchema- Returns:
- Final Mask
- See Also:
-
schema.Schema#getFinalDefault()
-
getGroups
Description copied from interface:SchemaThis 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. -
getId
Description copied from interface:SchemaThis method is intended to provide the ID of this Schema. -
getImports
Description copied from interface:SchemaThis 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.- Specified by:
getImportsin interfaceSchema- See Also:
-
schema.Schema#getImports()
-
getSimpleTypes
Description copied from interface:SchemaThis 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.- Specified by:
getSimpleTypesin interfaceSchema- See Also:
-
schema.Schema#getSimpleTypes()
-
getTargetNamespace
Description copied from interface:SchemaThis returns the intended use name of the Schema (kinda like an ID, for a better definition see the XML Schema Specification).- Specified by:
getTargetNamespacein interfaceSchema- See Also:
-
schema.Schema#getTargetNamespace()
-
getURI
-
getVersion
Description copied from interface:SchemaThis returns the Schema version ...- Specified by:
getVersionin interfaceSchema- See Also:
-
schema.Schema#getVersion()
-
includesURI
Description copied from interface:SchemaThis 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.
- Specified by:
includesURIin interfaceSchema- See Also:
-
schema.Schema#includesURI(java.net.URI)
-
getPrefix
Description copied from interface:SchemaGets the recommended prefix for this schema. -
isAttributeFormDefault
public boolean isAttributeFormDefault()Description copied from interface:SchemaReturns true when the Default Attribute Form is qualified, false otherwise.- Specified by:
isAttributeFormDefaultin interfaceSchema- See Also:
-
schema.Schema#isAttributeFormDefault()
-
isElementFormDefault
public boolean isElementFormDefault()Description copied from interface:SchemaReturns true when the Default Element Form is qualified, false otherwise.- Specified by:
isElementFormDefaultin interfaceSchema- See Also:
-
schema.Schema#isElementFormDefault()
-
getImplementationHints
Returns the implementation hints. The default implementation returns en empty map.- Specified by:
getImplementationHintsin interfaceFactory- Returns:
- The map of hints, or an {@linkplain java.util.Collections.emptyMap() empty map} if none.
-