|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
An instance of this interface should represent an Attribute from an XML schema.
modules/library/xml (gt-xml.jar)
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 | |
---|---|
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 declaration |
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 |
---|
static final int OPTIONAL
static final int PROHIBITED
static final int REQUIRED
Method Detail |
---|
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.
boolean isForm()
Intended to represent the form of an XML attribute. This method should return True when the attribute is "qualified".
String getId()
The Schema ID for this attribute definition.
String getName()
The name of the attribute specified if one was provided in the attribute declaration
URI getNamespace()
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.
SimpleType getSimpleType()
Provides a reference to the simpleType which defines the data type of this attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |