| 程序包 | 说明 |
|---|---|
| org.xmeta | |
| org.xmeta.annotation | |
| org.xmeta.cache | |
| org.xmeta.codes | |
| org.xmeta.index | |
| org.xmeta.thingManagers | |
| org.xmeta.util |
| 限定符和类型 | 类和说明 |
|---|---|
class |
MetaThing
元事物,元事物是任意事物的结构的结构,元事物也称为元结构(在X-Meta中结构用描述代替)。
|
| 限定符和类型 | 字段和说明 |
|---|---|
Thing |
World.metaThing
元事物
|
protected Thing |
Thing.parent
父模型,包含此模型的父模型。
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<Thing> |
Thing.childs
子模型列表
|
| 限定符和类型 | 方法和说明 |
|---|---|
Thing |
Thing.copyTo(String thingManager,
String category)
把自己拷贝一个新的模型到指定的模型管理器的指定目录下。
|
Thing |
MetaThing.createAttribute(String name) |
Thing |
MetaThing.createThing(String name) |
Thing |
Thing.detach()
克隆一个新模型,新的模型是瞬态的。
|
Thing |
Thing.detach(boolean detachToTransient)
已过时。
|
Thing |
Thing.getActionThing(String name)
获得指定动作的模型定义。
|
Thing |
Thing.getAttributeDescriptor(String name)
根据指定的属性名称获取该属性的描述者。
|
Thing |
Thing.getChildAt(int index)
返回指定索引位置的子节点,如果超出范围返回null。
|
Thing |
Thing.getChildBy(Thing refChild,
int index)
获取参考子节点的相对位置的子节点,首先找到参考子节点的位置索引,然后和目标index相加获得最终的索引位置。
|
Thing |
Thing.getClassThing() |
Thing |
Bindings.getContextThing() |
Thing |
Thing.getDescriptor()
返回模型的主要的描述者。
|
Thing |
Thing.getParent()
返回本模型的父模型。
|
Thing |
Thing.getQuotedThing(String attribute)
返回属性所指向的引用的模型,如果不存在替换为根模型的路径当前的根模型开始寻找。
|
Thing |
Thing.getRoot()
返回本模型的最根级(顶层)父模型,如果当前模型已经是根模型,那么返回自身。
|
Thing |
Action.getThing() |
Thing |
World.getThing(String path)
通过事物的路径来访问具体的事物。
|
Thing |
ThingManager.getThing(String thingName)
通过事物的名称取得事物。
|
Thing |
Thing.getThing(String childThingPath)
通过指定的子模型的路径获取一个子模型。
|
Thing |
CategoryCache.getThing(String thingName)
获取事物。
|
Thing |
Category.getThing(String name)
通过事物的名称获得当前目录下的事物。
|
Thing |
World.getThing(String path,
String thingManager,
String descriptor)
通过事物的路径获取指定的事物,如果存在那么使用给定的descriptor创建事物,并保存到指定的thingManager下。
|
Thing |
World.loadThingFromClasspath(String thingPath)
从类的路径中装载事物。
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Thing> |
Thing.getActionsThings() |
List<Thing> |
Thing.getActionThings()
返回本模型的所有的动作定义,包括自身定义的、描述者定义的和继承定义的。
|
List<Thing> |
Thing.getActionThings(String name)
获取一个模型的指定动作的所有定义。
|
List<Thing> |
Thing.getAllAttributesDescriptors()
取本模型的所有描述者所定义属性描述列表。
|
List<Thing> |
Thing.getAllChilds()
获得所有的直接第一级子模型,包括继承的模型的子模型。
|
List<Thing> |
Thing.getAllChilds(String thingName)
根据描述者的名称来获取所有符合的子模型,包括继承的子模型。
|
List<Thing> |
Thing.getAllChildsDescriptors()
获取子模型的描述者列表,返回本模型的所有描述者所定义的子模型的描述列表。
|
List<Thing> |
Thing.getAllDescriptors()
返回本模型所有的描述者列表,包括描述者继承的模型。
|
List<Thing> |
Thing.getAllExtends()
返回模型的所有继承模型列表,包括继承的继承...。
|
List<Thing> |
Thing.getAttributesDescriptors()
根获取模型属性描述列表,只返回第一个描述者的属性描述列表。
|
List<Thing> |
Thing.getChilds()
返回本模型的直接子模型,不包含继承的子模型。
|
List<Thing> |
Thing.getChilds(String thingName)
根据描述者的名称来获取所有符合的子模型,不包括继承的子模型。
|
List<Thing> |
Thing.getChildsDescriptors()
获取子模型的描述者列表,只返回第一个描述者所定义的子模型的描述列表。
|
Iterator<Thing> |
Thing.getChildsIterator()
返回遍历所有的子节点遍历器。
|
List<Thing> |
Thing.getClasses() |
Map<Thing,ActionContext> |
Bindings.getContexts() |
List<Thing> |
Thing.getDescriptors()
返回本模型定义的的所有描述者的列表。
|
List<Thing> |
Thing.getExtends()
返回本模型的继承模型列表。
|
List<Thing> |
Category.getThings()
获得当前目录下的事物列表。
|
List<Thing> |
ActionContext.getThings()
返回调用动作的事物列表,最开始的是堆栈的底部,最后的堆栈的顶部的事物。
|
List<Thing> |
ThingManager.getThings(String categoryName)
取得指定目录下的事物列表。
|
List<Thing> |
Category.getThings(String descriptor)
返回指定事物的列表。
|
List<Thing> |
ThingManager.getThings(String categoryName,
String descriptorPath)
根据事物描述者取得指定目录下的事物列表。
|
Iterator<Thing> |
Category.iterator(boolean includeChildCategory)
遍历当前目录下的所有事物。
|
Iterator<Thing> |
ThingManager.iterator(String categoryName,
boolean includeChildCategory)
指定目录遍历该目录下的事物。
|
Iterator<Thing> |
Category.iterator(String descriptorPath,
boolean includeChildCategory)
通过指定的描述者名称遍历当前目录下的所有事物。
|
Iterator<Thing> |
ThingManager.iterator(String categoryName,
String descriptorPath,
boolean includeChildCategory)
指定事物的描述者遍历指定目录下的事物。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ActionListener.actionExecuted(Thing thing,
String method,
ActionContext actionContext,
Map<String,Object> parameters,
long namoTime,
boolean successed)
增加了事物动作的监听。
|
void |
Thing.addChild(Thing childThing)
添加一个子模型。
|
void |
Thing.addChild(Thing childThing,
boolean changeParen) |
void |
Thing.addChild(Thing childThing,
int index) |
void |
Thing.addChild(Thing childThing,
int index,
boolean changeParent)
在指定的索引位置添加一个子模型。
|
void |
Thing.addDescriptor(int index,
Thing descriptor)
在指定位置添加一个描述者。
|
void |
Thing.addExtend(int index,
Thing extendThing)
在指定位置添加一个继承模型。
|
void |
World.addGlobalActionListener(Thing listener)
添加全局动作监听器。
|
void |
World.addGlobalActionListener(Thing listener,
int index)
添加全局动作监听器。
|
void |
World.addGlobalContext(Thing contextThing,
int index)
已过时。
|
void |
Thing.changeChildIndex(Thing child,
int index,
int moveStep)
改变一个子模型的位置索引。
|
void |
ThingListener.changed(Thing thing)
事物改变后触发的事件。
|
void |
Thing.cognize(Thing thing)
认知另一模型并把认知结果作为自己的一部分。
|
void |
ThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed)
解码一个输入流到事物中。
|
void |
ThingCoder.encode(Thing thing,
OutputStream out)
编码一个事物到输出流中。
|
Action |
World.getAction(Thing actionThing)
通过事物获得一个动作。
|
Class |
World.getActionClass(Thing actionThing,
ActionContext actionContext)
返回动作类,通常是动作事物对应的类,有些动作可能没有对应类。
|
Thing |
Thing.getChildBy(Thing refChild,
int index)
获取参考子节点的相对位置的子节点,首先找到参考子节点的位置索引,然后和目标index相加获得最终的索引位置。
|
protected void |
Thing.initChildMetadata(Thing child)
初始化子模型的元数据。
|
static void |
Action.initContext(Action action,
Thing context,
ActionContext actionContext)
执行动作上下文的inherit或init方法。
|
boolean |
Thing.isThing(Thing descriptor)
根据指定的描述者来判断该模型是否这个指定描述者所描述的模型。
|
void |
ThingManagerListener.loaded(ThingManager thingManager,
Thing thing)
当一个事物被载入时触发此事件。
|
void |
Thing.paste(Thing data) |
boolean |
ThingManager.remove(Thing thing)
从事物管理者中移除一个事物。
|
void |
Thing.removeChild(Thing child)
删除指定的子模型。
|
void |
ThingListener.removed(Thing thing)
事物已删除后的触发的事件,此方法是调用事物自身的remove()方法后才触发的事件。
|
void |
ThingManagerListener.removed(ThingManager thingManager,
Thing thing)
当一个事物被删除是触发此事件。
|
void |
Thing.removeDescriptor(Thing descriptor)
从本模型的描述者列表中移除指定的描述者。
|
void |
Thing.removeExtend(Thing extend)
从本模型的继承列表中移除指定的继承模型。
|
void |
World.removeGlobalActionListener(Thing listener)
移除一个全局动作监听器。
|
void |
World.removeGlobalContext(Thing contextThing)
已过时。
|
void |
Thing.replace(Thing thing)
使用新的模型来覆盖当前模型。
|
boolean |
ThingManager.save(Thing athing)
保存一个事物。
|
void |
ThingManagerListener.saved(ThingManager thingManager,
Thing thing)
当一个事物被保存时触发此事件。
|
void |
Bindings.setContextThing(Thing contextThing)
设置上下文事物,上下文事物会在执行动作时加入到动作上下文中,动作上下文会在动作执行前和执行后执行相关动作。
|
void |
Thing.setParent(Thing parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ActionContext.addContextThing(List<Thing> contextThings)
把上下文中的栈设置的上下文模型加入到指定的列表中。
|
static Throwable |
Action.doThingContextMethod(List<Thing> contexts,
ActionContext actionContext,
String methodName,
Throwable exception,
Object result)
执行上下文的成功或者失败的方法。
|
| 构造器和说明 |
|---|
Action(Thing thing)
构造函数,传入定义动作的事物。
|
DelayInitTask(Thing thing,
byte type,
boolean forece) |
Thing(Thing descriptor)
使用指定的描述者来创建一个瞬态模型。
|
ThingMetadata(Thing thing)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
ThingAnnotationUtils.parse(Class<?> cls) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected WeakReference<Thing> |
ThingEntry.thingReference |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
ThingCache.get(String path)
获取缓存。
|
Thing |
ThingEntry.getThing() |
Thing |
LinkedThingEntry.getThing() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LinkedThingEntry.addThing(Thing thing) |
protected abstract T |
ThingObjectEntry.createObject(Thing thing) |
static Object |
GeneratedObjectEntry.getObject(Thing thing,
String method,
ActionContext actionContext) |
static void |
ThingCache.put(String path,
Thing thing)
放入缓存。
|
| 构造器和说明 |
|---|
GeneratedObjectEntry(Thing thing,
String method)
构造函数。
|
ThingEntry(String path,
Thing thing) |
ThingEntry(Thing thing) |
ThingObjectEntry(Thing thing) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
XerCoder.decode(Thing thing,
InputStream input) |
static Thing |
TxtCoder.decode(Thing thing,
InputStream input,
boolean full,
long lastModified)
解码。
|
static Thing |
PropertyCoder.decode(Thing thing,
InputStream input,
boolean full,
long lastModified)
解码。
|
static Thing |
XerCoder.decodeAttributeOnly(byte[] bytes,
int offset)
仅仅读取一个数据对象的属性。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
XerCoder.decode(Thing thing,
byte[] bytes,
int offset)
从字节流里构建数据对象。
|
static Thing |
XerCoder.decode(Thing thing,
InputStream input) |
static Thing |
TxtCoder.decode(Thing thing,
InputStream input,
boolean full,
long lastModified)
解码。
|
static Thing |
PropertyCoder.decode(Thing thing,
InputStream input,
boolean full,
long lastModified)
解码。
|
void |
XmlThingCoder.decode(Thing thing,
InputStream in,
long lastModified) |
void |
XerThingCoder.decode(Thing thing,
InputStream in,
long loastModifyed) |
void |
TxtThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed) |
void |
PropertyThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed) |
void |
JsonThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed) |
void |
DmlThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed) |
static void |
XerCoder.encode(Thing thing,
ByteBuffer buffer,
Map<Thing,String> context)
编码事物到字节缓存中。
|
void |
XmlThingCoder.encode(Thing thing,
OutputStream out) |
static void |
XmlCoder.encode(Thing thing,
OutputStream out)
把指定的事物以XML编码到输出流中。
|
void |
XerThingCoder.encode(Thing thing,
OutputStream out) |
void |
TxtThingCoder.encode(Thing thing,
OutputStream out) |
void |
PropertyThingCoder.encode(Thing thing,
OutputStream out) |
void |
JsonThingCoder.encode(Thing thing,
OutputStream out) |
void |
DmlThingCoder.encode(Thing thing,
OutputStream out) |
static void |
XmlCoder.encode(Thing thing,
OutputStream out,
boolean includeDefaultValue)
把指定的事物以XML编码到输出流中。
|
static void |
XerCoder.encode(Thing thing,
OutputStream out,
Map<Thing,String> context) |
static void |
TxtCoder.encode(Thing thing,
PrintWriter out,
Map<Thing,String> context)
编码事物。
|
static void |
PropertyCoder.encode(Thing thing,
PrintWriter out,
Map<Thing,String> context)
编码事物。
|
static void |
XerCoder.encode1(Thing thing,
OutputStream out,
Map<Thing,String> context)
编码事物到输出流中。
|
static void |
XerCoder.encodeAllx(Thing thing,
OutputStream out,
Map<Thing,String> context)
编码所有。
|
static String |
XmlCoder.encodeToString(Thing thing)
把事物编码成XML字符串。
|
static String |
XmlCoder.encodeToString(Thing thing,
boolean includeDefaultValue)
把事物编码成XML字符串。
|
static void |
XmlCoder.initDefaultValues(Thing thing) |
static boolean |
CoderUtils.isDefault(Thing attribute,
String value)
判断给定的值是否是默认值。
|
static void |
XmlCoder.parse(Thing thing,
InputStream input)
从输入流中读取事物。
|
static void |
XmlCoder.parse(Thing thing,
String content)
分析XML字符串。
|
static void |
XmlCoder.parse(Thing thing,
Thing parentDescriptor,
Element element,
long lastModifyed)
分析XML元素数据到事物中。
|
static void |
XmlCoder.parse(Thing thing,
Thing descriptor,
InputStream input)
从输入流中读取事物。
|
static void |
XmlCoder.parse(Thing thing,
Thing descriptor,
String content)
分析XML字符串并返回事物。
|
static void |
XmlCoder.setLastModified(Thing thing,
long lastModified) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
XerCoder.encode(Thing thing,
ByteBuffer buffer,
Map<Thing,String> context)
编码事物到字节缓存中。
|
static void |
XerCoder.encode(Thing thing,
OutputStream out,
Map<Thing,String> context) |
static void |
TxtCoder.encode(Thing thing,
PrintWriter out,
Map<Thing,String> context)
编码事物。
|
static void |
PropertyCoder.encode(Thing thing,
PrintWriter out,
Map<Thing,String> context)
编码事物。
|
static void |
XerCoder.encode1(Thing thing,
OutputStream out,
Map<Thing,String> context)
编码事物到输出流中。
|
static void |
XerCoder.encodeAllx(Thing thing,
OutputStream out,
Map<Thing,String> context)
编码所有。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Thing |
WorkingSetIndex.getThing() |
| 构造器和说明 |
|---|
WorkingSetIndex(Index parent,
Thing thing) |
| 限定符和类型 | 方法和说明 |
|---|---|
Thing |
RedisThingManager.doLoadThing(String thingName) |
Thing |
JdbcThingManager.doLoadThing(String thingName) |
Thing |
JarThingManager.doLoadThing(String thingName) |
Thing |
FileThingManager.doLoadThing(String thingName) |
abstract Thing |
AbstractThingManager.doLoadThing(String thingName)
装载事物。
|
Thing |
TransientThingManager.getThing(String thingPath) |
Thing |
TransientCategory.getThing(String name) |
Thing |
ClassThingManager.getThing(String thingName) |
Thing |
ClassCategory.getThing(String name) |
Thing |
CachedCategory.getThing(String thingName) |
Thing |
AbstractThingManager.getThing(String thingName) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Thing> |
TransientCategory.getThings() |
List<Thing> |
ClassCategory.getThings() |
List<Thing> |
CachedCategory.getThings() |
List<Thing> |
TransientThingManager.getThings(String categoryName) |
List<Thing> |
TransientCategory.getThings(String descriptorPath) |
List<Thing> |
ClassThingManager.getThings(String categoryName) |
List<Thing> |
ClassCategory.getThings(String descriptor) |
List<Thing> |
CachedCategory.getThings(String descriptor) |
List<Thing> |
AbstractThingManager.getThings(String categoryName) |
List<Thing> |
TransientThingManager.getThings(String categoryName,
String descriptorPath) |
List<Thing> |
ClassThingManager.getThings(String categoryName,
String descriptorPath) |
List<Thing> |
AbstractThingManager.getThings(String categoryName,
String descriptorPath) |
Iterator<Thing> |
TransientCategory.iterator(boolean includeChildCategory) |
Iterator<Thing> |
ClassCategory.iterator(boolean includeChildCategory) |
Iterator<Thing> |
CachedCategory.iterator(boolean includeChildCategory) |
Iterator<Thing> |
TransientThingManager.iterator(String categoryName,
boolean includeChild) |
Iterator<Thing> |
TransientCategory.iterator(String descriptorPath,
boolean includeChildCategory) |
Iterator<Thing> |
ClassThingManager.iterator(String categoryName,
boolean includeChildCategory) |
Iterator<Thing> |
ClassCategory.iterator(String descriptorPath,
boolean includeChildCategory) |
Iterator<Thing> |
CachedCategory.iterator(String descriptorPath,
boolean includeChildCategory) |
Iterator<Thing> |
AbstractThingManager.iterator(String categoryName,
boolean includeChildCategory) |
Iterator<Thing> |
TransientThingManager.iterator(String categoryName,
String descriptorPath,
boolean includeChild) |
Iterator<Thing> |
ClassThingManager.iterator(String categoryName,
String descriptorPath,
boolean includeChildCategory) |
Iterator<Thing> |
AbstractThingManager.iterator(String categoryName,
String descriptorPath,
boolean includeChildCategory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FileMonitor.addFile(String path,
Thing thing,
File file,
boolean monitor)
添加一个事物文件监控。
|
boolean |
RedisThingManager.doRemoveThing(Thing thing) |
boolean |
JdbcThingManager.doRemoveThing(Thing thing) |
boolean |
JarThingManager.doRemoveThing(Thing thing) |
boolean |
FileThingManager.doRemoveThing(Thing thing) |
abstract boolean |
AbstractThingManager.doRemoveThing(Thing thing)
执行删除事物。
|
boolean |
RedisThingManager.doSaveThing(Thing thing) |
boolean |
JdbcThingManager.doSaveThing(Thing thing) |
boolean |
JarThingManager.doSaveThing(Thing thing) |
boolean |
FileThingManager.doSaveThing(Thing thing) |
abstract boolean |
AbstractThingManager.doSaveThing(Thing thing)
执行保存事物。
|
boolean |
TransientThingManager.remove(Thing thing) |
boolean |
ClassThingManager.remove(Thing thing) |
boolean |
AbstractThingManager.remove(Thing thing) |
boolean |
TransientThingManager.save(Thing athing) |
boolean |
ClassThingManager.save(Thing athing) |
boolean |
AbstractThingManager.save(Thing thing) |
| 限定符和类型 | 方法和说明 |
|---|---|
Thing |
ActionContainer.getActionThing(String name) |
static Thing |
UtilThing.getQuoteThing(Thing thing,
String attribute)
返回引用的事物,如果属性就不存在,那么就找根事物下的子事物。
|
static Thing |
UtilThing.getSelfQuoteThing(Thing thing,
String attribute)
返回只会连接到同一个根事物下的子事物,用在只会在事物内部连接的情况。
|
Thing |
ActionContainer.getThing() |
static Thing |
ThingUtil.getThing(File file)
如果文件是事物,那么返回事物。
|
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
ActionContext actionContext)
根据事物的属性返回指定的事物。
|
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
String childThingPath,
ActionContext actionContext)
先从事物指定的属性上获取事物,如果不存在从子节点的路径上获取。
|
static Thing |
UtilThing.getThingFromAttributeOrChild(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
UtilThing.getThingFromAttributeOrChilds(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
UtilThing.getThingIfNotExistsCreate(String path,
String thingManager,
String descriptorForCreate)
获取事物,如果不存在就创建一个。
|
static Thing |
UtilThing.getThingIfNotExistsCreate(String path,
String thingManager,
Thing forReplace)
获取事物,如果不存在就用已有的事物创建一个。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
List<Thing> forAdd,
boolean strict)
添加指定的事物列表到已有的事物列表中,添加时如果存在第一个的描述者相同且名字相同的则不添加。
|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
Thing forAdd,
boolean strict)
添加指定的事物到源事物列表中。
|
List<Thing> |
ActionContainer.getActionThings() |
static List<Thing> |
ThingUtil.getAllDescriptorsAndExtends(Thing thing) |
List<Thing> |
ActionContainer.getAppendActions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
Thing forAdd,
boolean strict)
添加指定的事物到源事物列表中。
|
void |
ActionContainer.append(Thing action) |
static void |
UtilThing.changeCoder(Thing thing,
String coder)
改变一个事物的编码格式。
|
static boolean |
UtilString.eq(Thing thing,
String attributeName,
String value)
返回字符串是否相等,如果属性值为null也返回false。
|
static <T> T |
UtilData.get(Thing thing,
String attributeName,
ActionContext actionContext) |
static String |
UtilAction.getActionCodeFilePath(Thing actionThing,
String ext)
获取一个动作的代码文件名。
|
static List<Thing> |
ThingUtil.getAllDescriptorsAndExtends(Thing thing) |
static Object |
OgnlUtil.getCachedExpression(Thing thing,
String attributeName) |
static Object |
UtilData.getData(Thing thing,
String attributeName,
ActionContext actionContext)
通过事物的属性获取数据。
|
static boolean |
UtilAction.getDebugLog(Thing actionThing,
ActionContext actionContext)
返回是否是打印调试日志。
|
static Object |
UtilData.getObject(Thing thing,
String attributeName,
ActionContext actionContext)
返回通过属性定义的对象,首先使用UtilData获取,如果没有从actionContext中获取。
|
static <T> T |
UtilData.getObjectByType(Thing thing,
String attributeName,
Class<T> t,
ActionContext actionContext) |
static Object |
ThingLoader.getObjectForLoad(Thing thing,
ActionContext actionContext)
基于继承了xworker.lang.ThingLoader的模型使用,一般用于在模型里加载到对象。
|
static org.xmeta.util.OgnlUtil.PathCache |
OgnlUtil.getPathCache(Thing thing,
String attributeName) |
static Thing |
UtilThing.getQuoteThing(Thing thing,
String attribute)
返回引用的事物,如果属性就不存在,那么就找根事物下的子事物。
|
static Thing |
UtilThing.getSelfQuoteThing(Thing thing,
String attribute)
返回只会连接到同一个根事物下的子事物,用在只会在事物内部连接的情况。
|
static String |
UtilString.getString(Thing thing,
String attribute,
ActionContext actionContext)
从事物取指定的属性的字符串值,然后从actionContext中取可能的值。
|
static String |
UtilData.getString(Thing thing,
String attributeName,
ActionContext actionContext) |
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
ActionContext actionContext)
根据事物的属性返回指定的事物。
|
static Thing |
UtilData.getThing(Thing thing,
String attributeName,
String childThingPath,
ActionContext actionContext)
先从事物指定的属性上获取事物,如果不存在从子节点的路径上获取。
|
static Thing |
UtilThing.getThingFromAttributeOrChild(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
UtilThing.getThingFromAttributeOrChilds(Thing thing,
String attributeName,
String childThingPath)
通过事物属性获取事物定义的事物,或者通过指定的子事物的第一个子节点获取定义的事物。
|
static Thing |
UtilThing.getThingIfNotExistsCreate(String path,
String thingManager,
Thing forReplace)
获取事物,如果不存在就用已有的事物创建一个。
|
static String |
UtilString.getThingManagerFileName(Thing thing) |
static Object |
OgnlUtil.getValue(Thing thing,
String pathAttributeName,
Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。
|
static Object |
OgnlUtil.getValue(Thing thing,
String pathAttributeName,
String pathAttributeValue,
Object root)
通过Ognl表达式取值, 事物的属性是Ognl的表达式。
|
static Bindings |
UtilAction.getVarScope(Thing action,
ActionContext actionContext)
获取变量范围。
|
static boolean |
UtilThing.isDescriptorEquals(Thing descriptorThing,
String descriptor)
判断一个事物作为描述者时是否是给定的类型,即判断这个事物的路径以及所有继承事物的路径是否是指定的descritpor。
|
static boolean |
UtilString.isNull(Thing thing,
String attributeName)
返回指定的事物的属性是否为空,如果是字符串那么null和""都返回true。
|
static <T> T |
ThingLoader.load(Object object,
Thing thing,
ActionContext actionContext,
Class<? extends Annotation>... annotations)
执行thing的create(actionContext)方法,执行后会遍历对象的注解为ActionField的字段,并从变量上下文中取值对字段赋值。
|
static void |
ThingUtil.paste(Thing thing,
Thing forPasteThing)
把目标事物粘贴到指定事物上。
|
static void |
ThingUtil.pasteAsChild(Thing thing,
Thing forPasteThing)
把目标事物粘贴为子事物。
|
static void |
UtilAction.putVarByActioScope(Thing action,
String varName,
Object var,
ActionContext actionContext)
把变量赋值到动作定义的变量范围中。
|
static void |
ThingUtil.replaceThing(Thing thing,
String replaceFor,
String replaceWith) |
static void |
UtilData.resetAttributeByType(Thing thing,
String name,
String type) |
static void |
OgnlUtil.setValue(Thing thing,
String pathAttributeName,
String pathAttributeValue,
Object value,
Object root) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
List<Thing> forAdd,
boolean strict)
添加指定的事物列表到已有的事物列表中,添加时如果存在第一个的描述者相同且名字相同的则不添加。
|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
List<Thing> forAdd,
boolean strict)
添加指定的事物列表到已有的事物列表中,添加时如果存在第一个的描述者相同且名字相同的则不添加。
|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
Thing forAdd,
boolean strict)
添加指定的事物到源事物列表中。
|
static <T> T |
ThingLoader.load(Object object,
List<Thing> things,
ActionContext actionContext,
Class<? extends Annotation>... annotations)
依次执行things的create(actionContext)方法,执行后会遍历对象的注解为ActionField的字段,并从变量上下文中取值对字段赋值。
|
| 构造器和说明 |
|---|
ActionContainer(Thing actions,
ActionContext actionContext) |
ThingCallable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
ThingRunnable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
Copyright © 2022 xworker.org. All rights reserved.