Package com.adobe.aem.dermis.model.value
Interface ITypeValue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectget()Return the actual value object.<T> Tget(java.lang.Class<T> type)Get the value by converting it into the given type.<T> Tget(java.lang.Class<T> type, T defaultValue)Get the value by converting it into the given type.PropertyFormatTypegetFormat()Returns thePropertyFormatTypeof valuePropertyTypegetPropertyType()Returns thePropertyTypeof value
-
-
-
Method Detail
-
get
java.lang.Object get()
Return the actual value object.- Returns:
-
getPropertyType
PropertyType getPropertyType()
Returns thePropertyTypeof value- Returns:
- - Returns the
PropertyTypeof value
-
getFormat
PropertyFormatType getFormat()
Returns thePropertyFormatTypeof value- Returns:
- - Returns the
PropertyFormatTypeof 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 isnullany existing property is not converted.- Returns:
-
-