public class PropertyBuilder extends java.lang.Object implements SimpleXMLBuilder
SimpleXMLBuilder that maps the document onto a set of Properties| Constructor and Description |
|---|
PropertyBuilder(java.util.Properties prop) |
PropertyBuilder(PropertyBuilder parent) |
| Modifier and Type | Method and Description |
|---|---|
SimpleXMLBuilder |
appendParent()
Append the contents of this builder to the parent (if any).
|
SimpleXMLBuilder |
attr(java.lang.String name,
java.lang.CharSequence s)
Add an attribute.
|
SimpleXMLBuilder |
clean(char c) |
SimpleXMLBuilder |
clean(java.lang.CharSequence s)
append text to the document escaping any characters that might be interpreted as XML markup.
|
SimpleXMLBuilder |
clean(java.lang.Number i)
Append text representation of the number
|
SimpleXMLBuilder |
close()
close the last opened tag.
|
SimpleXMLBuilder |
getNested()
Get a new SimpleXMLBuilder of the same type as this object.
|
SimpleXMLBuilder |
getParent()
Get the parent object.
|
SimpleXMLBuilder |
open(java.lang.String tag)
open a tag
|
SimpleXMLBuilder |
open(java.lang.String tag,
java.lang.String[][] a)
open a tag with attributes.
|
boolean |
setEscapeUnicode(boolean escape_unicode)
Should high code-point unicode characters be escaped to
avoid charset problems.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObject, attrpublic PropertyBuilder(java.util.Properties prop)
public PropertyBuilder(PropertyBuilder parent)
public SimpleXMLBuilder clean(java.lang.CharSequence s)
SimpleXMLBuilderclean in interface SimpleXMLBuilderpublic SimpleXMLBuilder clean(char c)
clean in interface SimpleXMLBuilderpublic SimpleXMLBuilder clean(java.lang.Number i)
SimpleXMLBuilderclean in interface SimpleXMLBuilderi - Number to formatpublic SimpleXMLBuilder open(java.lang.String tag)
SimpleXMLBuilderopen in interface SimpleXMLBuilderpublic SimpleXMLBuilder open(java.lang.String tag, java.lang.String[][] a)
SimpleXMLBuilderopen in interface SimpleXMLBuildertag - tag to opena - array of name,value pairspublic SimpleXMLBuilder attr(java.lang.String name, java.lang.CharSequence s)
SimpleXMLBuilderattr in interface SimpleXMLBuildername - String attribute names - CharSequence attribute value or null for no valuepublic SimpleXMLBuilder close()
SimpleXMLBuilderclose in interface SimpleXMLBuilderpublic SimpleXMLBuilder getNested() throws java.lang.UnsupportedOperationException
SimpleXMLBuilderSimpleXMLBuilder.appendParent() method.
The calling code need only hold a reference to the current builder as the
SimpleXMLBuilder.appendParent() method returns the parent.getNested in interface SimpleXMLBuilderjava.lang.UnsupportedOperationExceptionpublic SimpleXMLBuilder appendParent() throws java.lang.UnsupportedOperationException
SimpleXMLBuilderappendParent in interface SimpleXMLBuilderjava.lang.UnsupportedOperationExceptionpublic SimpleXMLBuilder getParent()
SimpleXMLBuildergetParent in interface SimpleXMLBuilderpublic boolean setEscapeUnicode(boolean escape_unicode)
SimpleXMLBuildersetEscapeUnicode in interface SimpleXMLBuilder