public class DOMDecoderBase extends Object
| Constructor and Description |
|---|
DOMDecoderBase() |
DOMDecoderBase(Node root) |
DOMDecoderBase(Node currentRoot,
String defaultNamespace,
String encodingNamespace) |
DOMDecoderBase(String encodingNamespace) |
| Modifier and Type | Method and Description |
|---|---|
Date |
dateOnly(String name)
Returns an encoded DATE string, represented by xsd:date.
|
Date |
dateOnly(String name,
Date deflt)
Returns an encoded DATE string, represented by xsd:date.
|
Date |
dateTime(String name)
Returns an encoded DATE string, encoded by xsd:dateTime.
|
Iterable<DOMDecoder> |
getChildIterator()
Creates an iterator for ALL nodes below the currently selected node.
|
Node |
getCurrentRoot()
Return the current root for node lookups.
|
String |
getDefaultNamespace() |
String |
getEncodingNamespace() |
void |
into(String name)
Like select this locates the named element and makes it current, but this one aborts if the element is not present.
|
Iterable<DOMDecoder> |
list(String name)
When present this selects the node with the specified name, and initializes a list-walk at this level.
|
Iterable<DOMDecoder> |
list(String name,
String childNodeName) |
Node |
nodeFind(Node rn,
String ns,
String name)
Finds a single element with the name spec'd in the node.
|
Node |
nodeGet(Node rn,
String ns,
String name) |
String |
oneOf(String name,
String... list) |
boolean |
selectNode(String name)
Checks if the specified node in the current namespace is present in the currentRoot.
|
void |
setCurrentRoot(Node currentRoot) |
void |
setDefaultNamespace(String defaultNamespace) |
void |
setEncodingNamespace(String encodingNamespace) |
String |
string(String name)
Mandatory string node.
|
String |
string(String name,
int maxlen) |
String |
string(String name,
String dflt)
Finds the 0..1 string in the specified root, returns the default value if the string is not found.
|
String |
string(String name,
String dflt,
int maxlen) |
String |
textFrom_untrimmed(Node n)
Gets the text part contained in a node...
|
String |
textFrom(Node n)
Gets the text part contained in a node...
|
void |
up() |
void |
up(int count)
Move n nodes UP.
|
public DOMDecoderBase()
public DOMDecoderBase(Node root)
public DOMDecoderBase(String encodingNamespace)
public String string(String name)
rootnode - ns - name - public String string(String name, String dflt)
rootnode - ns - name - dflt - public Date dateOnly(String name)
name - public Date dateOnly(String name, Date deflt)
name - public Date dateTime(String name)
name - public Node getCurrentRoot()
public boolean selectNode(String name)
name - public void into(String name)
name - public void up(int count)
count - public void up()
public Iterable<DOMDecoder> list(String name)
public Iterable<DOMDecoder> list(String name, String childNodeName)
public Iterable<DOMDecoder> getChildIterator()
public Node nodeFind(Node rn, String ns, String name)
public String textFrom_untrimmed(Node n)
public String textFrom(Node n)
public String getEncodingNamespace()
public void setEncodingNamespace(String encodingNamespace)
public String getDefaultNamespace()
public void setDefaultNamespace(String defaultNamespace)
public void setCurrentRoot(Node currentRoot)
Copyright © 2017 etc.to. All rights reserved.