Modifier and Type | Field and Description |
---|---|
Map<String,String> |
attributes
Stores attributes as a Map from keys to values.
|
boolean |
isEndTag
Whether this is an ending tag or not.
|
boolean |
isSingleTag
Whether this is an empty element expressed as a single empty element tag like
<p/> . |
String |
name
Stores the elememnt name, such as "doc".
|
String |
text
Stores the complete string passed in as the tag on construction.
|
Constructor and Description |
---|
XMLTag(String tag)
Assumes that String contains an XML tag.
|
Modifier and Type | Method and Description |
---|---|
String |
getFirstNonNullAttributeFromList(List<String> attributesList)
Given a list of attributes, return the first one that is non-null
|
String |
toString() |
public String text
public String name
public boolean isEndTag
public boolean isSingleTag
<p/>
.public XMLTag(String tag)
tag
- String to turn into an XMLTag object