wt.tools.resource
Class StringResourceInfo

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

public class StringResourceInfo
extends ResourceInfo
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static Hashtable infoCache
           
private static String RESOURCE
           
 
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
StringResourceInfo()
           
 
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 StringResourceInfo obtainStringResourceInfo(String infoName)
          Get an StringResourceInfo instance for the infoName.
 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)
           
 
Methods inherited from class wt.tools.resource.ResourceInfo
buildResource, buildResourceSet, containsCategory, directory, filename, filename, getBuilder, getComments, getCustomizedValue, getCustomizedValues, getCustomizedView, getDefaultInfo, getExtendClass, getLocale, getLocalization, getName, getResourceType, getValue, getValues, isCustomizable, isDeprecated, isEmpty, isEmpty, isFromDefault, isPrimaryKey, isReplacement, load, loadAll, localePattern, notifyLocalizations, obtainLocalization, obtainValue, order, populateResource, printFormat, putCustomizedValue, putLocalization, putValue, removeCustomizedValue, removeLocalization, removeValue, setComments, setContainsCategory, setCustomizable, setDeprecated, setExtendClass, setLocale, setName, setReplacement, toString, write, write, writeSet, writeTranslationSupport, writeUnlocalizedValue, writeValue
 
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

infoCache

private static final Hashtable infoCache
Constructor Detail

StringResourceInfo

public StringResourceInfo()
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 ResourceInfo
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 ResourceInfo
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

obtainStringResourceInfo

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

Supported API: false

Parameters:
infoName -
Returns:
StringResourceInfo
Throws:
WTResourceException

makeInfo

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

Supported API: false

Specified by:
makeInfo in class ResourceInfo
Returns:
ResourceInfo
Throws:
WTPropertyVetoException

makeValue

protected ResourceValue makeValue(String a_Key)
                           throws WTPropertyVetoException
Make a new ResourceValue, for this ResourceInfo.

Supported API: false

Specified by:
makeValue in class ResourceInfo
Parameters:
a_Key -
Returns:
ResourceValue
Throws:
WTPropertyVetoException