Package com.adobe.aem.dermis.model.value
Interface ITypeValue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get()
Return the actual value object.<T> T
get(java.lang.Class<T> type)
Get the value by converting it into the given type.<T> T
get(java.lang.Class<T> type, T defaultValue)
Get the value by converting it into the given type.PropertyFormatType
getFormat()
Returns thePropertyFormatType
of valuePropertyType
getPropertyType()
Returns thePropertyType
of value
-
-
-
Method Detail
-
get
java.lang.Object get()
Return the actual value object.- Returns:
-
getPropertyType
PropertyType getPropertyType()
Returns thePropertyType
of value- Returns:
- - Returns the
PropertyType
of value
-
getFormat
PropertyFormatType getFormat()
Returns thePropertyFormatType
of value- Returns:
- - Returns the
PropertyFormatType
of value
-
get
<T> T get(java.lang.Class<T> type)
Get the value by converting it into the given type.- Type Parameters:
T
-- Parameters:
type
- The class of the type- Returns:
-
get
<T> T get(java.lang.Class<T> type, T defaultValue)
Get the value by converting it into the given type. It should return the default value if value empty- Type Parameters:
T
-- Parameters:
type
- The class of the typedefaultValue
- The default value to use if the named property does not exist or cannot be converted to the requested type. The default value is also used to define the type to convert the value to. If this isnull
any existing property is not converted.- Returns:
-
-