public class PropertyBuilder extends java.lang.Object implements SimpleXMLBuilder
SimpleXMLBuilder
that maps the document onto a set of PropertiesConstructor 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, wait
addObject, attr
public PropertyBuilder(java.util.Properties prop)
public PropertyBuilder(PropertyBuilder parent)
public SimpleXMLBuilder clean(java.lang.CharSequence s)
SimpleXMLBuilder
clean
in interface SimpleXMLBuilder
public SimpleXMLBuilder clean(char c)
clean
in interface SimpleXMLBuilder
public SimpleXMLBuilder clean(java.lang.Number i)
SimpleXMLBuilder
clean
in interface SimpleXMLBuilder
i
- Number to formatpublic SimpleXMLBuilder open(java.lang.String tag)
SimpleXMLBuilder
open
in interface SimpleXMLBuilder
public SimpleXMLBuilder open(java.lang.String tag, java.lang.String[][] a)
SimpleXMLBuilder
open
in interface SimpleXMLBuilder
tag
- tag to opena
- array of name,value pairspublic SimpleXMLBuilder attr(java.lang.String name, java.lang.CharSequence s)
SimpleXMLBuilder
attr
in interface SimpleXMLBuilder
name
- String attribute names
- CharSequence attribute value or null for no valuepublic SimpleXMLBuilder close()
SimpleXMLBuilder
close
in interface SimpleXMLBuilder
public SimpleXMLBuilder getNested() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
SimpleXMLBuilder.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 SimpleXMLBuilder
java.lang.UnsupportedOperationException
public SimpleXMLBuilder appendParent() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
appendParent
in interface SimpleXMLBuilder
java.lang.UnsupportedOperationException
public SimpleXMLBuilder getParent()
SimpleXMLBuilder
getParent
in interface SimpleXMLBuilder
public boolean setEscapeUnicode(boolean escape_unicode)
SimpleXMLBuilder
setEscapeUnicode
in interface SimpleXMLBuilder