Package generic.theme
Class StringPropertyValue
- All Implemented Interfaces:
Comparable<ThemeValue<Object>>
A Java property value for keys that use String values.
-
Field Summary
Fields inherited from class generic.theme.ThemeValue
id, referenceId, value
-
Constructor Summary
ConstructorDescriptionStringPropertyValue
(String id, String value) StringPropertyValue
(String id, String refId, String value) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected Object
getUnresolvedReferenceValue
(String primaryId, String unresolvedId) Returns the T to be used if the indirect reference couldn't be resolved.static boolean
isStringKey
(String key) static StringPropertyValue
protected String
toExternalId
(String internalId) Methods inherited from class generic.theme.JavaPropertyValue
getReferredValue, getSerializationString, installValue, isExternal
Methods inherited from class generic.theme.ThemeValue
compareTo, equals, get, getId, getRawValue, getReferenceId, hashCode, hasResolvableValue, inheritsFrom, isIndirect, toString
-
Constructor Details
-
StringPropertyValue
-
StringPropertyValue
-
-
Method Details
-
isStringKey
-
parse
-
getUnresolvedReferenceValue
Description copied from class:ThemeValue
Returns the T to be used if the indirect reference couldn't be resolved.- Specified by:
getUnresolvedReferenceValue
in classThemeValue<Object>
- Parameters:
primaryId
- the id we are trying to get a value forunresolvedId
- the reference id that couldn't be resolved- Returns:
- the default value to be used if the indirect reference couldn't be resolved.
-
toExternalId
- Specified by:
toExternalId
in classJavaPropertyValue
-
getSerializedValue
- Specified by:
getSerializedValue
in classJavaPropertyValue
-