public abstract class AbstractRuntimeObjectModel extends Object implements RuntimeObjectModel
RuntimeObjectModel.| Constructor and Description |
|---|
AbstractRuntimeObjectModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCollection(Object target)
Checks if an object is a
Collection or is backed by one. |
boolean |
isDate(Object target)
Checks if the provided object represents a date or calendar.
|
boolean |
isNumber(Object target)
Checks if the provided object represents a number or not.
|
boolean |
isPrimitive(Object obj)
Checks if the provided object represents a primitive data type or not.
|
Object |
resolveProperty(Object target,
Object property)
Resolve a property of a target object and return its value.
|
boolean |
toBoolean(Object object)
Convert the given object to a boolean value
|
Collection<Object> |
toCollection(Object object)
Force the conversion of the object to a collection
|
Date |
toDate(Object object)
Convert the given object to a
Date object |
Map |
toMap(Object object)
Force the conversion of the target object to a map
|
Number |
toNumber(Object object)
Coerce the object to a numeric value
|
String |
toString(Object target)
Convert the given object to a string.
|
public boolean isPrimitive(Object obj)
RuntimeObjectModelisPrimitive in interface RuntimeObjectModelobj - the target objecttrue if the target is a primitive, false otherwisepublic boolean isDate(Object target)
RuntimeObjectModelisDate in interface RuntimeObjectModeltarget - the target objecttrue if the target is a date or calendar, false otherwisepublic boolean isNumber(Object target)
RuntimeObjectModelisNumber in interface RuntimeObjectModeltarget - the target objecttrue if the target is a number, false otherwisepublic boolean isCollection(Object target)
RuntimeObjectModelCollection or is backed by one.isCollection in interface RuntimeObjectModeltarget - the target objecttrue if the target is a collection or is backed by one, false otherwisepublic Object resolveProperty(Object target, Object property)
RuntimeObjectModelresolveProperty in interface RuntimeObjectModeltarget - the target objectproperty - the property to be resolvedpublic boolean toBoolean(Object object)
RuntimeObjectModeltoBoolean in interface RuntimeObjectModelobject - the target objectpublic Number toNumber(Object object)
RuntimeObjectModeltoNumber in interface RuntimeObjectModelobject - the target objectpublic Date toDate(Object object)
RuntimeObjectModelDate objecttoDate in interface RuntimeObjectModelobject - the target objectobjectpublic String toString(Object target)
RuntimeObjectModeltoString in interface RuntimeObjectModeltarget - the target objectpublic Collection<Object> toCollection(Object object)
RuntimeObjectModeltoCollection in interface RuntimeObjectModelobject - the target objectpublic Map toMap(Object object)
RuntimeObjectModeltoMap in interface RuntimeObjectModelobject - the target objectCopyright © 2010 - 2020 Adobe. All Rights Reserved