Entity 类
- java.lang.Object
- com.microsoft.bot.schema.Entity
实现
public class Entity
implements EntitySerialization
与活动相关的元数据对象。
构造函数摘要
构造函数 | 说明 | |
---|---|---|
Entity() |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
static T |
<T>getAs(EntitySerialization entity, Class<T> classType)
将实体转换为其他实体类型。 |
T |
<T>getAs(Class<T> classType)
将实体转换为其他实体类型。 |
Entity |
<T>setAs(T obj)
将其他实体类型转换为实体。 |
static Entity |
clone(Entity entity)
执行实体的深层复制。 |
static
java.util.List<Entity> |
cloneList(List<? extends Entity> entities)
执行实体列表的深层复制。 |
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> |
getProperties()
此类未定义的其他属性。 |
java.lang.String |
getType()
此实体的类型 (RFC 3987 IRI)。 |
void |
setProperties(String key, JsonNode value)
此类未定义的其他属性。 |
void |
setType(String withType)
此实体的类型 (RFC 3987 IRI)。 |
方法继承自 java.lang.Object
构造函数详细信息
Entity
public Entity()
方法详细信息
<T>getAs
public static T
将实体转换为其他实体类型。
Parameters:
Returns:
<T>getAs
public T
将实体转换为其他实体类型。
Parameters:
Returns:
<T>setAs
public Entity
将其他实体类型转换为实体。 这仅用于其他实体类:
Parameters:
Returns:
Throws:
clone
public static Entity clone(Entity entity)
执行实体的深层复制。
Parameters:
Returns:
cloneList
public static List
执行实体列表的深层复制。
Parameters:
Returns:
getProperties
public Map
此类未定义的其他属性。
Returns:
getType
public String getType()
此实体的类型 (RFC 3987 IRI)。
Returns:
setProperties
public void setProperties(String key, JsonNode value)
此类未定义的其他属性。
Parameters:
setType
public void setType(String withType)
此实体的类型 (RFC 3987 IRI)。
Parameters: