程序包 org.xmeta
类 ThingMetadata
java.lang.Object
org.xmeta.ThingMetadata
模型元信息。
- 作者:
- zyx
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明返回当前模型所在的目录。long返回模型的创建时间。返回模型的一段文本描述,此描述模型可能定义了也可能并未定义。getDescription(String env, ActionContext actionContext) 返回模型的描述文档。getDescription(Locale locale) 返回模型的描述文档。getDescription(ActionContext actionContext) 返回模型的描述文档。intgetGroup()getId()获得模型的标识,同一级的模型都具有不同的标识。getLabel()标签是模型的别名,一般显示在界面上。getLabel(String env, ActionContext actionContext) 返回模型的标签。根据指定的地区获取相应的标签。getLabel(ActionContext actionContext) 获取标签。long获取模型的最后修改时间。getLocaleString(String name, Locale locale) 返回本地化的模型对应属性的字符串值。getName()返回模型的名称,有时模型的属性没有定义名称,那么此时返回模型的描述者的名称。getPath()返回模型的路径。String[]getPaths()保留变量,通常是留给ThingManager等系统对象所用变量。取得模型所在的模型管理者。voidinitPath()booleanbooleanvoidsetCategory(Category category) voidsetCoderType(String coderType) voidsetCreateTime(long createTime) voidsetFileVersion(int fileVersion) void模型的标识。voidsetIncludeDefaultValue(boolean includeDefaultValue) voidsetLastModified(long lastModified) 设置最后的修改时间。void设置本模型的路径。voidsetRemoved(boolean removed) voidsetReserve(String reserve) voidsetUserGroup(String userGroup)
-
构造器详细资料
-
ThingMetadata
构造函数- 参数:
thing- 模型
-
-
方法详细资料
-
getCategory
返回当前模型所在的目录。- 返回:
- 目录
-
setCategory
-
initPath
public void initPath() -
getLastModified
public long getLastModified()获取模型的最后修改时间。- 返回:
- 最后修改时间
-
getCreateTime
public long getCreateTime()返回模型的创建时间。如果没有设置,返回最后修改时间。创建时间不会自动设置,一般是第一次存储的时间,由thingManager设置。- 返回:
- 创建时间
-
setCreateTime
public void setCreateTime(long createTime) -
setLastModified
public void setLastModified(long lastModified) 设置最后的修改时间。- 参数:
lastModified- 最后修改时间
-
getId
获得模型的标识,同一级的模型都具有不同的标识。- 返回:
- 模型的标识
-
setId
模型的标识。- 参数:
id- 标识
-
getName
返回模型的名称,有时模型的属性没有定义名称,那么此时返回模型的描述者的名称。- 返回:
- 模型的名成
-
getLabel
标签是模型的别名,一般显示在界面上。标签支持多语言,在不同的Locale下可以显示对应的标签的值。- 返回:
- 模型的标签
- 另请参阅:
-
getLabel
获取标签。 -
getLabel
返回模型的标签。 -
getGroup
-
setUserGroup
-
getLabel
根据指定的地区获取相应的标签。- 参数:
locale- 本地- 返回:
- 标签
-
getLocaleString
返回本地化的模型对应属性的字符串值。- 参数:
name- 名称locale- 本地- 返回:
- 值
-
getDescription
返回模型的一段文本描述,此描述模型可能定义了也可能并未定义。- 返回:
- 模型的描述
-
getDescription
返回模型的描述文档。- 参数:
actionContext-- 返回:
-
getDescription
返回模型的描述文档。- 参数:
env-actionContext-- 返回:
-
getDescription
返回模型的描述文档。- 参数:
locale-- 返回:
-
getPath
返回模型的路径。- 返回:
- 模型的路径
-
getPaths
-
setPath
设置本模型的路径。- 参数:
path- 模型的路径
-
getThingManager
取得模型所在的模型管理者。- 返回:
- 模型管理者
-
getFileVersion
public int getFileVersion() -
setFileVersion
public void setFileVersion(int fileVersion) -
isIncludeDefaultValue
public boolean isIncludeDefaultValue() -
setIncludeDefaultValue
public void setIncludeDefaultValue(boolean includeDefaultValue) -
getReserve
保留变量,通常是留给ThingManager等系统对象所用变量。- 返回:
- 保留变量
-
setReserve
-
isRemoved
public boolean isRemoved() -
setRemoved
public void setRemoved(boolean removed) -
getCoderFileType
-
getCoderType
-
setCoderType
-