|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.type.AnyURI
public class AnyURI
This class represents the in OpenDocument format used data type anyURI
Constructor Summary | |
---|---|
AnyURI(URI uri)
Construct an newly AnyURI object that represents the specified URI value |
Method Summary | |
---|---|
static String |
decodePath(String path)
Decode path component segments in URI. |
static String |
encodePath(String path)
Encode path to be used as path component segments in URI. |
URI |
getURI()
get java.net.URI from AnyURI |
static boolean |
isValid(URI uri)
check if the specified URI instance is a valid anyURI data type |
String |
toString()
Returns a String Object representing this AnyURI's value |
static AnyURI |
valueOf(String stringValue)
Returns an AnyURI instance representing the specified String value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnyURI(URI uri) throws IllegalArgumentException
uri
- the value to be represented by the AnyURI Object
IllegalArgumentException
- if the given argument is not a valid AnyURIMethod Detail |
---|
public String toString()
toString
in class Object
public static AnyURI valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String value
IllegalArgumentException
- if the given argument is not a valid AnyURIpublic URI getURI()
public static boolean isValid(URI uri)
uri
- the value to be tested
public static String encodePath(String path)
Creates a String that can be used as a sequence of one or more path components in an URI from a path that uses a slash character as a path separator and where the segements do not use any URI encoding rules.
The / characters (delimiting the individual path_segments) are left unchanged.
path
- A path that is not using URI encoding rules.
decodePath(String)
public static String decodePath(String path)
Creates a path that uses a slash character as a path separator and where the segments do not use any URI encoding from a String that is used as a sequence of one or more path components in an URI where the path segments do use URI encoding rules.
The / characters (delimiting the individual path_segments) are left unchanged.
path
- A path that is using URI encoding rules.
encodePath(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |