Package org.odftoolkit.odfdom.type
Class URIorSafeCURIE
java.lang.Object
org.odftoolkit.odfdom.type.URIorSafeCURIE
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type URIorSafeCURIE
This value type stores either an anyURI or a SafeCURIE
-
Constructor Summary
ConstructorDescriptionConstruct URIorSafeCURIE without the initialized valueCopy Construct URIorSafeCURIE with the same value of val -
Method Summary
Modifier and TypeMethodDescriptionget the anyURI value of this URIorSafeCURIE Objectget the SafeCURIE value of this URIorSafeCURIE Objectboolean
get the internal value type of URIorSafeCURIE Objectstatic boolean
check if the specified XMLGregorianCalendar URIorSafeCURIE is a valid URIorSafeCURIE data typevoid
set uri value for URIorSafeCURIE Objectvoid
setSafeCURIE
(String curie) set String value for URIorSafeCURIE ObjecttoString()
Returns a String Object representing this URIorSafeCURIE's valuestatic URIorSafeCURIE
Returns an URIorSafeCURIE instance representing the specified String value
-
Constructor Details
-
URIorSafeCURIE
public URIorSafeCURIE()Construct URIorSafeCURIE without the initialized value -
URIorSafeCURIE
Copy Construct URIorSafeCURIE with the same value of val- Parameters:
val
- the copied URIorSafeCURIE object- Throws:
IllegalArgumentException
- if the given argument is not a valid URIorSaveCURIE
-
-
Method Details
-
setAnyURI
set uri value for URIorSafeCURIE Object- Parameters:
uri
- the anyURI value which is set to URIorSafeCURIE Object
-
setSafeCURIE
set String value for URIorSafeCURIE Object- Parameters:
curie
- the SafeCURIE value which is set to URIorSafeCURIE Object
-
isSafeCURIE
public boolean isSafeCURIE()get the internal value type of URIorSafeCURIE Object- Returns:
- true if the internal value type is anyURI false if the internal value type is SafeCURIE
-
getAnyURI
get the anyURI value of this URIorSafeCURIE Object- Returns:
- the anyURI value of this URIorSafeCURIE Object
-
getSafeCURIE
get the SafeCURIE value of this URIorSafeCURIE Object- Returns:
- the SafeCURIE value of this URIorSafeCURIE Object
-
toString
Returns a String Object representing this URIorSafeCURIE's value -
valueOf
Returns an URIorSafeCURIE instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return an URIorSafeCURIE instance representing stringValue
- Throws:
IllegalArgumentException
- if the given argument is not a valid URIorSaveCURIE
-
isValid
check if the specified XMLGregorianCalendar URIorSafeCURIE is a valid URIorSafeCURIE data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for URIorSafeCURIE data type false otherwise
-