org.geotools.xml.schema
Interface Attribute

All Known Implementing Classes:
AttributeGT, XLinkSchema.XLinkAttribute

public interface Attribute

An instance of this interface should represent an Attribute from an XML schema.

Author:
dzwiers www.refractions.net

Field Summary
static int OPTIONAL
          Represent a mask used to determine the life of the attribute in an instance document.
static int PROHIBITED
          Represent a mask used to determine the life of the attribute in an instance document.
static int REQUIRED
          Represent a mask used to determine the life of the attribute in an instance document.
 
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.
 

Field Detail

OPTIONAL

public static final int OPTIONAL
Represent a mask used to determine the life of the attribute in an instance document.

See Also:
Constant Field Values

PROHIBITED

public static final int PROHIBITED
Represent a mask used to determine the life of the attribute in an instance document.

See Also:
Constant Field Values

REQUIRED

public static final int REQUIRED
Represent a mask used to determine the life of the attribute in an instance document.

See Also:
Constant Field Values
Method Detail

getDefault

public java.lang.String getDefault()

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

Returns:
Default Value as a String or Null

getFixed

public java.lang.String getFixed()

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

Returns:
Fixed Value as a String or Null

isForm

public boolean isForm()

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

Returns:

getId

public java.lang.String getId()

The Schema ID for this attribute definition.

Returns:

getName

public java.lang.String getName()

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

Returns:

getNamespace

public java.net.URI getNamespace()
DOCUMENT ME!

Returns:

getUse

public int getUse()

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.

Returns:

getSimpleType

public SimpleType getSimpleType()

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

Returns:


Copyright © GeoTools. All Rights Reserved.