public class UtilThing extends Object
| 构造器和说明 |
|---|
UtilThing() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
changeCoder(Thing thing,
String coder)
改变一个事物的编码格式。
|
static Thing |
getQuoteThing(Thing thing,
String attribute)
返回引用的事物,如果安路就不存在,那么就找根事物下的子事物。
|
static Thing |
getSelfQuoteThing(Thing thing,
String attribute)
返回只会连接到同一个根事物下的子事物,用在只会在事物内部连接的情况。
|
static Thing |
getThingFromAttributeOrChild(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
getThingFromAttributeOrChilds(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
getThingIfNotExistsCreate(String path,
String thingManager,
String descriptorForCreate)
获取事物,如果不存在就创建一个。
|
static Thing |
getThingIfNotExistsCreate(String path,
String thingManager,
Thing forReplace)
获取事物,如果不存在就用已有的事物创建一个。
|
static boolean |
isDescriptorEquals(Thing descriptorThing,
String descriptor)
判断一个事物作为描述者时是否是给定的类型,即判断这个事物的路径以及所有继承事物的路径是否是指定的descritpor。
|
static boolean |
isDescriptorEquals1(String descriptorFor,
String descriptor) |
public static Thing getThingFromAttributeOrChilds(Thing thing, String attributeName, String childThingPath)
thing - 事物attributeName - 属性名childThingPath - 子事物路径public static Thing getThingFromAttributeOrChild(Thing thing, String attributeName, String childThingPath)
thing - 事物attributeName - 属性名childThingPath - 子事物路径public static boolean isDescriptorEquals(Thing descriptorThing, String descriptor)
descriptorThing - 描述者事物descriptor - 描述者public static boolean isDescriptorEquals1(String descriptorFor, String descriptor)
public static Thing getThingIfNotExistsCreate(String path, String thingManager, String descriptorForCreate)
path - 路径thingManager - 事物管理器descriptorForCreate - 描述者public static Thing getThingIfNotExistsCreate(String path, String thingManager, Thing forReplace)
path - 路径thingManager - 事物管理器forReplace - 是否覆盖public static Thing getQuoteThing(Thing thing, String attribute)
thing - attribute - public static Thing getSelfQuoteThing(Thing thing, String attribute)
thing - 事物attribute - 改事物的属性名Copyright © 2016 xworker.org. All rights reserved.