修饰符和类型 | 字段 | 说明 |
---|---|---|
protected Action |
action |
每一个事物都有动作的形态
|
protected Map<String,LinkedThingEntry> |
actionCaches |
动作事物的缓存
|
static String |
ATTRIBUTE |
属性的名字
|
protected Map<String,Object> |
attributes |
事物的属性集合。
|
protected List<Thing> |
childs |
子事物列表
|
protected Map<String,Object> |
datas |
附加于事物的用户数据
|
static String |
DESCRIPTION |
描述属性的名字
|
static String |
DESCRIPTORS |
描述者属性的名字
|
protected ThingEntry[] |
descriptorsCaches |
描述者列表的缓存
|
static String |
EXTENDS |
继承者属性的名字
|
protected ThingEntry[] |
extendsCaches |
继承列表的缓存
|
protected boolean |
isTransient |
是否是瞬态的事物
|
static String |
LABEL |
标签的名字
|
protected ThingMetadata |
metadata |
事物的元数据,用于存放此事物在系统中的一些属性。
|
static String |
NAME |
名字的名字
|
static String |
ORIGIN_THING_PATH |
原始事物的路径,尤其是在做detach时
|
protected Thing |
parent |
父事物,包含此事物的父事物。
|
static String |
THING |
事物的名字
|
protected List<String> |
thingNames |
事物的名称(类名)的缓存列表
|
构造器 | 说明 |
---|---|
Thing() |
默认构造函数,构造一个空的瞬态事物。
|
Thing(String descriptorPath) |
通过描述者的路径来构造一个瞬态事物。
|
Thing(String name,
String label) |
通过名称和标签创建一个瞬态事物。
|
Thing(String name,
String label,
String descriptorPath) |
通过名称、标签和描述者的路径来构造一个瞬态事物。
|
Thing(String name,
String label,
String descriptorPath,
boolean isTransient) |
指定名称、标签、描述者和是否是瞬态的来构造一个事物。
|
修饰符和类型 | 方法 | 说明 |
---|---|---|
void |
addChild(String xml) |
|
void |
addChild(Thing childThing) |
添加一个子事物。
|
void |
addChild(Thing childThing,
boolean changeParen) |
|
void |
addChild(Thing childThing,
int index) |
|
void |
addChild(Thing childThing,
int index,
boolean changeParent) |
在指定的索引位置添加一个子事物。
|
void |
addDescriptor(int index,
Thing descriptor) |
在指定位置添加一个描述者。
|
void |
addDescritpor(int index,
String descriptorPath) |
通过描述者的路径加入描述者,可以加入多个,中间使用','号隔开。
|
void |
addExtend(int index,
Thing extendThing) |
在指定位置添加一个继承事物。
|
void |
beginModify() |
beginBigModifiy必须和endBigModify成对出现。
|
void |
changeChildIndex(Thing child,
int index,
int moveStep) |
改变一个子事物的位置索引。
|
void |
cognize(String xmlData) |
从一个XML数据认知并把认知结果保存到自身。
|
void |
cognize(Map<String,Object> adata) |
从一个Map数据认知并把认知结果保存到自身。
|
void |
cognize(Thing thing) |
认知另一事物并把认知结果作为自己的一部分。
|
Thing |
copyTo(String thingManager,
String category) |
把自己拷贝一个新的事物到指定的事物管理器的指定目录下。
|
Thing |
detach() |
克隆一个新事物,新的事物是瞬态的。
|
Thing |
detach(boolean detachToTransient) |
已过时。
|
<T> T |
doAction(String name) |
执行一个动作,把自己作为self变量放入动作上下文中。
|
<T> T |
doAction(String name,
Map<String,Object> parameters) |
执行一个动作,把自己作为self变量放入动作上下文中,使用新的动作上下文和传入参数。
|
<T> T |
doAction(String name,
ActionContext actionContext) |
执行一个动作,把自己作为self变量放入动作上下文中。
|
<T> T |
doAction(String name,
ActionContext actionContext,
Object... parameters) |
|
<T> T |
doAction(String name,
ActionContext actionContext,
Map<String,Object> parameters) |
执行一个动作,把自己作为self变量放入动作上下文中。
|
<T> T |
doAction(String name,
ActionContext actionContext,
Map<String,Object> parameters,
boolean isSubAction) |
执行一个动作,把自己作为self变量放入动作上下文中。
|
<T> T |
doExec(String name,
Object... params) |
|
<T> T |
doExec(String name,
ActionContext context,
Object... params) |
|
void |
endModify(boolean change) |
|
<T> T |
exec(String name,
Object... params) |
|
<T> T |
exec(String name,
ActionContext context,
Object... params) |
|
protected void |
finalize() |
|
Object |
get(String path) |
通过路径获得事物的属性或者子事物,可返回属性值、子事物或者子事物列表。
|
Object |
get(Path path) |
|
Action |
getAction() |
|
List<Thing> |
getActionsThings() |
|
Thing |
getActionThing(String name) |
获得指定动作的事物定义。
|
List<Thing> |
getActionThings() |
返回本事物的所有的动作定义,包括自身定义的、描述者定义的和继承定义的。
|
List<Thing> |
getAllAttributesDescriptors() |
取本事物的所有描述者所定义属性描述列表。
|
List<Thing> |
getAllChilds() |
获得所有的直接第一级子事物,包括继承的事物的子事物。
|
List<Thing> |
getAllChilds(String thingName) |
根据描述者的名称来获取所有符合的子事物,包括继承的子事物。
|
List<Thing> |
getAllChildsDescriptors() |
获取子事物的描述者列表,返回本事物的所有描述者所定义的子事物的描述列表。
|
List<Thing> |
getAllDescriptors() |
返回本事物所有的描述者列表,包括描述者继承的事物。
|
List<Thing> |
getAllExtends() |
返回事物的所有继承事物列表,包括继承的继承...。
|
Object |
getAttribute(String name) |
获得属性值。
|
Thing |
getAttributeDescriptor(String name) |
根据指定的属性名称获取该属性的描述者。
|
Map<String,Object> |
getAttributes() |
获得属性集合。
|
List<Thing> |
getAttributesDescriptors() |
根获取事物属性描述列表,只返回第一个描述者的属性描述列表。
|
BigDecimal |
getBigDecimal(String name) |
|
BigDecimal |
getBigDecimal(String name,
BigDecimal defaultValue) |
|
BigDecimal |
getBigDecimal(String name,
BigDecimal defaultValue,
ActionContext actionContext) |
|
BigInteger |
getBigInteger(String name) |
|
BigInteger |
getBigInteger(String name,
BigInteger defaultValue) |
|
BigInteger |
getBigInteger(String name,
BigInteger defaultValue,
ActionContext actionContext) |
|
boolean |
getBoolean(String name) |
|
boolean |
getBoolean(String name,
boolean defaultValue) |
|
boolean |
getBoolean(String name,
boolean defaultValue,
ActionContext actionContext) |
|
byte |
getByte(String name) |
|
byte |
getByte(String name,
byte defaultValue) |
|
byte |
getByte(String name,
byte defaultValue,
ActionContext actionContext) |
|
byte[] |
getBytes(String name) |
|
byte[] |
getBytes(String name,
byte[] defaultValue) |
|
byte[] |
getBytes(String name,
byte[] defaultValue,
ActionContext actionContext) |
|
Object |
getCachedData(String key) |
获取缓存的数据。
|
Callable<Object> |
getCallable(ActionContext actionContext) |
把当前事物转化为一个Callable。
|
Callable<Object> |
getCallable(ActionContext actionContext,
Map<String,Object> params) |
把当前事物转化为一个Callable。
|
char |
getChar(String name) |
|
char |
getChar(String name,
char defaultValue) |
|
char |
getChar(String name,
char defaultValue,
ActionContext actionContext) |
|
Thing |
getChildAt(int index) |
返回指定索引位置的子节点,如果超出范围返回null。
|
Thing |
getChildBy(Thing refChild,
int index) |
获取参考子节点的相对位置的子节点,首先找到参考子节点的位置索引,然后和目标index相加获得最终的索引位置。
|
List<Thing> |
getChilds() |
返回本事物的直接子事物,不包含继承的子事物。
|
List<Thing> |
getChilds(String thingName) |
根据描述者的名称来获取所有符合的子事物,不包括继承的子事物。
|
List<Thing> |
getChildsDescriptors() |
获取子事物的描述者列表,只返回第一个描述者所定义的子事物的描述列表。
|
Iterator<Thing> |
getChildsIterator() |
返回遍历所有的子节点遍历器。
|
List<Thing> |
getClasses() |
|
Thing |
getClassThing() |
|
Object |
getData(String key) |
|
Map<String,Object> |
getDatas() |
返回保存Data数据的Map,有可能返回null,如果没有初始化(放过数据)。
|
Date |
getDate(String name) |
|
Date |
getDate(String name,
Date defaultValue) |
|
Date |
getDate(String name,
Date defaultValue,
ActionContext actionContext) |
|
Thing |
getDescriptor() |
返回事物的主要的描述者。
|
List<Thing> |
getDescriptors() |
返回本事物定义的的所有描述者的列表。
|
double |
getDouble(String name) |
|
double |
getDouble(String name,
double defaultValue) |
|
double |
getDouble(String name,
double defaultValue,
ActionContext actionContext) |
|
List<Thing> |
getExtends() |
返回本事物的继承事物列表。
|
float |
getFloat(String name) |
|
float |
getFloat(String name,
float defaultValue) |
|
float |
getFloat(String name,
float defaultValue,
ActionContext actionContext) |
|
int |
getInt(String name) |
|
int |
getInt(String name,
int defaultValue) |
|
int |
getInt(String name,
int defaultValue,
ActionContext actionContext) |
|
long |
getLong(String name) |
|
long |
getLong(String name,
long defaultValue) |
|
long |
getLong(String name,
long defaultValue,
ActionContext actionContext) |
|
ThingMetadata |
getMetadata() |
获得本事物的元数据。
|
<T> T |
getObject(String key) |
|
Object |
getObject(String name,
ActionContext actionContext) |
从事物中取指定的属性的字符串的值作为变量名,然后从ActionContext中取变量,支持var:或ognl:,默认相当于 var:。
|
Thing |
getParent() |
返回本事物的父事物。
|
Thing |
getQuotedThing(String attribute) |
返回属性所指向的引用的事物,如果不存在替换为根事物的路径当前的根事物开始寻找。
|
Thing |
getRoot() |
返回本事物的最根级(顶层)父事物,如果当前事物已经是根事物,那么返回自身。
|
Runnable |
getRunnable(ActionContext actionContext) |
把当前事物转化为一个Runnable。
|
Runnable |
getRunnable(ActionContext actionContext,
Map<String,Object> params) |
把当前事物转化为一个Runnable。
|
short |
getShort(String name) |
|
short |
getShort(String name,
short defaultValue) |
|
short |
getShort(String name,
short defaultValue,
ActionContext actionContext) |
|
String |
getString(String name) |
|
String |
getString(String name,
String defaultValue) |
|
String |
getString(String name,
String defaultValue,
ActionContext actionContext) |
通过属性值从上下文中取字符串,通过UtilString获取字符串,如果返回null或空,那么返回defaultValue。
|
String |
getStringBlankAsNull(String name) |
获取字符串,trim()后的空字符串也返回null。
|
Thing |
getThing(String childThingPath) |
通过指定的子事物的路径获取一个子事物。
|
String |
getThingName() |
返回事物的事物名,相当于Java对象的类名。
|
List<String> |
getThingNames() |
返回事物的所有事物名。
|
protected void |
initChildMetadata(Thing child) |
初始化子事物的元数据。
|
void |
initChildPath() |
重新初始化所有子事物的路径。
|
void |
initDefaultValue() |
初始化事物属性的默认值。
|
void |
initDefaultValue(boolean forece) |
初始化事物属性的默认值。
|
boolean |
isThing(String descriptorPath) |
根据指定的描述者来判断该事物是否是这个指定描述者的所描述的事物。
|
boolean |
isThing(Thing descriptor) |
根据指定的描述者来判断该事物是否这个指定描述者所描述的事物。
|
boolean |
isThingByName(String descriptorName) |
根据描述者的名称返回当前事物是否是指定的事物,此判定方法并非严格。
|
boolean |
isTransient() |
返回本事物是否是瞬态的。
|
void |
parseXML(String xml) |
|
void |
paste(String data) |
|
void |
paste(Map<String,Object> data) |
|
void |
paste(Thing data) |
|
Object |
put(Object name,
Object value) |
设置属性的值。
|
void |
putAll(Map<String,Object> values) |
放入Map的全部值,但不触发descriptor和extends的改变事件,同时也会更新日期。
|
boolean |
remove() |
删除调用自身的事物管理者删除自己,设置自身的状态为已删除。
|
void |
removeChild(int index) |
|
void |
removeChild(Thing child) |
删除指定的子事物。
|
void |
removeDescriptor(Thing descriptor) |
从本事物的描述者列表中移除指定的描述者。
|
void |
removeExtend(Thing extend) |
从本事物的继承列表中移除指定的继承事物。
|
void |
replace(Thing thing) |
使用新的事物来覆盖当前事物。
|
<T> T |
run(String name) |
执行一个动作,不把自己放入动作上下文中。
|
<T> T |
run(String name,
Map<String,Object> parameters) |
执行一个动作,不把自己放入动作上下文中,使用新的动作上下文和传入的参数。
|
<T> T |
run(String name,
ActionContext context) |
执行一个动作,不把自己放入动作上下文中。
|
<T> T |
run(String name,
ActionContext context,
Object[] parameters,
boolean isSubAction,
boolean includeSelf) |
按普通参数的方式执行。
|
<T> T |
run(String name,
ActionContext context,
Map<String,Object> parameters) |
执行一个动作,不把自己放入动作上下文中。
|
<T> T |
run(String name,
ActionContext context,
Map<String,Object> parameters,
boolean isSubAction) |
执行一个动作,不把自己放入动作上下文中。
|
<T> T |
run(String name,
ActionContext context,
Map<String,Object> parameters,
boolean isSubAction,
boolean includeSelf) |
执行一个动作。
|
boolean |
save() |
保存自己,通常是调用事物所在的事物管理者来保存。
|
void |
saveAs(String thingManager,
String path) |
把自己按照指定的路径保存到指定的目录下,如果目标事物存在那么会替换目标事物。
|
void |
set(Object name,
Object value) |
设置属性。
|
void |
setCachedData(String key,
Object data) |
设置缓存数据,如果事物在后面修改了,那么缓存失效。
|
void |
setData(String key,
Object data) |
|
void |
setParent(Thing parent) |
|
void |
setTransient(boolean isTransient) |
|
String |
toString() |
protected Thing parent
protected ThingMetadata metadata
protected ThingEntry[] extendsCaches
protected ThingEntry[] descriptorsCaches
protected Map<String,LinkedThingEntry> actionCaches
protected boolean isTransient
protected Action action
public Thing()
public Thing(String descriptorPath)
descriptorPath
- 描述者的路径public Thing(String name, String label, String descriptorPath)
name
- 事物的名称label
- 事物的标签descriptorPath
- 事物的路径public void addChild(String xml) throws ParserConfigurationException, SAXException, IOException
public void addChild(Thing childThing)
childThing
- 子事物public void addChild(Thing childThing, int index)
public void addChild(Thing childThing, boolean changeParen)
public void addChild(Thing childThing, int index, boolean changeParent)
childThing
- 子事物index
- 位置索引changeParent
- 是否改变子事物的父事物为本事物public void addDescriptor(int index, Thing descriptor)
在指定位置添加一个描述者。
如果描述者已经存在且位置不同,那么会切换到新的位置,如果index为-1那么添加至结尾。index
- 描述者的位置descriptor
- 描述者public void addDescritpor(int index, String descriptorPath)
index
- 位置索引descriptorPath
- 描述者的路径public void addExtend(int index, Thing extendThing)
在指定位置添加一个继承事物。
如果继承已经存在且位置不同,那么会切换到新的位置,如果index为-1那么添加至结尾。extendThing
- 要继承的事物index
- 参数位置public void changeChildIndex(Thing child, int index, int moveStep)
child
- 子事物index
- 要移动的位置,如果为-1,那么通过moveStep来上移或下移moveStep
- 小于0表示上移,大于0表示下移,步伐为其绝对值public void cognize(String xmlData) throws ParserConfigurationException, SAXException, IOException
xmlData
- 一个XML数据(字符串)IOException
- IO异常SAXException
- SAX异常ParserConfigurationException
- 分析异常public void cognize(Thing thing)
认知另一事物并把认知结果作为自己的一部分。
认识另一事物和认识非事物的对象的区别是,认识其他事物是把另一事物的所有内容保存到自身,而认识 非事物物时是根据自身的描述者所描述的属性和子事物去从认知对象上取值的。thing
- 另一事物public void paste(String data) throws ParserConfigurationException, SAXException, IOException
public void parseXML(String xml) throws ParserConfigurationException, SAXException, IOException
public void paste(Thing data)
public Thing detach()
public Thing detach(boolean detachToTransient)
detachToTransient
- 是否detach到瞬态public <T> T doAction(String name)
name
- 动作名称public <T> T doAction(String name, Map<String,Object> parameters)
name
- 动作名parameters
- 参数public <T> T doAction(String name, ActionContext actionContext)
name
- 动作名称actionContext
- 变量容器public <T> T doAction(String name, ActionContext actionContext, Map<String,Object> parameters)
name
- 动作名称actionContext
- 变量容器parameters
- 参数public <T> T doAction(String name, ActionContext actionContext, Object... parameters)
public <T> T doAction(String name, ActionContext actionContext, Map<String,Object> parameters, boolean isSubAction)
name
- 动作名actionContext
- 变量上下文parameters
- 参数isSubAction
- 是否是子动作public <T> T run(String name, ActionContext context, Map<String,Object> parameters, boolean isSubAction, boolean includeSelf)
name
- 动作名context
- 变量上下文parameters
- 参数isSubAction
- 是否是子动作includeSelf
- 是否包含自己public <T> T exec(String name, ActionContext context, Object... params)
public <T> T doExec(String name, ActionContext context, Object... params)
public <T> T run(String name, ActionContext context, Object[] parameters, boolean isSubAction, boolean includeSelf)
name
- 动作名context
- 变量上下文parameters
- 参数列表isSubAction
- 是否是子动作includeSelf
- 是否包含自己public <T> T run(String name, ActionContext context, Map<String,Object> parameters, boolean isSubAction)
name
- 动作名context
- 变量上下文parameters
- 参数isSubAction
- 是否是子动作public <T> T run(String name, ActionContext context, Map<String,Object> parameters)
name
- 动作名context
- 变量上下文parameters
- 参数public <T> T run(String name, ActionContext context)
name
- 动作名context
- 变量上下文public <T> T run(String name, Map<String,Object> parameters)
name
- 动作名parameters
- 参数public <T> T run(String name)
name
- 动作名public Object get(String path)
通过路径获得事物的属性或者子事物,可返回属性值、子事物或者子事物列表。
路径遵从事物的路径规则。path
- 路径public Thing getActionThing(String name)
获得指定动作的事物定义。
搜寻事物动作的规则是: 如果不是super的动作,那么先搜寻事物本身定义的动作。 依次搜寻描述者和描述者的继承定义的动作。 依次搜索事物的描述者的继承者定义的动作。name
- 动作名称public Action getAction()
public Runnable getRunnable(ActionContext actionContext)
actionContext
- 变量上下文public Runnable getRunnable(ActionContext actionContext, Map<String,Object> params)
actionContext
- 变量上下文params
- 参数public Callable<Object> getCallable(ActionContext actionContext)
actionContext
- 变量上下文public Callable<Object> getCallable(ActionContext actionContext, Map<String,Object> params)
actionContext
- 变量上下文params
- 参数public List<Thing> getAllAttributesDescriptors()
public List<Thing> getAllChilds(String thingName)
根据描述者的名称来获取所有符合的子事物,包括继承的子事物。
注:这里是描述者的名,不是描述者的路径。thingName
- 描述者的名称public List<Thing> getAllChildsDescriptors()
public Thing getAttributeDescriptor(String name)
name
- 属性名称public List<Thing> getAttributesDescriptors()
根获取事物属性描述列表,只返回第一个描述者的属性描述列表。
public BigDecimal getBigDecimal(String name)
public BigDecimal getBigDecimal(String name, BigDecimal defaultValue)
public BigDecimal getBigDecimal(String name, BigDecimal defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public BigInteger getBigInteger(String name)
public BigInteger getBigInteger(String name, BigInteger defaultValue)
public BigInteger getBigInteger(String name, BigInteger defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public boolean getBoolean(String name)
public boolean getBoolean(String name, boolean defaultValue)
public boolean getBoolean(String name, boolean defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public byte getByte(String name)
public byte getByte(String name, byte defaultValue)
public byte getByte(String name, byte defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public byte[] getBytes(String name)
public byte[] getBytes(String name, byte[] defaultValue)
public byte[] getBytes(String name, byte[] defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public char getChar(String name)
public char getChar(String name, char defaultValue)
public char getChar(String name, char defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public List<Thing> getChilds(String thingName)
thingName
- 描述者的名称public List<Thing> getChildsDescriptors()
public Date getDate(String name, Date defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public Thing getClassThing()
public Thing getDescriptor()
public List<Thing> getDescriptors()
返回本事物定义的的所有描述者的列表。
一个事物的描述者列表是在属性descriptors里定义的,如果有多个那么之间用,号隔开。另外元事物是所有的 事物的基本描述,一般在描述者列表中元事物被放到了列表的末端
如果事物的一个描述者继承了其他事物,那么继承的其他事物也是这个事物的描述者,这样的描述者在此方法里 不能获得,如想取得事物的所有包含描述者继承的描述者,那么可以是用getAllDescriptors()方法。
getAllDescriptors()
public List<Thing> getAllDescriptors()
返回本事物所有的描述者列表,包括描述者继承的事物。
与getDescriptors方法不同的是getDescriptors方法只返回自身定义的描述者的列表。getDescriptors()
public double getDouble(String name)
public double getDouble(String name, double defaultValue)
public double getDouble(String name, double defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public float getFloat(String name)
public float getFloat(String name, float defaultValue)
public float getFloat(String name, float defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public int getInt(String name)
public int getInt(String name, int defaultValue)
public int getInt(String name, int defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public Object getObject(String name, ActionContext actionContext) throws ognl.OgnlException
name
- 属性名actionContext
- 变量上下文ognl.OgnlException
- 异常public long getLong(String name)
public long getLong(String name, long defaultValue)
public long getLong(String name, long defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public ThingMetadata getMetadata()
public Thing getParent()
public Thing getRoot()
public short getShort(String name)
public short getShort(String name, short defaultValue)
public short getShort(String name, short defaultValue, ActionContext actionContext) throws ognl.OgnlException
ognl.OgnlException
public String getStringBlankAsNull(String name)
name
- 属性名public String getString(String name, String defaultValue, ActionContext actionContext)
name
- 属性名defaultValue
- 默认值actionContext
- 变量上下文public Thing getThing(String childThingPath)
childThingPath
- 子事物的路径public Thing getQuotedThing(String attribute)
attribute
- 属性名称public String getThingName()
public void initDefaultValue()
public void initDefaultValue(boolean forece)
forece
- 如果为ture,那么即使事物的属性已经设置过了,也会被默认值代替,如果描述者设置了默认值。public void initChildPath()
protected void initChildMetadata(Thing child)
child
- 子事物public boolean isThing(String descriptorPath)
descriptorPath
- 描述者的路径public boolean isThing(Thing descriptor)
descriptor
- 描述者public boolean isThingByName(String descriptorName)
descriptorName
- 描述者的名称public void replace(Thing thing)
thing
- public boolean isTransient()
public void putAll(Map<String,Object> values)
values
- 值public void setParent(Thing parent)
public void removeDescriptor(Thing descriptor)
descriptor
- 描述者public void removeChild(Thing child)
child
- 要删除的子事物public void removeChild(int index)
public boolean remove()
public void removeExtend(Thing extend)
extend
- 继承的事物public boolean save()
public void saveAs(String thingManager, String path)
thingManager
- 事物管理器path
- 事物路径public Thing copyTo(String thingManager, String category)
thingManager
- 事物管理器category
- 目录public void beginModify()
public void endModify(boolean change)
public void setCachedData(String key, Object data)
key
- keydata
- 数据public void setTransient(boolean isTransient)
public <T> T getObject(String key)
public Thing getChildAt(int index)
index
- Copyright © 2018 xworker.org. All rights reserved.