org.geotools.xml.xLink
Class XLinkSchema

java.lang.Object
  extended byorg.geotools.xml.xLink.XLinkSchema
All Implemented Interfaces:
Factory, Schema

public class XLinkSchema
extends java.lang.Object
implements Schema

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:
Schema

Nested Class Summary
static class XLinkSchema.Actuate
          Actuate represents an Actuate attribute in the XLink Schema
static class XLinkSchema.ArcLink
          ArcLink represents a ArcLink AttributeGroup in the XLink Schema
static class XLinkSchema.Arcrole
          Arcrole represents an Arcrole attribute in the XLink Schema
static class XLinkSchema.EmptyLink
          EmptyLink represents a EmptyLink AttributeGroup in the XLink Schema
static class XLinkSchema.ExtendedLink
          ExtendedLink represents a ExtendedLink AttributeGroup in the XLink Schema
static class XLinkSchema.From
          From represents a From attribute in the XLink Schema
static class XLinkSchema.Href
          Href purpose.
static class XLinkSchema.Label
          Label represents a Label attribute in the XLink Schema
static class XLinkSchema.LocatorLink
          LocatorLink represents a LocatorLink AttributeGroup in the XLink Schema
static class XLinkSchema.ResourceLink
          ResourceLink represents a ResourceLink AttributeGroup in the XLink Schema
static class XLinkSchema.Role
           
static class XLinkSchema.Show
          Show represents a Show attribute in the XLink Schema
static class XLinkSchema.SimpleLink
          SimpleLink represents a SimpleLink AttributeGroup in the XLink Schema
static class XLinkSchema.Title
          Title represents a Title attribute in the XLink Schema
static class XLinkSchema.TitleLink
          TitleLink represents a TitleLink AttributeGroup in the XLink Schema
static class XLinkSchema.To
          To represents a To attribute in the XLink Schema
protected static class XLinkSchema.XLinkAttribute
          XLinkAttribute purpose.
protected static class XLinkSchema.XLinkAttributeGroup
          XLinkAttributeGroup purpose.
 
Field Summary
static java.net.URI NAMESPACE
          The full xLink namespace
 
Fields inherited from interface org.geotools.xml.schema.Schema
ALL, EXTENSION, NONE, RESTRICTION
 
Constructor Summary
XLinkSchema()
           
 
Method Summary
 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.
 java.lang.String getId()
           This method is intended to provide the ID of this Schema.
 java.util.Map getImplementationHints()
          Returns the implementation hints.
 Schema[] getImports()
           This method is intended to provide a list of public Imports defined by this Schema.
static Schema getInstance()
           
 java.lang.String getPrefix()
          DOCUMENT ME!
 SimpleType[] getSimpleTypes()
           This method is intended to provide a list of public SimpleTypes defined by this Schema.
 java.net.URI getTargetNamespace()
           This returns the intended use name of the Schema (kinda like an ID, for a better definition see the XML Schema Specification).
 java.net.URI getURI()
           
 java.lang.String getVersion()
           This returns the Schema version ...
 boolean includesURI(java.net.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.net.URI NAMESPACE
The full xLink namespace

Constructor Detail

XLinkSchema

public XLinkSchema()
Method Detail

getInstance

public static Schema getInstance()
See Also:
org.geotools.xml.schema.Schema#getInstance()

getAttributeGroups

public AttributeGroup[] getAttributeGroups()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getAttributeGroups in interface Schema
Returns:
AttributeGroup[]
See Also:
schema.Schema#getAttributeGroups()

getAttributes

public Attribute[] getAttributes()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getAttributes in interface Schema
Returns:
See Also:
schema.Schema#getAttributes()

getBlockDefault

public int getBlockDefault()
Description copied from interface: Schema

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.

Specified by:
getBlockDefault in interface Schema
Returns:
Block Mask

getComplexTypes

public ComplexType[] getComplexTypes()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getComplexTypes in interface Schema
Returns:
See Also:
schema.Schema#getComplexTypes()

getElements

public Element[] getElements()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getElements in interface Schema
Returns:
See Also:
schema.Schema#getElements()

getFinalDefault

public int getFinalDefault()
Description copied from interface: Schema

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.

Specified by:
getFinalDefault in interface Schema
Returns:
Final Mask
See Also:
schema.Schema#getFinalDefault()

getGroups

public Group[] getGroups()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getGroups in interface Schema
Returns:
See Also:
schema.Schema#getGroups()

getId

public java.lang.String getId()
Description copied from interface: Schema

This method is intended to provide the ID of this Schema.

Specified by:
getId in interface Schema
Returns:
See Also:
schema.Schema#getId()

getImports

public Schema[] getImports()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getImports in interface Schema
Returns:
See Also:
schema.Schema#getImports()

getSimpleTypes

public SimpleType[] getSimpleTypes()
Description copied from interface: Schema

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 availiable when creating an instance document, extending the schema, or importing the schema.

Specified by:
getSimpleTypes in interface Schema
Returns:
See Also:
schema.Schema#getSimpleTypes()

getTargetNamespace

public java.net.URI getTargetNamespace()
Description copied from interface: Schema

This returns the intended use name of the Schema (kinda like an ID, for a better definition see the XML Schema Specification).

Specified by:
getTargetNamespace in interface Schema
Returns:
See Also:
schema.Schema#getTargetNamespace()

getURI

public java.net.URI getURI()
Specified by:
getURI in interface Schema

getVersion

public java.lang.String getVersion()
Description copied from interface: Schema

This returns the Schema version ...

Specified by:
getVersion in interface Schema
Returns:
See Also:
schema.Schema#getVersion()

includesURI

public boolean includesURI(java.net.URI uri)
Description copied from interface: Schema

This 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:
includesURI in interface Schema
Parameters:
uri -
Returns:
See Also:
schema.Schema#includesURI(java.net.URI)

getPrefix

public java.lang.String getPrefix()
DOCUMENT ME!

Specified by:
getPrefix in interface Schema
Returns:

isAttributeFormDefault

public boolean isAttributeFormDefault()
Description copied from interface: Schema

Returns true when the Default Attribute Form is qualified, false otherwise.

Specified by:
isAttributeFormDefault in interface Schema
Returns:
See Also:
schema.Schema#isAttributeFormDefault()

isElementFormDefault

public boolean isElementFormDefault()
Description copied from interface: Schema

Returns true when the Default Element Form is qualified, false otherwise.

Specified by:
isElementFormDefault in interface Schema
Returns:
See Also:
schema.Schema#isElementFormDefault()

getImplementationHints

public java.util.Map getImplementationHints()
Returns the implementation hints. The default implementation returns en empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
The map of hints, or an empty map if none.


Copyright © GeoTools. All Rights Reserved.