|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.resource.ResourceValue
A value for an entry in a resource. Due to localizations and customizations,
there may be multiple values for a particular entry.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private ResourceEntry |
entry
|
private static String |
RESOURCE
|
protected static String |
TRANSLATION_SOURCE_NOW
|
protected static String |
TRANSLATION_SOURCE_WAS
|
private ResourceValue |
translationSource
|
private boolean |
updated
|
private Object |
value
|
protected static String |
VALUE_TAG
|
Constructor Summary | |
ResourceValue()
|
Method Summary | |
Object |
clone()
Supported API: false |
private void |
entryValidate(ResourceEntry a_Entry)
|
boolean |
equals(Object obj)
|
String[] |
getArgComments()
Gets the value of the attribute: argComments; Descriptions of the arguments that may be embedded in the entry's value (message). |
String |
getCategory()
Gets the value of the attribute: category; Non-localizable category of the entry. |
String |
getComment()
Gets the value of the attribute: comment; Non-localizable description of the entry. |
String |
getConstant()
Gets the value of the attribute: constant; The (optional) constant field name for the entry. |
protected ResourceEntry |
getEntry()
Gets the object for the association that plays role: entry. |
String |
getKey()
Gets the value of the attribute: key; Internal key for the entry. |
protected ResourceValue |
getPrimaryValue()
Gets the value of the attribute: primaryValue; The primary (default) resource value for a localized value. |
ResourceValue |
getTranslationSource()
Gets the object for the association that plays role: translationSource. |
Object |
getValue()
Gets the value of the attribute: value; The value of this ResourceValue for the entry. |
protected void |
initialize(String a_Key)
Initialize this object. |
boolean |
isCustomizable()
Gets the value of the attribute: customizable; Specifies if this resource entry can be customized. |
boolean |
isDeprecated()
Gets the value of the attribute: deprecated; Specifies if this resource entry is deprecated. |
protected boolean |
isPrimaryValue()
Supported API: false |
protected void |
load(Dictionary source,
String owner)
Load the state of this instance from the source. |
protected void |
loadTranslationSource(Dictionary source)
|
protected ResourceEntry |
makeEntry(String a_Key)
Make a new ResourceEntry, for this ResourceValue. |
ResourceValue |
makeLocalization()
|
(package private) static ResourceValue |
newResourceValue(String a_Key)
Supported API: false |
private static Timestamp |
now()
|
void |
setArgComments(String[] a_ArgComments)
Sets the value of the attribute: argComments; Descriptions of the arguments that may be embedded in the entry's value (message). |
void |
setCategory(String a_Category)
Sets the value of the attribute: category; Non-localizable category of the entry. |
void |
setComment(String a_Comment)
Sets the value of the attribute: comment; Non-localizable description of the entry. |
void |
setConstant(String a_Constant)
Sets the value of the attribute: constant; The (optional) constant field name for the entry. |
void |
setCustomizable(boolean a_Customizable)
Sets the value of the attribute: customizable; Specifies if this resource entry can be customized. |
void |
setDeprecated(boolean a_Deprecated)
Sets the value of the attribute: deprecated; Specifies if this resource entry is deprecated. |
protected void |
setEntry(ResourceEntry a_Entry)
Sets the object for the association that plays role: entry. |
protected void |
setKey(String a_Key)
Sets the value of the attribute: key; Internal key for the entry. |
protected void |
setTranslationSource(ResourceValue a_TranslationSource)
Sets the object for the association that plays role: translationSource. |
void |
setValue(Object a_Value)
Sets the value of the attribute: value; The value of this ResourceValue for the entry. |
String |
toString()
|
protected void |
updated()
|
private void |
valueValidate(Object a_Value)
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Object value
private boolean updated
private ResourceEntry entry
private ResourceValue translationSource
protected static final String VALUE_TAG
protected static final String TRANSLATION_SOURCE_WAS
protected static final String TRANSLATION_SOURCE_NOW
Constructor Detail |
public ResourceValue()
Method Detail |
public String getKey()
protected void setKey(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
public String getCategory()
public void setCategory(String a_Category) throws WTPropertyVetoException
a_Category
-
WTPropertyVetoException
public String getComment()
public void setComment(String a_Comment) throws WTPropertyVetoException
a_Comment
-
WTPropertyVetoException
public String[] getArgComments()
public void setArgComments(String[] a_ArgComments) throws WTPropertyVetoException
a_ArgComments
-
WTPropertyVetoException
public String getConstant()
public void setConstant(String a_Constant) throws WTPropertyVetoException
a_Constant
-
WTPropertyVetoException
public boolean isCustomizable()
public void setCustomizable(boolean a_Customizable) throws WTPropertyVetoException
a_Customizable
-
WTPropertyVetoException
public boolean isDeprecated()
public void setDeprecated(boolean a_Deprecated)
a_Deprecated
- protected ResourceValue getPrimaryValue()
public Object getValue()
public void setValue(Object a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
private void valueValidate(Object a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
protected ResourceEntry getEntry()
protected void setEntry(ResourceEntry a_Entry) throws WTPropertyVetoException
a_Entry
-
WTPropertyVetoException
private void entryValidate(ResourceEntry a_Entry) throws WTPropertyVetoException
a_Entry
-
WTPropertyVetoException
public ResourceValue getTranslationSource()
protected void setTranslationSource(ResourceValue a_TranslationSource) throws WTPropertyVetoException
a_TranslationSource
-
WTPropertyVetoException
static ResourceValue newResourceValue(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
protected void initialize(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
protected ResourceEntry makeEntry(String a_Key) throws WTPropertyVetoException
a_Key
-
WTPropertyVetoException
protected void load(Dictionary source, String owner) throws WTPropertyVetoException
source
- owner
-
WTPropertyVetoException
protected boolean isPrimaryValue()
public Object clone()
protected void updated()
private static Timestamp now()
protected void loadTranslationSource(Dictionary source) throws WTPropertyVetoException
WTPropertyVetoException
public ResourceValue makeLocalization() throws WTPropertyVetoException
WTPropertyVetoException
public boolean equals(Object obj)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |