Package org.odftoolkit.odfdom.type
Class AnyURI
java.lang.Object
org.odftoolkit.odfdom.type.AnyURI
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type anyURI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getURI()
get java.net.URI from AnyURIstatic boolean
check if the specified URI instance is a valid anyURI data typetoString()
Returns a String Object representing this AnyURI's valuestatic AnyURI
Returns an AnyURI instance representing the specified String value
-
Constructor Details
-
AnyURI
Construct an newly AnyURI object that represents the specified URI value- Parameters:
uri
- the value to be represented by the AnyURI Object- Throws:
IllegalArgumentException
- if the given argument is not a valid AnyURI
-
-
Method Details
-
toString
Returns a String Object representing this AnyURI's value -
valueOf
Returns an AnyURI instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return an AnyURI instance representing stringValue
- Throws:
IllegalArgumentException
- if the given argument is not a valid AnyURI
-
getURI
get java.net.URI from AnyURI- Returns:
- java.net.URI returned from this AnyURI
-
isValid
check if the specified URI instance is a valid anyURI data type- Parameters:
uri
- the value to be tested- Returns:
- true if the value of argument is valid for anyURI data type false otherwise
-
encodePath
Encode path to be used as path component segments in URI.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.
- Parameters:
path
- A path that is not using URI encoding rules.- Returns:
- A path that is using URI encoding rules.
- See Also:
-
decodePath
Decode path component segments in URI.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.
- Parameters:
path
- A path that is using URI encoding rules.- Returns:
- A path that is not using URI encoding rules.
- See Also:
-