Entity 類別
- java.
lang. Object - com.
microsoft. bot. schema. Entity
- com.
實作
public class Entity
implements EntitySerialization
與活動相關的元數據物件。
建構函式摘要
| 建構函式 | Description | |
|---|---|---|
| Entity() | ||
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
| static T |
<T>getAs(EntitySerialization entity, Class<T> classType)
將實體轉換成其他實體類型。 |
| T |
<T>getAs(Class<T> classType)
將實體轉換成其他實體類型。 |
| Entity |
<T>setAs(T obj)
將其他實體類型轉換為 Entity。 |
| 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
將實體轉換成其他實體類型。
參數:
傳回:
<T>getAs
public T
將實體轉換成其他實體類型。
參數:
傳回:
<T>setAs
public Entity
將其他實體類型轉換為 Entity。 這隻適用於其他 Entity 類別:
參數:
傳回:
擲回:
clone
public static Entity clone(Entity entity)
執行實體的深層複本。
參數:
傳回:
cloneList
public static List
執行實體清單的深層複本。
參數:
傳回:
getProperties
public Map
這個類別未定義的其他屬性。
傳回:
getType
public String getType()
此實體的類型(RFC 3987 IRI)。
傳回:
setProperties
public void setProperties(String key, JsonNode value)
這個類別未定義的其他屬性。
參數:
setType
public void setType(String withType)
此實體的類型(RFC 3987 IRI)。
參數: