Class XMLUtil
- java.lang.Object
-
- org.apache.activemq.artemis.utils.XMLUtil
-
public final class XMLUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSIDER_OS_ENV_PROP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertEquivalent(Node node, Node node2)static StringelementToString(Node n)static URLfindResource(String resourceName)static StringgetTextContent(Node n)Note: if the content is another element or set of elements, it returns a string representation of the hierarchy.static booleanparseBoolean(Node elem)static doubleparseDouble(Node elem)static intparseInt(Node elem)static intparseInt(Node elem, String value)static longparseLong(Node elem)static ElementreaderToElement(Reader r)static StringreaderToString(Reader r)static StringreplaceSystemPropsInString(String xml)static DocumentreplaceSystemPropsInXml(Document doc)static ElementstreamToElement(InputStream inputStream)static ElementstringToElement(String s)static StringstripCDATA(String s)static ElementurlToElement(URL url)static voidvalidate(Node node, String schemaFile)
-
-
-
Field Detail
-
CONSIDER_OS_ENV_PROP
public static String CONSIDER_OS_ENV_PROP
-
-
Method Detail
-
streamToElement
public static Element streamToElement(InputStream inputStream) throws Exception
- Throws:
Exception
-
getTextContent
public static String getTextContent(Node n)
Note: if the content is another element or set of elements, it returns a string representation of the hierarchy.
-
parseLong
public static long parseLong(Node elem)
-
parseInt
public static int parseInt(Node elem)
-
parseBoolean
public static boolean parseBoolean(Node elem)
-
parseDouble
public static double parseDouble(Node elem)
-
validate
public static void validate(Node node, String schemaFile) throws Exception
- Throws:
Exception
-
-