wt.tools.resource
Class MetadataResourceInfo

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

public class MetadataResourceInfo
extends StringResourceInfo
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
MetadataResourceInfo()
           
 
Method Summary
private  void customizedValueValidate(String key, ResourceValue a_CustomizedValue)
           
protected  String getResourceType()
          Gets the resource type.
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 MetadataResourceInfo obtainMetadataResourceInfo(String infoName)
          Get an StringResourceInfo 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 writeTranslationSupport(PrintWriter output, ResourceValue rv)
           
protected  void writeUnlocalizedValue(PrintWriter output, ResourceValue rv)
           
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.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

MetadataResourceInfo

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

obtainMetadataResourceInfo

public static MetadataResourceInfo obtainMetadataResourceInfo(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:
MetadataResourceInfo
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 ResourceInfo
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 ResourceInfo
Parameters:
output -
rv -

makeInfo

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

Overrides:
makeInfo in class StringResourceInfo
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 StringResourceInfo
Parameters:
a_Key -
Returns:
ResourceValue
Throws:
WTPropertyVetoException

writeTranslationSupport

protected void writeTranslationSupport(PrintWriter output,
                                       ResourceValue rv)
Overrides:
writeTranslationSupport in class ResourceInfo

writeUnlocalizedValue

protected void writeUnlocalizedValue(PrintWriter output,
                                     ResourceValue rv)
Overrides:
writeUnlocalizedValue in class ResourceInfo

printFormat

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

getResourceType

protected String getResourceType()
Gets the resource type.

Overrides:
getResourceType in class ResourceInfo
Returns:
String The values that maps to a ResourceBuilder to use to create the run-time bundle.