Package generic.theme
Class BooleanPropertyValue
- All Implemented Interfaces:
Comparable<ThemeValue<Object>>
A Java property value for keys that use boolean values.
-
Field Summary
Fields inherited from class generic.theme.ThemeValue
id, referenceId, value -
Constructor Summary
ConstructorsConstructorDescriptionBooleanPropertyValue(String id, boolean value) BooleanPropertyValue(String id, String refId, Boolean value) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected ObjectgetUnresolvedReferenceValue(String primaryId, String unresolvedId) Returns the T to be used if the indirect reference couldn't be resolved.static booleanisBooleanKey(String key) static BooleanPropertyValueprotected StringtoExternalId(String internalId) Methods inherited from class generic.theme.JavaPropertyValue
getReferredValue, getSerializationString, installValue, isExternalMethods inherited from class generic.theme.ThemeValue
compareTo, equals, get, getId, getRawValue, getReferenceId, hashCode, hasResolvableValue, inheritsFrom, isIndirect, toString
-
Constructor Details
-
BooleanPropertyValue
-
BooleanPropertyValue
-
-
Method Details
-
isBooleanKey
-
parse
-
getUnresolvedReferenceValue
Description copied from class:ThemeValueReturns the T to be used if the indirect reference couldn't be resolved.- Specified by:
getUnresolvedReferenceValuein 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:
toExternalIdin classJavaPropertyValue
-
getSerializedValue
- Specified by:
getSerializedValuein classJavaPropertyValue
-