Package org.geotools.xml.schema
Interface Attribute
-
- All Known Implementing Classes:
AttributeGT,XLinkSchema.Actuate,XLinkSchema.Arcrole,XLinkSchema.From,XLinkSchema.Href,XLinkSchema.Label,XLinkSchema.Role,XLinkSchema.Show,XLinkSchema.Title,XLinkSchema.To,XLinkSchema.XLinkAttribute
public interface AttributeAn instance of this interface should represent an Attribute from an XML schema.- Author:
- dzwiers www.refractions.net
-
-
Field Summary
Fields Modifier and Type Field Description static intOPTIONALRepresent a mask used to determine the life of the attribute in an instance document.static intPROHIBITEDRepresent a mask used to determine the life of the attribute in an instance document.static intREQUIREDRepresent a mask used to determine the life of the attribute in an instance document.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
OPTIONAL
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
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
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
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
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
boolean isForm()
Intended to represent the form of an XML attribute. This method should return True when the attribute is "qualified".
-
getId
String getId()
The Schema ID for this attribute definition.
-
getName
String getName()
The name of the attribute specified if one was provided in the attribute declaration
-
getNamespace
URI getNamespace()
-
getUse
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.
-
getSimpleType
SimpleType getSimpleType()
Provides a reference to the simpleType which defines the data type of this attribute.
-
-