public class UtilThing extends Object
| 构造器和说明 |
|---|
UtilThing() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 - 描述者Copyright © 2016 xworker.org. All rights reserved.