@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class EntityReference extends java.lang.Object implements java.lang.Comparable<EntityReference>
Constructor and Description |
---|
EntityReference() |
EntityReference(RootEntity entity) |
EntityReference(java.lang.String name,
RelationshipTypes.ThingworxRelationshipTypes type) |
EntityReference(java.lang.String name,
short code) |
EntityReference(java.lang.String name,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EntityReference that) |
static EntityReference |
findByName(java.lang.String name,
RelationshipTypes.ThingworxRelationshipTypes type) |
java.lang.String |
getDescription() |
java.lang.String |
getEntityName() |
java.lang.String |
getName() |
RootEntity |
getReference()
Returns the entity object referenced by the name and type. |
java.lang.String |
getSubEntityName() |
RelationshipTypes.ThingworxRelationshipTypes |
getType() |
boolean |
matches(EntityReference entityReference) |
java.lang.String |
toString() |
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference()
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference(RootEntity entity)
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference(java.lang.String name, RelationshipTypes.ThingworxRelationshipTypes type)
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference(java.lang.String name, short code)
@ThingworxExtensionApiMethod(since={6,6}) public EntityReference(java.lang.String name, java.lang.String type)
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getType()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getName()
@ThingworxExtensionApiMethod(since={6,6}) public RootEntity getReference()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getEntityName()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getSubEntityName()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getDescription()
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReference findByName(java.lang.String name, RelationshipTypes.ThingworxRelationshipTypes type) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public boolean matches(EntityReference entityReference)
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String toString()
toString
in class java.lang.Object
@ThingworxExtensionApiMethod(since={7,4}) public int compareTo(EntityReference that)
compareTo
in interface java.lang.Comparable<EntityReference>