public class Element extends Object
| Modifier and Type | Method and Description |
|---|---|
Element |
append(Element child) |
Element |
firstChild() |
static Element |
fromNode(Document doc,
Node node) |
Element |
get(String tagName) |
Element[] |
getAll() |
Element[] |
getAll(String tagName) |
String |
getAttributeString(String attributeName) |
Date |
getDate(SimpleDateFormat formatter,
String... tagNames) |
Date |
getDate(String... tagNames) |
org.joda.time.DateTime |
getDateTime(org.joda.time.format.DateTimeFormatter format,
String... tagNames) |
org.joda.time.DateTime |
getDateTime(String... tagNames) |
BigDecimal |
getDecimal(String tagName) |
Element |
getElement() |
Integer |
getInt(String tagName) |
String |
getString(String... tagNames) |
boolean |
has(String tagName) |
Element |
remove(String tagName) |
Element |
set(String name,
IStringConstant value) |
Element |
set(String name,
String value) |
String |
tag() |
Element |
text(IStringConstant text) |
Element |
text(String text) |
public Element firstChild()
public Element set(String name, IStringConstant value)
public Element text(IStringConstant text)
public String tag()
public Element getElement()
public boolean has(String tagName)
public Element[] getAll()
public BigDecimal getDecimal(String tagName)
public Date getDate(SimpleDateFormat formatter, String... tagNames)
public org.joda.time.DateTime getDateTime(String... tagNames)
public org.joda.time.DateTime getDateTime(org.joda.time.format.DateTimeFormatter format,
String... tagNames)
Copyright © 2019. All rights reserved.