public class FlexiMinXMLBuilder extends java.lang.Object implements MinXMLBuilder
Constructor and Description |
---|
FlexiMinXMLBuilder() |
Modifier and Type | Method and Description |
---|---|
MinXML |
build()
This method returns the constructed tree.
|
void |
endTag(java.lang.String name)
This method finishes the construction of the current element.
|
void |
put(java.lang.String key,
java.lang.String value)
This method adds the attribute key=value to the start tag
that is under construction.
|
void |
startTagClose(java.lang.String name)
This method finishes the construction of the current start tag.
|
void |
startTagOpen(java.lang.String name)
This method should be called to begin the construction of
a start-tag with a particular element name.
|
public void startTagOpen(java.lang.String name)
MinXMLBuilder
startTagOpen
in interface MinXMLBuilder
name
- the name of the element to be constructed (or null).public void put(java.lang.String key, java.lang.String value)
MinXMLBuilder
put
in interface MinXMLBuilder
key
- the attribute keyvalue
- the attribute valuepublic void startTagClose(java.lang.String name)
MinXMLBuilder
startTagClose
in interface MinXMLBuilder
name
- the name of the element to be constructed (or null)public void endTag(java.lang.String name)
MinXMLBuilder
endTag
in interface MinXMLBuilder
name
- the name of the element to be constructed (or null)public MinXML build()
MinXMLBuilder
build
in interface MinXMLBuilder