| java.lang.Object com.sun.xml.bind.v2.schemagen.Util
Util | final public class Util (Code) | | TODO: JAX-WS dependes on this class - consider moving it somewhere more stable, Notify JAX-WS before modifying anything...
Other miscellaneous utility methods.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
equal | public static boolean equal(String s, String t)(Code) | | determine if two Strings are iqual allowing null values
Parameters: s - string 1 Parameters: t - string 2 true iff the strings are equal, false if they aren't equal or either ofthem are null. |
equalsIgnoreCase | public static boolean equalsIgnoreCase(String s, String t)(Code) | | determine if two Strings are equal ignoring case allowing null values
Parameters: s - string 1 Parameters: t - string 2 true iff the given strings are equal ignoring case, false if they aren'tequal or either of them are null. |
escapeURI | public static String escapeURI(String s)(Code) | | Escape any characters that would cause the single arg constructor
of java.net.URI to complain about illegal chars.
Parameters: s - source string to be escaped |
getParentUriPath | public static String getParentUriPath(String uriPath)(Code) | | Calculate the parent URI path of the given URI path.
Parameters: uriPath - the uriPath (as returned by java.net.URI#getPath() the parent URI path of the given URI path |
normalizeUriPath | public static String normalizeUriPath(String uriPath)(Code) | | Calculate the normalized form of the given uriPath.
For example:
/a/b/c/ -> /a/b/c/
/a/b/c -> /a/b/
/a/ -> /a/
/a -> /
Parameters: uriPath - path of a URI (as returned by java.net.URI#getPath() the normalized uri path |
|
|