public class XMLMessage extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
content |
protected XPath |
xPath |
Constructor and Description |
---|
XMLMessage() |
XMLMessage(String content) |
Modifier and Type | Method and Description |
---|---|
Boolean |
getBoolean(String xPathExpression)
Get a Boolean element by XPath Expression
|
String |
getContent() |
LocalDate |
getDate(String xPathExpression)
Returns the
LocalDate given the XML Date. |
OffsetDateTime |
getDateTime(String xPathExpression)
Returns the
OffsetDateTime given the XML DateTime. |
Float |
getFloat(String xPathExpression) |
Integer |
getInteger(String xPathExpression) |
Integer[] |
getIntegerArray(String xPathExpression)
Get an array of Integer elements by XPath Expression
|
Long |
getLong(String xPathExpression) |
Node |
getNode(String xPathExpression)
Get a Node element by XPath Expression
|
Node[] |
getNodeArray(String xPathExpression)
Get an array of Node elements by XPath Expression
|
Double |
getNumber(String xPathExpression)
Get a Double element by XPath Expression
|
String |
getString(String xPathExpression)
Get a String element by XPath Expression
|
String[] |
getStringArray(String xPathExpression)
Get an array of String elements by XPath Expression
|
OffsetTime |
getTime(String xPathExpression)
Returns the
OffsetTime given the XML Time. |
void |
setContent(String content) |
protected transient String content
@GwtIncompatible protected transient XPath xPath
public XMLMessage()
public XMLMessage(String content)
public String getContent()
public void setContent(String content)
@GwtIncompatible public Boolean getBoolean(String xPathExpression)
xPathExpression
- The expression to retrieve.@GwtIncompatible public OffsetTime getTime(String xPathExpression)
OffsetTime
given the XML Time.xPathExpression
- The expression to retrieve.@GwtIncompatible public LocalDate getDate(String xPathExpression)
LocalDate
given the XML Date.xPathExpression
- The expression to retrieve.@GwtIncompatible public OffsetDateTime getDateTime(String xPathExpression)
OffsetDateTime
given the XML DateTime.xPathExpression
- The expression to retrieve.@GwtIncompatible public Integer[] getIntegerArray(String xPathExpression)
xPathExpression
- The expression to retrieve.@GwtIncompatible public Node getNode(String xPathExpression)
xPathExpression
- The expression to retrieve.@GwtIncompatible public Node[] getNodeArray(String xPathExpression)
xPathExpression
- The expression to retrieve.@GwtIncompatible public Double getNumber(String xPathExpression)
xPathExpression
- The expression to retrieve.@GwtIncompatible public String getString(String xPathExpression)
xPathExpression
- The expression to retrieve.Copyright © 2017 ECG. All rights reserved.