Entity Class
- java.
lang. Object - com.
microsoft. bot. schema. Entity
- com.
Implements
public class Entity
implements EntitySerialization
Metadata object pertaining to an activity.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Entity() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static T |
<T>getAs(EntitySerialization entity, Class<T> classType)
Converts Entity to other Entity types. |
| T |
<T>getAs(Class<T> classType)
Converts Entity to other Entity types. |
| Entity |
<T>setAs(T obj)
Converts other Entity types to Entity. |
| static Entity |
clone(Entity entity)
Performs a deep copy of an Entity. |
| static java.util.List<Entity> |
cloneList(List<? extends Entity> entities)
Performs a deep copy of a List of Entities. |
| java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
Additional properties not defined by this class. |
| java.lang.String |
getType()
Type of this entity (RFC 3987 IRI). |
| void |
setProperties(String key, JsonNode value)
Additional properties not defined by this class. |
| void |
setType(String withType)
Type of this entity (RFC 3987 IRI). |
Methods inherited from java.lang.Object
Constructor Details
Entity
public Entity()
Method Details
<T>getAs
public static T
Converts Entity to other Entity types.
Parameters:
Returns:
<T>getAs
public T
Converts Entity to other Entity types.
Parameters:
Returns:
<T>setAs
public Entity
Converts other Entity types to Entity. This is only intended to be used with other Entity classes:
Parameters:
Returns:
Throws:
clone
public static Entity clone(Entity entity)
Performs a deep copy of an Entity.
Parameters:
Returns:
cloneList
public static List
Performs a deep copy of a List of Entities.
Parameters:
Returns:
getProperties
public Map
Additional properties not defined by this class.
Returns:
getType
public String getType()
Type of this entity (RFC 3987 IRI).
Returns:
setProperties
public void setProperties(String key, JsonNode value)
Additional properties not defined by this class.
Parameters:
setType
public void setType(String withType)
Type of this entity (RFC 3987 IRI).
Parameters: