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, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public 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 AppianElement
Copyright © 2018 Appian Corporation. All rights reserved.