public static final class XmlReader.XmlSplittable extends Object implements Splittable
Splittable
for XML data.NULL
Constructor and Description |
---|
XmlReader.XmlSplittable(Document doc)
Create an XML splittable rooted at the document element of the given
document.
|
XmlReader.XmlSplittable(Node node)
Create an XML splittable from the given node.
|
XmlReader.XmlSplittable(NodeList<Node> nodes)
Create an XML splittable for the given list of nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean() |
double |
asNumber() |
void |
assign(Splittable parent,
int index) |
void |
assign(Splittable parent,
String propertyName) |
String |
asString() |
Splittable |
deepCopy() |
Splittable |
get(int index) |
Splittable |
get(String key) |
String |
getPayload() |
List<String> |
getPropertyKeys() |
Object |
getReified(String key) |
boolean |
isBoolean() |
boolean |
isIndexed() |
boolean |
isKeyed() |
boolean |
isNull(int index) |
boolean |
isNull(String key) |
boolean |
isNumber() |
boolean |
isReified(String key) |
boolean |
isString() |
boolean |
isUndefined(String key) |
void |
removeReified(String key) |
void |
setReified(String key,
Object object) |
void |
setSize(int i) |
int |
size() |
String |
toString() |
public XmlReader.XmlSplittable(Document doc)
doc
- the document representing the root of this XML splittablepublic XmlReader.XmlSplittable(Node node)
node
- the node representing the root of this XML splittablepublic boolean asBoolean()
asBoolean
in interface Splittable
public double asNumber()
asNumber
in interface Splittable
public void assign(Splittable parent, int index)
assign
in interface Splittable
public void assign(Splittable parent, String propertyName)
assign
in interface Splittable
public String asString()
asString
in interface Splittable
public Splittable deepCopy()
deepCopy
in interface Splittable
public Splittable get(int index)
get
in interface Splittable
public Splittable get(String key)
get
in interface Splittable
public String getPayload()
getPayload
in interface Splittable
public List<String> getPropertyKeys()
getPropertyKeys
in interface Splittable
public Object getReified(String key)
getReified
in interface Splittable
public boolean isBoolean()
isBoolean
in interface Splittable
public boolean isIndexed()
isIndexed
in interface Splittable
public boolean isKeyed()
isKeyed
in interface Splittable
public boolean isNull(int index)
isNull
in interface Splittable
public boolean isNull(String key)
isNull
in interface Splittable
public boolean isNumber()
isNumber
in interface Splittable
public boolean isReified(String key)
isReified
in interface Splittable
public boolean isString()
isString
in interface Splittable
public boolean isUndefined(String key)
isUndefined
in interface Splittable
public void removeReified(String key)
public void setReified(String key, Object object)
setReified
in interface Splittable
public void setSize(int i)
setSize
in interface Splittable
public int size()
size
in interface Splittable
Copyright © 2015. All rights reserved.