org.odftoolkit.odfdom.type
public class AnyURI extends Object implements OdfDataType
Constructor and Description |
---|
AnyURI(URI uri)
Construct an newly AnyURI object that represents the specified URI value
|
Modifier and Type | Method and Description |
---|---|
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
|
public AnyURI(URI uri) throws IllegalArgumentException
uri
- the value to be represented by the AnyURI ObjectIllegalArgumentException
- if the given argument is not a valid AnyURIpublic String toString()
public static AnyURI valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String valueIllegalArgumentException
- if the given argument is not a valid AnyURIpublic URI getURI()
public static boolean isValid(URI uri)
uri
- the value to be testedpublic 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)
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.