| Package | Description |
|---|---|
| com.alipay.sofa.common.xmap | |
| com.alipay.sofa.common.xmap.annotation.spring | |
| com.alipay.sofa.runtime.ext.component |
| Modifier and Type | Method and Description |
|---|---|
Object |
XValueFactory.getAttributeValue(Context ctx,
Node element,
String name) |
Object |
XValueFactory.getElementValue(Context ctx,
Node element,
boolean trim) |
static Object |
XValueFactory.getValue(Context ctx,
Class klass,
String value) |
protected Object |
XAnnotatedMember.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedList.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedParent.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedContent.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedMap.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedMember.getValue(Context ctx,
Map<String,Object> map,
String keyPrefix) |
abstract Object |
XValueFactory.getValue(Context ctx,
String value) |
Object |
XMap.load(Context ctx,
Element root)
Processes the given DOM element and return the first mappable object
found in the element.
|
Object |
XMap.load(Context ctx,
InputStream in)
Processes the XML content from the given input stream using the given context.
|
Object |
XMap.load(Context ctx,
URL url)
Processes the XML file at the given URL and using the given contexts.
|
Object[] |
XMap.loadAll(Context ctx,
Element root)
Processes the given DOM element and return a list with all top-level
mappable objects found in the element.
|
void |
XMap.loadAll(Context ctx,
Element root,
Collection<Object> result)
Same as
XMap.loadAll(Context, Element) but put collected objects in the
given collection. |
Object[] |
XMap.loadAll(Context ctx,
InputStream in)
Processes the XML from the given input stream using the given context.
|
Object[] |
XMap.loadAll(Context ctx,
URL url)
Processes the XML file at the given URL using the given context
Return a list with all registered top level objects that are found in the file.
|
Object |
XAnnotatedObject.newInstance(Context ctx,
Element element) |
Object |
XAnnotatedObject.newInstance(Context ctx,
Map<String,Object> map,
String keyPrefix) |
void |
XAnnotatedMember.process(Context ctx,
Element element) |
void |
XAnnotatedMember.process(Context ctx,
Map<String,Object> map,
String keyPrefix) |
static void |
DOMHelper.visitAttributes(Context ctx,
XAnnotatedList xam,
Node base,
String name,
String attrName,
DOMHelper.NodeVisitor visitor,
Collection<Object> result) |
static void |
DOMHelper.visitElements(Context ctx,
XAnnotatedList xam,
Node base,
String name,
DOMHelper.NodeVisitor visitor,
Collection<Object> result) |
static void |
DOMHelper.visitMapAttributes(Context ctx,
XAnnotatedMap xam,
Node base,
String name,
String attrName,
DOMHelper.NodeMapVisitor visitor,
Map<String,Object> result) |
static void |
DOMHelper.visitMapElements(Context ctx,
XAnnotatedMap xam,
Node base,
String name,
DOMHelper.NodeMapVisitor visitor,
Map<String,Object> result) |
static void |
DOMHelper.visitMapNodes(Context ctx,
XAnnotatedMap xam,
Element base,
Path path,
DOMHelper.NodeMapVisitor visitor,
Map<String,Object> result) |
abstract void |
DOMHelper.NodeVisitor.visitNode(Context ctx,
XAnnotatedMember xam,
Node node,
Collection<Object> result) |
abstract void |
DOMHelper.NodeMapVisitor.visitNode(Context ctx,
XAnnotatedMember xam,
Node node,
String key,
Map<String,Object> result) |
static void |
DOMHelper.visitNodes(Context ctx,
XAnnotatedList xam,
Element base,
Path path,
DOMHelper.NodeVisitor visitor,
Collection<Object> result) |
| Constructor and Description |
|---|
Resource(Context ctx,
String path) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
XAnnotatedMapSpring.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedSpring.getValue(Context ctx,
Element base) |
protected Object |
XAnnotatedListSpring.getValue(Context ctx,
Element base) |
| Modifier and Type | Class and Description |
|---|---|
class |
XMapContext |
Copyright © 2021. All rights reserved.