|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.infohazard.maverick.util
Class XML

java.lang.Objectorg.infohazard.maverick.util.XML
- public class XML
- extends java.lang.Object
created January 27, 2002
- Version:
- $Revision: 1.8 $ $Date: 2003/10/27 11:00:56 $
| Field Summary | |
static java.lang.String |
ATTR_PARAM_NAME
The attribute for a parameter name |
static java.lang.String |
ATTR_VALUE
The attribute which represents the "value" of an element. |
protected static org.jdom.output.XMLOutputter |
outputter
|
static java.lang.String |
TAG_PARAM
The tag for a parameter node |
| Constructor Summary | |
XML()
|
|
| Method Summary | |
static java.lang.String |
escape(java.lang.String in)
Escapes any html characters in the input string. |
static java.util.Map |
getParams(org.jdom.Element node)
Extracts a set of param child nodes from the specified node. |
static java.lang.String |
getValue(org.jdom.Element node,
java.lang.String name)
Extracts the named value from the element, by checking (in order): |
static java.lang.String |
toString(org.jdom.Element node)
Converts the specified node (and subnodes) to a nice, pretty, html escaped XML string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ATTR_VALUE
public static final java.lang.String ATTR_VALUE
- The attribute which represents the "value" of an element.
- See Also:
- Constant Field Values
TAG_PARAM
public static final java.lang.String TAG_PARAM
- The tag for a parameter node
- See Also:
- Constant Field Values
ATTR_PARAM_NAME
public static final java.lang.String ATTR_PARAM_NAME
- The attribute for a parameter name
- See Also:
- Constant Field Values
outputter
protected static org.jdom.output.XMLOutputter outputter
| Constructor Detail |
XML
public XML()
| Method Detail |
getValue
public static java.lang.String getValue(org.jdom.Element node, java.lang.String name)
Extracts the named value from the element, by checking (in order):
- A system property whose name is constructed like this: "maverick." + node.getName() + "." + name
- An attribute with the specified name.
- The "value" attribute of a subelement with the specified name.
toString
public static java.lang.String toString(org.jdom.Element node)
- Converts the specified node (and subnodes) to a nice, pretty,
html escaped XML string.
escape
public static java.lang.String escape(java.lang.String in)
- Escapes any html characters in the input string.
getParams
public static java.util.Map getParams(org.jdom.Element node)
- Extracts a set of param child nodes from the specified node. Expects
that param nodes will look like:
<param name="theName" value="theValue"/>
|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.infohazard.maverick.util.XML