Class EntityReferenceCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<EntityReference>
-
- com.thingworx.entities.collections.EntityReferenceCollection
-
- All Implemented Interfaces:
IDiffableObject
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<EntityReference>
,java.util.Collection<EntityReference>
,java.util.List<EntityReference>
,java.util.RandomAccess
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class EntityReferenceCollection extends java.util.ArrayList<EntityReference> implements IDiffableObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityReferenceCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMember(EntityReference entity)
void
addMembers(EntityReferenceCollection members)
boolean
containsMember(EntityReference entity)
boolean
containsMember(java.lang.String name, RelationshipTypes.ThingworxRelationshipTypes type)
static EntityReferenceCollection
fromJSON(org.json.JSONArray jsonArray)
void
removeMember(EntityReference entity)
void
removeMembers(EntityReferenceCollection members)
InfoTable
toInfoTable()
org.json.JSONArray
toJSON()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
containsMember
@ThingworxExtensionApiMethod(since={6,6}) public boolean containsMember(java.lang.String name, RelationshipTypes.ThingworxRelationshipTypes type)
-
containsMember
@ThingworxExtensionApiMethod(since={6,6}) public boolean containsMember(EntityReference entity)
-
addMember
@ThingworxExtensionApiMethod(since={6,6}) public void addMember(EntityReference entity)
-
addMembers
@ThingworxExtensionApiMethod(since={6,6}) public void addMembers(EntityReferenceCollection members)
-
removeMember
@ThingworxExtensionApiMethod(since={6,6}) public void removeMember(EntityReference entity)
-
removeMembers
@ThingworxExtensionApiMethod(since={6,6}) public void removeMembers(EntityReferenceCollection members)
-
toInfoTable
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable toInfoTable()
-
toJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONArray toJSON() throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
fromJSON
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReferenceCollection fromJSON(org.json.JSONArray jsonArray) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
-