wt.tools.resource
Class EnumResourceValue

java.lang.Object
  extended bywt.tools.resource.ResourceValue
      extended bywt.tools.resource.StringResourceValue
          extended bywt.tools.resource.MetadataResourceValue
              extended bywt.tools.resource.EnumResourceValue
All Implemented Interfaces:
Cloneable, Serializable

public class EnumResourceValue
extends MetadataResourceValue
implements Serializable

The value for an EnumeratedType. It is a specialization of its parent class, because the "value" has multiple, embedded values, which are represented by the attributes of this class.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  boolean defaultValue
           
private  int order
           
private static String RESOURCE
           
 
Fields inherited from class wt.tools.resource.MetadataResourceValue
 
Fields inherited from class wt.tools.resource.ResourceValue
TRANSLATION_SOURCE_NOW, TRANSLATION_SOURCE_WAS, VALUE_TAG
 
Constructor Summary
EnumResourceValue()
           
 
Method Summary
private  void entryValidate(ResourceEntry a_Entry)
           
 boolean equals(Object obj)
           
 int getOrder()
          Gets the value of the attribute: order.
 boolean isDefaultValue()
          Gets the value of the attribute: defaultValue.
 boolean isSelectable()
          Gets the value of the attribute: selectable.
protected  void load(Dictionary source, String owner)
          Load the state of this instance from the source.
protected  ResourceEntry makeEntry(String a_Key)
          Make a new ResourceEntry, for this ResourceValue.
(package private) static EnumResourceValue newEnumResourceValue(String a_Key)
          

Supported API: false
 void setDefaultValue(boolean a_DefaultValue)
          Sets the value of the attribute: defaultValue.
protected  void setEntry(ResourceEntry a_Entry)
          Sets the object for the association that plays role: entry.
 void setOrder(int a_Order)
          Sets the value of the attribute: order.
 void setSelectable(boolean a_Selectable)
          Sets the value of the attribute: selectable.
 
Methods inherited from class wt.tools.resource.MetadataResourceValue
getAbbreviatedDisplay, getDisplay, getExtraProperties, getFullDisplay, getLongDescription, getShortDescription, newMetadataResourceValue, setAbbreviatedDisplay, setDisplay, setExtraProperties, setFullDisplay, setLongDescription, setShortDescription
 
Methods inherited from class wt.tools.resource.StringResourceValue
newStringResourceValue, setValue
 
Methods inherited from class wt.tools.resource.ResourceValue
clone, getArgComments, getCategory, getComment, getConstant, getEntry, getKey, getPrimaryValue, getTranslationSource, getValue, initialize, isCustomizable, isDeprecated, isPrimaryValue, loadTranslationSource, makeLocalization, newResourceValue, setArgComments, setCategory, setComment, setConstant, setCustomizable, setDeprecated, setKey, setTranslationSource, toString, updated
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

order

private int order

defaultValue

private boolean defaultValue
Constructor Detail

EnumResourceValue

public EnumResourceValue()
Method Detail

getOrder

public int getOrder()
Gets the value of the attribute: order.

Supported API: false

Returns:
int

setOrder

public void setOrder(int a_Order)
              throws WTPropertyVetoException
Sets the value of the attribute: order.

Supported API: false

Parameters:
a_Order -
Throws:
WTPropertyVetoException

isDefaultValue

public boolean isDefaultValue()
Gets the value of the attribute: defaultValue.

Supported API: false

Returns:
boolean

setDefaultValue

public void setDefaultValue(boolean a_DefaultValue)
                     throws WTPropertyVetoException
Sets the value of the attribute: defaultValue.

Supported API: false

Parameters:
a_DefaultValue -
Throws:
WTPropertyVetoException

isSelectable

public boolean isSelectable()
Gets the value of the attribute: selectable.

Supported API: false

Returns:
boolean

setSelectable

public void setSelectable(boolean a_Selectable)
                   throws WTPropertyVetoException
Sets the value of the attribute: selectable.

Supported API: false

Parameters:
a_Selectable -
Throws:
WTPropertyVetoException

setEntry

protected void setEntry(ResourceEntry a_Entry)
                 throws WTPropertyVetoException
Sets the object for the association that plays role: entry.

Supported API: false

Overrides:
setEntry in class ResourceValue
Parameters:
a_Entry -
Throws:
WTPropertyVetoException

entryValidate

private void entryValidate(ResourceEntry a_Entry)
                    throws WTPropertyVetoException
Parameters:
a_Entry -
Throws:
WTPropertyVetoException

newEnumResourceValue

static EnumResourceValue newEnumResourceValue(String a_Key)
                                       throws WTPropertyVetoException


Supported API: false

Parameters:
a_Key -
Returns:
EnumResourceValue
Throws:
WTPropertyVetoException

makeEntry

protected ResourceEntry makeEntry(String a_Key)
                           throws WTPropertyVetoException
Make a new ResourceEntry, for this ResourceValue.

Supported API: false

Overrides:
makeEntry in class ResourceValue
Parameters:
a_Key -
Returns:
ResourceEntry
Throws:
WTPropertyVetoException

load

protected void load(Dictionary source,
                    String owner)
             throws WTPropertyVetoException
Load the state of this instance from the source.

Supported API: false

Overrides:
load in class MetadataResourceValue
Parameters:
source -
owner -
Throws:
WTPropertyVetoException

equals

public boolean equals(Object obj)
Overrides:
equals in class MetadataResourceValue