Package org.geotools.xml.schema.impl
Class AttributeGT
Object
AttributeGT
- All Implemented Interfaces:
Attribute
- Author:
- dzwiers
-
Field Summary
Fields inherited from interface Attribute
OPTIONAL, PROHIBITED, REQUIRED
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeGT
(String id, String name, URI namespace, SimpleType type, int use, String defaulT, String fixed, boolean form) Creates a new AttributeGT object. -
Method Summary
Modifier and TypeMethodDescriptionThis is intended to imitate the default value option provided in the declaration of an XML Schema attribute.getFixed()
This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.getId()
The Schema ID for this attribute definition.getName()
The name of the attribute specified if one was provided in the attribute declarationProvides 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.
-
Constructor Details
-
Method Details
-
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:
-
getFixed
Description copied from interface:Attribute
This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute. -
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". -
getId
Description copied from interface:Attribute
The Schema ID for this attribute definition. -
getName
Description copied from interface:Attribute
The name of the attribute specified if one was provided in the attribute declaration -
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. -
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:
-
getNamespace
- Specified by:
getNamespace
in interfaceAttribute
- See Also:
-