org.geotools.xml.schema.impl
Class AttributeGT

java.lang.Object
  extended byorg.geotools.xml.schema.impl.AttributeGT
All Implemented Interfaces:
Attribute

public class AttributeGT
extends java.lang.Object
implements Attribute

DOCUMENT ME!

Author:
dzwiers

Field Summary
 
Fields inherited from interface org.geotools.xml.schema.Attribute
OPTIONAL, PROHIBITED, REQUIRED
 
Constructor Summary
AttributeGT(java.lang.String id, java.lang.String name, java.net.URI namespace, SimpleType type, int use, java.lang.String defaulT, java.lang.String fixed, boolean form)
          Creates a new AttributeGT object.
 
Method Summary
 java.lang.String getDefault()
           This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.
 java.lang.String getFixed()
           This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.
 java.lang.String getId()
           The Schema ID for this attribute definition.
 java.lang.String getName()
           The name of the attribute specified if one was provided in the attribute declaration
 java.net.URI getNamespace()
          DOCUMENT ME!
 SimpleType getSimpleType()
           Provides a reference to the simpleType which defines the data type of this attribute.
 int getUse()
           Attributes only have three options for the number or occurences: none, once, optionally once.
 boolean isForm()
           Intended to represent the form of an XML attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeGT

public AttributeGT(java.lang.String id,
                   java.lang.String name,
                   java.net.URI namespace,
                   SimpleType type,
                   int use,
                   java.lang.String defaulT,
                   java.lang.String fixed,
                   boolean form)
Creates a new AttributeGT object.

Parameters:
id - DOCUMENT ME!
name - DOCUMENT ME!
namespace - DOCUMENT ME!
type - DOCUMENT ME!
use - DOCUMENT ME!
defaulT - DOCUMENT ME!
fixed - DOCUMENT ME!
form - DOCUMENT ME!
Method Detail

getDefault

public java.lang.String getDefault()
Description copied from interface: Attribute

This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.

Specified by:
getDefault in interface Attribute
Returns:
Default Value as a String or Null
See Also:
Attribute.getDefault()

getFixed

public java.lang.String getFixed()
Description copied from interface: Attribute

This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.

Specified by:
getFixed in interface Attribute
Returns:
Fixed Value as a String or Null
See Also:
Attribute.getFixed()

isForm

public boolean isForm()
Description copied from interface: Attribute

Intended to represent the form of an XML attribute. This method should return True when the attribute is "qualified".

Specified by:
isForm in interface Attribute
Returns:
See Also:
Attribute.isForm()

getId

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

The Schema ID for this attribute definition.

Specified by:
getId in interface Attribute
Returns:
See Also:
Attribute.getId()

getName

public java.lang.String getName()
Description copied from interface: Attribute

The name of the attribute specified if one was provided in the attribute declaration

Specified by:
getName in interface Attribute
Returns:
See Also:
Attribute.getName()

getUse

public int getUse()
Description copied from interface: Attribute

Attributes only have three options for the number or occurences: none, once, optionally once. This method returns the mask which represents the use of this attribute.

Specified by:
getUse in interface Attribute
Returns:
See Also:
Attribute.getUse()

getSimpleType

public SimpleType getSimpleType()
Description copied from interface: Attribute

Provides a reference to the simpleType which defines the data type of this attribute.

Specified by:
getSimpleType in interface Attribute
Returns:
See Also:
Attribute.getSimpleType()

getNamespace

public java.net.URI getNamespace()
Description copied from interface: Attribute
DOCUMENT ME!

Specified by:
getNamespace in interface Attribute
Returns:
See Also:
Attribute.getNamespace()


Copyright © GeoTools. All Rights Reserved.