|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--stuart.xmlApp.dtd.Attribute
| Field Summary | |
static java.lang.String |
DEFAULT_FIXED
|
static java.lang.String |
DEFAULT_IMPLIED
|
static java.lang.String |
DEFAULT_REQUIRED
|
static java.lang.String |
TYPE_CDATA
|
static java.lang.String |
TYPE_ID
|
static java.lang.String |
TYPE_IDREF
|
static java.lang.String |
TYPE_IDREFS
|
static java.lang.String |
TYPE_NMTOKEN
|
static java.lang.String |
TYPE_NMTOKENS
|
| Constructor Summary | |
Attribute(java.lang.String n,
java.lang.String t,
java.lang.String d)
A constructor for an attribute with a name, type, and default value modifier. |
|
Attribute(java.lang.String n,
java.lang.String t,
java.lang.String d,
java.lang.String v)
A constructor for an attribute with a name, type, default value modifier, and default value |
|
| Method Summary | |
java.lang.String |
getDefault()
Returns the default of the Attribute. |
java.lang.String |
getDefaultValue()
|
java.lang.String |
getName()
Returns the name of the attribute |
java.lang.String |
getTagText()
Returns to tag text for the attribute. |
java.lang.String |
getType()
Returns the type of the Attribute. |
static void |
main(java.lang.String[] args)
|
void |
setDefault(java.lang.String d)
|
void |
setDefaultValue(java.lang.String d)
|
void |
setName(java.lang.String n)
Sets the name of the attribute. |
void |
setType(java.lang.String type)
Sets the type of the Attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String TYPE_CDATA
public static final java.lang.String TYPE_NMTOKEN
public static final java.lang.String TYPE_NMTOKENS
public static final java.lang.String TYPE_ID
public static final java.lang.String TYPE_IDREF
public static final java.lang.String TYPE_IDREFS
public static final java.lang.String DEFAULT_REQUIRED
public static final java.lang.String DEFAULT_IMPLIED
public static final java.lang.String DEFAULT_FIXED
| Constructor Detail |
public Attribute(java.lang.String n,
java.lang.String t,
java.lang.String d,
java.lang.String v)
n - The name of the attribute.t - The type of the attribute. Use static TYPE_name fields.d - The default of the attribute. Use static DEFAULT_name fields.v - The default value.
public Attribute(java.lang.String n,
java.lang.String t,
java.lang.String d)
n - The name of the attribute.t - The type of the attribute. Use static TYPE_name fields.d - The default of the attribute. Use static DEFAULT_name fields.| Method Detail |
public java.lang.String getTagText()
public java.lang.String getName()
public void setName(java.lang.String n)
n - The proposed name of the attribute.public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getDefault()
public void setDefault(java.lang.String d)
public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String d)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||