Class XMLTagFormatter.TagParser
- java.lang.Object
-
- net.revelc.code.formatter.xml.lib.XMLTagFormatter.TagParser
-
- Enclosing class:
- XMLTagFormatter
protected static class XMLTagFormatter.TagParser extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTagParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<XMLTagFormatter.AttributePair>getAttibutes(String elementText)protected StringgetElementName(String tagText)protected booleanisClosed(String tagText)XMLTagFormatter.Tagparse(String tagText)
-
-
-
Method Detail
-
getAttibutes
protected List<XMLTagFormatter.AttributePair> getAttibutes(String elementText) throws XMLTagFormatter.ParseException
- Throws:
XMLTagFormatter.ParseException
-
getElementName
protected String getElementName(String tagText) throws XMLTagFormatter.ParseException
- Parameters:
tagText- text of an XML tag- Returns:
- extracted XML element name
- Throws:
XMLTagFormatter.ParseException
-
isClosed
protected boolean isClosed(String tagText)
-
parse
public XMLTagFormatter.Tag parse(String tagText) throws XMLTagFormatter.ParseException
- Returns:
- a fully populated tag
- Throws:
XMLTagFormatter.ParseException
-
-