|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.owasp.validator.html.util.XMLUtil
public class XMLUtil
| Constructor Summary | |
|---|---|
XMLUtil()
|
|
| Method Summary | |
|---|---|
static String |
decode(String str)
Helper function for decode XML entities. |
static String |
encode(String str)
|
static String |
getAttributeValue(Element ele,
String attrName)
Helper function for quickly retrieving an attribute from a given element. |
static boolean |
getBooleanValue(Element ele,
String tagName)
Helper function for quickly retrieving an boolean value of a given XML element. |
static boolean |
getBooleanValue(Element ele,
String tagName,
boolean defaultValue)
Helper function for quickly retrieving an boolean value of a given XML element, with a default initialization value passed in a parameter. |
static int |
getIntValue(Element ele,
String tagName,
int defaultValue)
Helper function for quickly retrieving an integer value of a given XML element. |
static String |
getTextValue(Element ele,
String tagName)
Helper function for quickly retrieving a String value of a given XML element. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtil()
| Method Detail |
|---|
public static String getAttributeValue(Element ele,
String attrName)
ele - The document element from which to pull the attribute value.attrName - The name of the attribute.
public static int getIntValue(Element ele,
String tagName,
int defaultValue)
ele - The document element from which to pull the integer value.tagName - The name of the node.
public static String getTextValue(Element ele,
String tagName)
ele - The document element from which to pull the String value.tagName - The name of the node.
public static boolean getBooleanValue(Element ele,
String tagName)
ele - The document element from which to pull the boolean value.tagName - The name of the node.
public static boolean getBooleanValue(Element ele,
String tagName,
boolean defaultValue)
ele - The document element from which to pull the boolean value.tagName - The name of the node.defaultValue - The default value of the node if it's value can't be processed.
public static String decode(String str)
str - The XML-encoded String to decode.
public static String encode(String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||