|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.world.RuleOptions.Option
An Option is created for each type of Rule that may have more than one allowable option. The name of each Option must be unique.
Field Summary | |
protected RuleOptions.OptionValue[] |
allowed
|
protected RuleOptions.OptionValue |
defaultValue
|
protected java.lang.String |
name
|
Constructor Summary | |
RuleOptions.Option(java.lang.String name,
RuleOptions.OptionValue defaultValue,
RuleOptions.OptionValue[] allowed)
Create an Option. |
Method Summary | |
boolean |
checkValue(RuleOptions.OptionValue value)
Checks if the given OptionValue is permitted; if so, returns true. |
boolean |
equals(java.lang.Object obj)
|
RuleOptions.OptionValue[] |
getAllowed()
Returns the allowed Option values. |
RuleOptions.OptionValue |
getDefault()
Returns the default Option value. |
java.lang.String |
getDescriptionI18N()
Gets the internationalized ("display") version of the description. |
java.lang.String |
getName()
Returns the Option name. |
java.lang.String |
getNameI18N()
Gets the internationalized ("display") version of the name. |
int |
hashCode()
|
boolean |
isAllowed(RuleOptions.OptionValue optionValue)
Checks if the given optionValue is allowed. |
protected java.lang.Object |
readResolve()
|
java.lang.String |
toString()
For debugging only |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final java.lang.String name
protected final RuleOptions.OptionValue[] allowed
protected final RuleOptions.OptionValue defaultValue
Constructor Detail |
public RuleOptions.Option(java.lang.String name, RuleOptions.OptionValue defaultValue, RuleOptions.OptionValue[] allowed)
Method Detail |
public java.lang.String getName()
public RuleOptions.OptionValue getDefault()
public RuleOptions.OptionValue[] getAllowed()
public boolean isAllowed(RuleOptions.OptionValue optionValue)
public java.lang.String getNameI18N()
public java.lang.String getDescriptionI18N()
public boolean checkValue(RuleOptions.OptionValue value)
public boolean equals(java.lang.Object obj)
public int hashCode()
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |