Package | Description |
---|---|
org.xmlfield.core | |
org.xmlfield.core.api | |
org.xmlfield.core.impl.dom | |
org.xmlfield.core.internal | |
org.xmlfield.validation |
Modifier and Type | Method and Description |
---|---|
XmlFieldNode |
XmlField.objectToNode(Object o) |
XmlFieldNode |
XmlField.xmlToNode(InputStream xmlInputStream)
Load the XML document from an input stream, load it internally in a tree
and return the root node.
|
XmlFieldNode |
XmlField.xmlToNode(String xml)
Load the XML document from a string, load it internally in a tree and
return the root node.
|
Modifier and Type | Method and Description |
---|---|
<T> T[] |
XmlField.nodeToArray(String resourceXPath,
XmlFieldNode node,
Class<T> type) |
<T> T[] |
XmlField.nodeToArray(XmlFieldNode node,
Class<T> type) |
Object[] |
XmlField.nodeToExplicitArray(String resourceXPath,
XmlFieldNode node,
Map<String,Class<?>> explicitCollection)
Function to attach an array of different objects type .
|
<T> T |
XmlField.nodeToObject(String resourceXPath,
XmlFieldNode node,
Class<T> resourceType)
Bind a node located by the xpath expression to the specified type
|
<T> T |
XmlField.nodeToObject(XmlFieldNode node,
Class<T> type)
Bind an xml field node to the specified type.
|
String |
XmlField.nodeToXml(XmlFieldNode node) |
void |
XmlField.nodeToXml(XmlFieldNode node,
Writer writer) |
Modifier and Type | Method and Description |
---|---|
XmlFieldNode |
XmlFieldNodeModifier.createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName)
Create a new element node at the end of the root node.
|
XmlFieldNode |
XmlFieldNodeModifier.createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName,
String textContent)
Create a new element node at the end of the root node.
|
XmlFieldNode |
XmlFieldNode.getDocumentNode()
Get the document node
|
XmlFieldNode |
XmlFieldNode.getParentNode()
Retrieve the parent node
|
XmlFieldNode |
XmlFieldNodeModifier.insertBefore(XmlFieldNode parentNode,
XmlFieldNode newChild,
XmlFieldNode refChild)
Insert a node before another node.
|
XmlFieldNode |
XmlFieldNodeList.item(int index)
Retrieve the item positioned at the specified index.
|
XmlFieldNode |
XmlFieldNodeModifier.removeAttribute(XmlFieldNode node,
String attributeName)
Remove an attribute from a specified node
|
XmlFieldNode |
XmlFieldNodeModifier.removeChild(XmlFieldNode contextNode,
XmlFieldNode oldChild)
Remove a child node
|
XmlFieldNode |
XmlFieldSelector.selectXPathToNode(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as an
xml field node.
|
XmlFieldNode |
XmlFieldObject.toNode()
renvoie le nœud XML correspondant à cet objet.
|
XmlFieldNode |
XmlFieldNodeParser.xmlToNode(InputStream xmlContent)
Transform an xml inputstream to an xml field node.
|
XmlFieldNode |
XmlFieldNodeParser.xmlToNode(String xml)
Transform an xml string to an xml field node.
|
Modifier and Type | Method and Description |
---|---|
void |
XmlFieldNodeModifier.createAttribute(XmlFieldNode contextNode,
String attributeName,
String textContent)
Create an attribute to a node
|
XmlFieldNode |
XmlFieldNodeModifier.createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName)
Create a new element node at the end of the root node.
|
XmlFieldNode |
XmlFieldNodeModifier.createElement(NamespaceMap namespaces,
XmlFieldNode node,
String elementName,
String textContent)
Create a new element node at the end of the root node.
|
XmlFieldNode |
XmlFieldNodeModifier.insertBefore(XmlFieldNode parentNode,
XmlFieldNode newChild,
XmlFieldNode refChild)
Insert a node before another node.
|
String |
XmlFieldNodeParser.nodeToXml(XmlFieldNode node)
Transform an xml field node to an xml string.
|
void |
XmlFieldNodeParser.nodeToXml(XmlFieldNode node,
Writer writer) |
XmlFieldNode |
XmlFieldNodeModifier.removeAttribute(XmlFieldNode node,
String attributeName)
Remove an attribute from a specified node
|
XmlFieldNode |
XmlFieldNodeModifier.removeChild(XmlFieldNode contextNode,
XmlFieldNode oldChild)
Remove a child node
|
Boolean |
XmlFieldSelector.selectXPathToBoolean(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as a
boolean.
|
XmlFieldNode |
XmlFieldSelector.selectXPathToNode(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as an
xml field node.
|
XmlFieldNodeList |
XmlFieldSelector.selectXPathToNodeList(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as an
xml field node list.
|
Double |
XmlFieldSelector.selectXPathToNumber(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as a
double.
|
String |
XmlFieldSelector.selectXPathToString(NamespaceMap namespaces,
String xpath,
XmlFieldNode node)
Select xpath expression to an xml field node and return the result as a
string.
|
Modifier and Type | Class and Description |
---|---|
class |
DomNode
Default xml field node implementation
|
Constructor and Description |
---|
DomNodeList(List<XmlFieldNode> nodeList) |
Modifier and Type | Method and Description |
---|---|
XmlFieldNode |
XmlFieldInvocationHandler.addNode(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add the specified binded node at the end of the xpath location.
|
XmlFieldNode |
XmlFieldInvocationHandler.addParentNodes(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add parent nodes to a specified node.
|
static XmlFieldNode |
XmlFieldUtils.createComplexElement(NamespaceMap namespaces,
XmlFieldNode contextNode,
String elementName,
String stringValue,
XmlField xf) |
XmlFieldNode |
XmlFieldInvocationHandler.getNode() |
static XmlFieldNode |
XmlFieldUtils.getXmlFieldNode(Object object)
récupérer le nœud XML qui correspond à un objet.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
XmlFieldInvocationHandler.add(XmlFieldNode root,
String xpath,
Class<T> type)
Add a binded instance at the end of the nodes located by the xpath.
|
XmlFieldNode |
XmlFieldInvocationHandler.addNode(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add the specified binded node at the end of the xpath location.
|
XmlFieldNode |
XmlFieldInvocationHandler.addParentNodes(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add parent nodes to a specified node.
|
static XmlFieldNode |
XmlFieldUtils.createComplexElement(NamespaceMap namespaces,
XmlFieldNode contextNode,
String elementName,
String stringValue,
XmlField xf) |
static void |
XmlFieldUtils.remove(XmlFieldNode node,
XmlField xf)
retirer un nœud XML de son parent.
|
Constructor and Description |
---|
XmlFieldInvocationHandler(XmlField xmlField,
XmlFieldNode node,
Class<?> type)
T .
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
XPathValidation.getExplosiveValidator(XmlFieldNode node,
Class<T> validatorClass)
Deprecated.
|
static String[] |
XPathValidation.getValidationErrors(XmlFieldNode node,
Class<?>... validationClasses)
Deprecated.
|
static <T> T |
XPathValidation.getValidatorWithErrors(XmlFieldNode node,
Class<T> validatorClass)
Deprecated.
|
static void |
XPathValidation.validateExplosively(XmlFieldNode node,
Class<?>... validationClasses)
Deprecated.
|
Copyright © 2011–2014. All rights reserved.