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 StringgetDefault()This is intended to imitate the default value option provided in the declaration of an XML Schema attribute.StringgetFixed()This is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.StringgetId()The Schema ID for this attribute definition.StringgetName()The name of the attribute specified if one was provided in the attribute declarationURIgetNamespace()SimpleTypegetSimpleType()Provides a reference to the simpleType which defines the data type of this attribute.intgetUse()Attributes only have three options for the number or occurences: none, once, optionally once.booleanisForm()Intended to represent the form of an XML attribute.
-
-
-
Method Detail
-
getDefault
public String getDefault()
Description copied from interface:AttributeThis is intended to imitate the default value option provided in the declaration of an XML Schema attribute.- Specified by:
getDefaultin interfaceAttribute- Returns:
- Default Value as a String or Null
- See Also:
Attribute.getDefault()
-
getFixed
public String getFixed()
Description copied from interface:AttributeThis is intended to imitate the fixed value option provided in the declaration of an XML Schema attribute.- Specified by:
getFixedin interfaceAttribute- Returns:
- Fixed Value as a String or Null
- See Also:
Attribute.getFixed()
-
isForm
public boolean isForm()
Description copied from interface:AttributeIntended to represent the form of an XML attribute. This method should return True when the attribute is "qualified".- Specified by:
isFormin interfaceAttribute- See Also:
Attribute.isForm()
-
getId
public String getId()
Description copied from interface:AttributeThe Schema ID for this attribute definition.- Specified by:
getIdin interfaceAttribute- See Also:
Attribute.getId()
-
getName
public String getName()
Description copied from interface:AttributeThe name of the attribute specified if one was provided in the attribute declaration- Specified by:
getNamein interfaceAttribute- See Also:
Attribute.getName()
-
getUse
public int getUse()
Description copied from interface:AttributeAttributes 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:
getUsein interfaceAttribute- See Also:
Attribute.getUse()
-
getSimpleType
public SimpleType getSimpleType()
Description copied from interface:AttributeProvides a reference to the simpleType which defines the data type of this attribute.- Specified by:
getSimpleTypein interfaceAttribute- See Also:
Attribute.getSimpleType()
-
getNamespace
public URI getNamespace()
- Specified by:
getNamespacein interfaceAttribute- See Also:
Attribute.getNamespace()
-
-