|
|||||||||
| Home >> All >> com >> aendvari >> common >> [ model overview ] | PREV NEXT | ||||||||
Uses of Interface
com.aendvari.common.model.ModelNode
| Uses of ModelNode in com.aendvari.common.model |
| Methods in com.aendvari.common.model that return ModelNode | |
ModelNode |
ModelTree.createNode(java.lang.String name)
Creates a ModelNode object. |
ModelNode |
ModelTree.createNode(java.lang.String name,
java.lang.String value)
Creates a ModelNode object with the supplied value. |
ModelNode |
ModelTree.getNode(ModelNode node,
java.lang.String path)
Returns the ModelNode using the path provided. |
ModelNode |
ModelTree.getRootNode()
Returns the ModelNode of the DOM/OSM model space. |
ModelNode |
ModelQueryPath.selectNode(ModelNode context)
Selects a single node using the compiled expression. |
static ModelNode |
ModelQueryPath.selectNode(ModelNode context,
java.lang.String expression)
Uses the expression to select a single node. |
protected ModelNode |
ModelQueryPath.selectNodeByName(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex)
Selects a child node based on its name. |
protected ModelNode |
ModelQueryPath.selectNodeByIndex(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex)
Selects a child node based on its position. |
protected ModelNode |
ModelQueryPath.selectNode(ModelNode context,
int operationIndex)
Performs the query expression operations for a single node selection. |
ModelNode |
ModelNode.getParentNode()
The parent of this node. |
ModelNode |
ModelNode.getFirstChild()
The first child of this node. |
ModelNode |
ModelNode.getLastChild()
The last child of this node. |
ModelNode |
ModelNode.getPreviousSibling()
The node immediately preceding this node. |
ModelNode |
ModelNode.getNextSibling()
The node immediately following this node. |
ModelNode |
ModelNode.appendChild(ModelNode newChild)
Adds the node newChild to the end of the list of children of this node. |
ModelNode |
ModelNode.insertBefore(ModelNode newChild,
ModelNode refChild)
Inserts the node newChild before the existing child node refChild. |
ModelNode |
ModelNode.replaceChild(ModelNode newChild,
ModelNode oldChild)
Replaces the child node oldChild with newChild, and returns
the oldChild node. |
ModelNode |
ModelNode.removeChild(ModelNode oldChild)
Removes the child node indicated by oldChild from the list of children,
and returns it. |
| Methods in com.aendvari.common.model with parameters of type ModelNode | |
static void |
ModelUtil.updateNodes(ModelNode sourceNode,
java.lang.String sourceExpression,
ModelNode destinationNode,
java.lang.String destinationExpression,
boolean createNodes)
Updates the children of the specified ModelNode using the values stored within other ModelNodes. |
protected static void |
ModelUtil.updateNode(ModelTree destinationTree,
ModelNode sourceNode,
ModelNode destinationParent,
boolean createNodes)
Updates the value of the supplied node. |
static void |
ModelUtil.clearNodes(ModelNode baseNode)
Sets the values of the supplied node and all of its children to an empty string. |
static void |
ModelUtil.removeNamedChildren(ModelNode modelNode,
java.lang.String childName)
Removes the children having the specified name from the supplied node. |
static void |
ModelUtil.removeAllChildren(ModelNode modelNode)
Removes all children of the supplied node. |
static void |
ModelUtil.removeAllChildren(ModelNode modelNode,
java.lang.String selectExpression)
Removes all children of the selected node. |
static void |
ModelUtil.osmToModel(com.aendvari.common.osm.OsmNode sourceNode,
java.lang.String sourceExpression,
ModelNode destinationNode,
boolean createNodes)
Copies data from the specified location in the supplied OSM to the destination ModelNode. |
static void |
ModelUtil.modelToOsm(ModelNode sourceNode,
com.aendvari.common.osm.OsmNode destinationNode,
java.lang.String destinationExpression,
boolean createNodes)
Copies data from the ModelNode into the specified location of the supplied OSM. |
static java.lang.String |
ModelUtil.writeNode(ModelNode modelNode)
Writes the supplied ModelNode and its children to a string. |
static void |
ModelUtil.writeNode(ModelNode modelNode,
java.io.Writer output)
Writes the supplied ModelNode and its children to output. |
protected static void |
ModelUtil.examineNode(ModelNode modelNode,
java.io.Writer output,
java.lang.String indent)
Outputs a single ModelNode, then recursively examines children. |
ModelNode |
ModelTree.getNode(ModelNode node,
java.lang.String path)
Returns the ModelNode using the path provided. |
java.util.List |
ModelTree.getNodes(ModelNode node,
java.lang.String path)
Returns an List of ModelNode's using the path provided. |
ModelNode |
ModelQueryPath.selectNode(ModelNode context)
Selects a single node using the compiled expression. |
java.util.Collection |
ModelQueryPath.selectNodes(ModelNode context)
Selects multiple nodes using the compiled expression. |
static ModelNode |
ModelQueryPath.selectNode(ModelNode context,
java.lang.String expression)
Uses the expression to select a single node. |
static java.util.Collection |
ModelQueryPath.selectNodes(ModelNode context,
java.lang.String expression)
Uses the expression to select multiple nodes. |
protected ModelNode |
ModelQueryPath.selectNodeByName(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex)
Selects a child node based on its name. |
protected ModelNode |
ModelQueryPath.selectNodeByIndex(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex)
Selects a child node based on its position. |
protected ModelNode |
ModelQueryPath.selectNode(ModelNode context,
int operationIndex)
Performs the query expression operations for a single node selection. |
protected void |
ModelQueryPath.selectNodesByName(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex,
java.util.Collection nodes)
Selects child nodes based on their name. |
protected void |
ModelQueryPath.selectNodesByIndex(ModelQueryPath.Operator operator,
ModelNode context,
int operationIndex,
java.util.Collection nodes)
Selects a child node based on its position. |
protected void |
ModelQueryPath.selectNodes(ModelNode context,
int operationIndex,
java.util.Collection nodes)
Performs the query expression operations for multiple node selection. |
ModelNode |
ModelNode.appendChild(ModelNode newChild)
Adds the node newChild to the end of the list of children of this node. |
ModelNode |
ModelNode.insertBefore(ModelNode newChild,
ModelNode refChild)
Inserts the node newChild before the existing child node refChild. |
ModelNode |
ModelNode.replaceChild(ModelNode newChild,
ModelNode oldChild)
Replaces the child node oldChild with newChild, and returns
the oldChild node. |
ModelNode |
ModelNode.removeChild(ModelNode oldChild)
Removes the child node indicated by oldChild from the list of children,
and returns it. |
|
|||||||||
| Home >> All >> com >> aendvari >> common >> [ model overview ] | PREV NEXT | ||||||||