Class XMLUtil
java.lang.Object
org.exolab.adaptx.xml.XMLUtil
A utility class for parsing XML Namespaces and Locales
- Author:
- Keith Visco
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleCreates a new Locale base on the value of the lang attributestatic StringgetLocalPart(String qName) Returns the local part of the qualified XML namestatic StringgetNameSpacePrefix(String qName) Returns the namespace part of the qualified XML namestatic booleanisWhitespace(char[] chars, int start, int length) Returns true if the given String contains only whitespace charactersstatic booleanisWhitespace(String text) Returns true if the given String contains only whitespace characters
-
Field Details
-
XMLNS
- See Also:
-
LOCAL_SEP
public static final char LOCAL_SEP- See Also:
-
NAME_SPACE_SEP
public static final char NAME_SPACE_SEP- See Also:
-
EMPTY_STRING
- See Also:
-
-
Constructor Details
-
XMLUtil
public XMLUtil()
-
-
Method Details
-
getLocale
-
getLocalPart
-
getNameSpacePrefix
-
isWhitespace
Returns true if the given String contains only whitespace characters- Returns:
- true if the given String contains only whitespace characters, otherwise false.
-
isWhitespace
public static boolean isWhitespace(char[] chars, int start, int length) Returns true if the given String contains only whitespace characters- Returns:
- true if the given String contains only whitespace characters, otherwise false.
-