All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xml.XMLUtil

com.kvisco.xml.XMLUtil

public class XMLUtil
A utility class for parsing XML Namespaces and Locales

Author:
Keith Visco

Variable Index

 o EMPTY_STRING
 o LOCAL_SEP
 o NAME_SPACE_SEP
 o XMLNS

Constructor Index

 o XMLUtil()

Method Index

 o getLocale(String)
Creates a new Locale base on the value of the lang attribute
 o getLocalPart(String)
Returns the local part of the qualified XML name
 o getNameSpace(String)
Returns the namespace part of the qualified XML name
 o isWhitespace(String)
Returns true if the given String contains only whitespace characters

Variables

 o XMLNS
 public static final String XMLNS
 o LOCAL_SEP
 public static final char LOCAL_SEP
 o NAME_SPACE_SEP
 public static final char NAME_SPACE_SEP
 o EMPTY_STRING
 public static final String EMPTY_STRING

Constructors

 o XMLUtil
 public XMLUtil()

Methods

 o getLocale
 public static Locale getLocale(String xmlLang)
Creates a new Locale base on the value of the lang attribute

Parameters:
lang - the lang attribute to use when creating a Locale
Returns:
the Local base on the lang attribute
 o getLocalPart
 public static String getLocalPart(String qName)
Returns the local part of the qualified XML name

Parameters:
qName - the qualified XML name
Returns:
the local part of the qualified XML name
 o getNameSpace
 public static String getNameSpace(String qName)
Returns the namespace part of the qualified XML name

Parameters:
qName - the qualified XML name
Returns:
the namespace part of the qualified XML name
 o isWhitespace
 public static boolean isWhitespace(String text)
Returns true if the given String contains only whitespace characters

Returns:
true if the given String contains only whitespace characters, otherwise false.

All Packages  Class Hierarchy  This Package  Previous  Next  Index