wt.tools.resource
Class EnumResourceInfo

java.lang.Object
  extended bywt.tools.resource.ResourceInfo
      extended bywt.tools.resource.StringResourceInfo
          extended bywt.tools.resource.MetadataResourceInfo
              extended bywt.tools.resource.EnumResourceInfo
All Implemented Interfaces:
Serializable

public class EnumResourceInfo
extends MetadataResourceInfo
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.tools.resource.StringResourceInfo
 
Fields inherited from class wt.tools.resource.ResourceInfo
BACKUP, baseHasChanged, COMPILE, customHasChanged, DEL_SOURCE, EXTENSION, FORCE_COMPILE, FROM_DEFAULT_FORCE, FROM_DEFAULT_LOCALES, MSG_CAT, TRANSLATION_SECTION_MARKER, TRANSLATION_SUPPORT, translationSectionStarted
 
Constructor Summary
EnumResourceInfo()
           
 
Method Summary
private  void customizedValueValidate(String key, ResourceValue a_CustomizedValue)
           
protected  ResourceInfo makeInfo()
          Construct a new instance of the current object's class.
protected  ResourceValue makeValue(String a_Key)
          Make a new ResourceValue, for this ResourceInfo.
static EnumResourceInfo obtainEnumResourceInfo(String infoName)
          Get an EnumResourceInfo instance for the infoName.
protected  void populateResource(Dictionary keyValues, Dictionary constants, ResourceValue rv)
          Populate the resource with the values needed at run-time.
protected  void printFormat(PrintWriter output)
           
 ResourceValue putCustomizedValue(String key, ResourceValue a_CustomizedValue)
          Sets the object for the association that plays role: customizedValue.
 ResourceValue putValue(String key, ResourceValue a_Value)
          Sets the object for the association that plays role: value.
private  void valueValidate(String key, ResourceValue a_Value)
           
protected  void writeValue(PrintWriter output, ResourceValue rv)
          Write the state of a particular ResourceValue to the output target.
 
Methods inherited from class wt.tools.resource.MetadataResourceInfo
getResourceType, obtainMetadataResourceInfo, writeTranslationSupport, writeUnlocalizedValue
 
Methods inherited from class wt.tools.resource.StringResourceInfo
obtainStringResourceInfo
 
Methods inherited from class wt.tools.resource.ResourceInfo
buildResource, buildResourceSet, containsCategory, directory, filename, filename, getBuilder, getComments, getCustomizedValue, getCustomizedValues, getCustomizedView, getDefaultInfo, getExtendClass, getLocale, getLocalization, getName, getValue, getValues, isCustomizable, isDeprecated, isEmpty, isEmpty, isFromDefault, isPrimaryKey, isReplacement, load, loadAll, localePattern, notifyLocalizations, obtainLocalization, obtainValue, order, putCustomizedValue, putLocalization, putValue, removeCustomizedValue, removeLocalization, removeValue, setComments, setContainsCategory, setCustomizable, setDeprecated, setExtendClass, setLocale, setName, setReplacement, toString, write, write, writeSet
 
Methods inherited from class java.lang.Object
clone, equals, 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
Constructor Detail

EnumResourceInfo

public EnumResourceInfo()
Method Detail

putValue

public ResourceValue putValue(String key,
                              ResourceValue a_Value)
                       throws WTPropertyVetoException
Sets the object for the association that plays role: value.

Supported API: false

Overrides:
putValue in class MetadataResourceInfo
Parameters:
key -
a_Value -
Returns:
ResourceValue
Throws:
WTPropertyVetoException

valueValidate

private void valueValidate(String key,
                           ResourceValue a_Value)
                    throws WTPropertyVetoException
Parameters:
key -
a_Value -
Throws:
WTPropertyVetoException

putCustomizedValue

public ResourceValue putCustomizedValue(String key,
                                        ResourceValue a_CustomizedValue)
                                 throws WTPropertyVetoException
Sets the object for the association that plays role: customizedValue.

Supported API: false

Overrides:
putCustomizedValue in class MetadataResourceInfo
Parameters:
key -
a_CustomizedValue -
Returns:
ResourceValue
Throws:
WTPropertyVetoException

customizedValueValidate

private void customizedValueValidate(String key,
                                     ResourceValue a_CustomizedValue)
                              throws WTPropertyVetoException
Parameters:
key -
a_CustomizedValue -
Throws:
WTPropertyVetoException

obtainEnumResourceInfo

public static EnumResourceInfo obtainEnumResourceInfo(String infoName)
                                               throws WTResourceException
Get an EnumResourceInfo instance for the infoName. If one does not already exist, a new one will be created and returned.

Supported API: false

Parameters:
infoName -
Returns:
EnumResourceInfo
Throws:
WTResourceException

populateResource

protected void populateResource(Dictionary keyValues,
                                Dictionary constants,
                                ResourceValue rv)
                         throws WTPropertyVetoException
Populate the resource with the values needed at run-time.

Supported API: false

Overrides:
populateResource in class MetadataResourceInfo
Parameters:
keyValues -
constants -
rv -
Throws:
WTPropertyVetoException

writeValue

protected void writeValue(PrintWriter output,
                          ResourceValue rv)
Write the state of a particular ResourceValue to the output target.

Supported API: false

Overrides:
writeValue in class MetadataResourceInfo
Parameters:
output -
rv -

makeInfo

protected ResourceInfo makeInfo()
                         throws WTPropertyVetoException
Construct a new instance of the current object's class.

Overrides:
makeInfo in class MetadataResourceInfo
Returns:
ResourceInfo
Throws:
WTPropertyVetoException

makeValue

protected ResourceValue makeValue(String a_Key)
                           throws WTPropertyVetoException
Description copied from class: StringResourceInfo
Make a new ResourceValue, for this ResourceInfo.

Supported API: false

Overrides:
makeValue in class MetadataResourceInfo
Throws:
WTPropertyVetoException

printFormat

protected void printFormat(PrintWriter output)
Overrides:
printFormat in class MetadataResourceInfo