|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.menagery.dtd.Option
| Field Summary | |
static int |
OPTION_NONE
Indicates that the option cardinality is not specified. |
static int |
OPTION_NONE_TO_MANY
Indicates that the option cardinality is none-to-many (*) |
static int |
OPTION_ONE_TO_MANY
Indicates that the option cardinality is one-to-many (+) |
static int |
OPTION_OPTIONAL
Indicates that the option cardinality is optional (?) |
| Constructor Summary | |
Option()
Creates a new Option object. |
|
Option(java.lang.String optionname)
Creates a new Option object. |
|
| Method Summary | |
Element |
getElement()
Gets the associated Element for this option. |
java.lang.String |
getName()
Get the option name. |
int |
getOptionType()
Gets the type (cardinality) of this option. |
void |
setElement(Element element)
Sets the Element associated with this option. |
void |
setOptionType(int optiontype)
Sets the type (cardinality) of this option. |
java.lang.String |
toString()
Returns a String representation of this Option. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int OPTION_NONE
public static final int OPTION_NONE_TO_MANY
public static final int OPTION_OPTIONAL
public static final int OPTION_ONE_TO_MANY
| Constructor Detail |
public Option(java.lang.String optionname)
optionname - The name of this option (from the DTD).public Option()
| Method Detail |
public java.lang.String getName()
public Element getElement()
public void setElement(Element element)
element - The associated Element object.public int getOptionType()
public void setOptionType(int optiontype)
optiontype - The integer option type.public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||