@ProviderType
public interface RuntimeObjectModel
RuntimeObjectModel provides various utility object inspection & conversion methods that can be applied to runtime
objects when executing HTL scripts.| 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.
|
boolean isPrimitive(Object obj)
obj - the target objecttrue if the target is a primitive, false otherwiseboolean isCollection(Object target)
Collection or is backed by one.target - the target objecttrue if the target is a collection or is backed by one, false otherwiseboolean isNumber(Object target)
target - the target objecttrue if the target is a number, false otherwiseboolean isDate(Object target)
target - the target objecttrue if the target is a date or calendar, false otherwiseObject resolveProperty(Object target, Object property)
target - the target objectproperty - the property to be resolvedboolean toBoolean(Object object)
object - the target objectNumber toNumber(Object object)
object - the target objectDate toDate(Object object)
Date objectobject - the target objectobjectString toString(Object target)
target - the target objectCollection<Object> toCollection(Object object)
object - the target objectCopyright © 2017 The Apache Software Foundation. All rights reserved.