public class AppianObject extends LinkedHashMap<String,AppianElement> implements AppianElement
AppianTypeFactory,
AppianList,
AppianComplex,
AppianPrimitive,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
AppianList |
getList(String property)
Returns the element with the specified property name in this map as an AppianList.
|
<T> List<T> |
getList(String property,
Class<T> clazz)
Returns the value of the primitive as the given type
|
AppianObject |
getObject(String property)
Returns the element with the specified property name in this map as an AppianObject.
|
AppianPrimitive |
getPrimitive(String property)
Returns the element with the specified property name in this map as an AppianPrimitive.
|
long |
getTypeId()
Returns the AppianType Id of this element.
|
<T> T |
getValue(String property,
Class<T> clazz)
Returns the value of the primitive as the given type
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic AppianList getList(String property)
property - the property name of the element in this map to returnClassCastException - if the specified element is not an AppianListgetList(String, Class),
LinkedHashMap.get(Object)public <T> List<T> getList(String property, Class<T> clazz)
property - the property name of the element in this map to returnclazz - The type to cast each value in the list toClassCastException - if any value of the list at the requested position cannot be cast to the requested typeLinkedHashMap.get(Object)public AppianObject getObject(String property)
property - the property name of the element in this map to returnClassCastException - if the specified element is not an AppianObjectLinkedHashMap.get(Object)public AppianPrimitive getPrimitive(String property)
property - the property name of the element in this map to returnClassCastException - if the specified element is not an AppianPrimitivegetValue(String, Class),
LinkedHashMap.get(Object)public <T> T getValue(String property, Class<T> clazz)
property - the property name of the element in this map to returnclazz - The type to cast the value toClassCastException - if the value of the primitive at the requested position cannot be cast to the requested typeLinkedHashMap.get(Object)public long getTypeId()
getTypeId in interface AppianElementCopyright © 2018 Appian Corporation. All rights reserved.