public class NodeWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static Hashtable |
ALL_NODES
static Hashtable which maintains a collection of all of the loaded NodeWrappers.
|
Modifier and Type | Method and Description |
---|---|
static void |
AddNode(String name,
String element,
XFTSchema s)
Adds a new NodeWrapper to the ALL_NODES collection of loaded nodes
using the input variables.
|
static NodeWrapper |
FindNode(String name)
Finds a NodeWrapper based on its XMLType full name (schema defined prefix + ":" + node name)
|
static Node |
FindNode(String name,
XFTSchema s)
Finds the specific XML DOM node based on an item's node name.
|
String |
getCorrespondingElement()
Returns the name of the corresponding XFTElement
|
XMLType |
getName()
Returns the XMLType of the wrapped node
|
Node |
getNode()
Returns the XML DOM Node.
Using the XFTSchema, this method loads the schema DOM from its file and finds the selected Node to return. |
XFTSchema |
getSchema()
Returns the NodeWrapper's XFTSchema
|
void |
setCorrespondingElement(String element)
Assisgn a new corresponding XFTElement name to this NodeWrapper
|
void |
setName(XMLType type)
Assign a XMLType to this NodeWrapper
|
void |
setSchema(XFTSchema schema)
Assign a XFTSchema to this Schema.
This schema will be used to assign a definedPrefix to the XMLType and for finding the actual Node in its DOM document. |
public static final Hashtable ALL_NODES
public static void AddNode(String name, String element, XFTSchema s)
name
- name of root level nodeelement
- name of the created elements
- public static NodeWrapper FindNode(String name)
name
- full XMLType to findpublic static Node FindNode(String name, XFTSchema s)
name
- name of node to search fors
- xftSchema which the node belongs topublic String getCorrespondingElement()
public XMLType getName()
public Node getNode()
public XFTSchema getSchema()
public void setCorrespondingElement(String element)
element
- XFTElement xmlNamepublic void setName(XMLType type)
type
- public void setSchema(XFTSchema schema)
schema
- Copyright © 2015 Neuroinformatics Research Group. All rights reserved.