| 程序包 | 说明 |
|---|---|
| org.xmeta | |
| 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.getClassThing() |
Thing |
Thing.getDescriptor()
返回事物的主要的描述者。
|
Thing |
Thing.getParent()
返回本事物的父事物。
|
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.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.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)
返回动作类,通常是动作事物对应的类,有些动作可能没有对应类。
|
protected void |
Thing.initChildMetadata(Thing child)
初始化子事物的元数据。
|
static void |
Action.initContext(Thing context,
ActionContext actionContext)
初始化上下文。
|
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.removeGlobalContext(Thing contextThing)
移除一个全局上下文。
|
boolean |
ThingManager.save(Thing athing)
保存一个事物。
|
void |
ThingManagerListener.saved(ThingManager thingManager,
Thing thing)
当一个事物被保存时触发此事件。
|
void |
Thing.setParent(Thing parent) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Throwable |
Action.doThingContextMethod(List<Thing> contexts,
ActionContext actionContext,
String methodName,
Throwable exception)
执行上下文的成功或者失败的方法。
|
| 构造器和说明 |
|---|
Action(Thing thing)
构造函数,传入定义动作的事物。
|
ThingMetadata(Thing thing)
构造函数
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected WeakReference<Thing> |
ThingEntry.thingReference |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
ThingCache.get(String path)
获取缓存。
|
Thing |
ThingEntry.getThing() |
Thing |
LinkedThingEntry.getThing() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LinkedThingEntry.addThing(Thing thing) |
static void |
ThingCache.put(String path,
Thing thing)
放入缓存。
|
| 构造器和说明 |
|---|
GeneratedObjectEntry(Thing thing,
String method)
构造函数。
|
ThingEntry(String path,
Thing thing) |
ThingEntry(Thing thing) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
XerCoder.decode(Thing thing,
InputStream input) |
static Thing |
TxtCoder.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)
解码。
|
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 |
JsonThingCoder.decode(Thing thing,
InputStream in,
long lastModifyed) |
void |
JsonThingCoder.decode(Thing thing,
String thingName,
Object value,
Map<String,String> imports,
long lastModifyed,
boolean decodeIndex) |
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 |
JsonThingCoder.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 |
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.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 |
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 |
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 |
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thing |
ThingUtil.getThing(File file)
如果文件是事物,那么返回事物。
|
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)
添加指定的事物到源事物列表中。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Thing> |
UtilData.addToSource(List<Thing> source,
Thing forAdd,
boolean strict)
添加指定的事物到源事物列表中。
|
static boolean |
UtilString.eq(Thing thing,
String attributeName,
String value)
返回字符串是否相等,如果属性值为null也返回false。
|
static String |
UtilAction.getActionCodeFilePath(Thing actionThing,
String ext)
获取一个动作的代码文件名。
|
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 org.xmeta.util.OgnlUtil.PathCache |
OgnlUtil.getPathCache(Thing thing,
String attributeName) |
static String |
UtilString.getString(Thing thing,
String attribute,
ActionContext actionContext)
从事物取指定的属性的字符串值,然后从actionContext中取可能的值。
|
static String |
UtilData.getString(Thing thing,
String attributeName,
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 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 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)
添加指定的事物到源事物列表中。
|
| 构造器和说明 |
|---|
ThingCallable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
ThingRunnable(Thing thing,
ActionContext actionContext,
Map<String,Object> params) |
Copyright © 2016 xworker.org. All rights reserved.