Package org.geotools.xml.schema.impl
Class AttributeGT
- Object
-
- AttributeGT
-
-
Field Summary
-
Fields inherited from interface Attribute
OPTIONAL, PROHIBITED, REQUIRED
-
-
Constructor Summary
Constructors Constructor Description AttributeGT(String id, String name, URI namespace, SimpleType type, int use, String defaulT, String fixed, boolean form)
Creates a new AttributeGT object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefault()
This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.String
getFixed()
This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.String
getId()
The Schema ID for this attribute definition.String
getName()
The name of the attribute specified if one was provided in the attribute declarationURI
getNamespace()
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.
-
-
-
Method Detail
-
getDefault
public 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 interfaceAttribute
- Returns:
- Default Value as a String or Null
- See Also:
Attribute.getDefault()
-
getFixed
public 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 interfaceAttribute
- 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 interfaceAttribute
- See Also:
Attribute.isForm()
-
getId
public String getId()
Description copied from interface:Attribute
The Schema ID for this attribute definition.- Specified by:
getId
in interfaceAttribute
- See Also:
Attribute.getId()
-
getName
public 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 interfaceAttribute
- 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 interfaceAttribute
- 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 interfaceAttribute
- See Also:
Attribute.getSimpleType()
-
getNamespace
public URI getNamespace()
- Specified by:
getNamespace
in interfaceAttribute
- See Also:
Attribute.getNamespace()
-
-