Package org.odftoolkit.odfdom.type
Class URIorSafeCURIE
- java.lang.Object
-
- org.odftoolkit.odfdom.type.URIorSafeCURIE
-
- All Implemented Interfaces:
OdfDataType
public class URIorSafeCURIE extends Object implements OdfDataType
This class represents the in OpenDocument format used data type URIorSafeCURIE This value type stores either an anyURI or a SafeCURIE
-
-
Constructor Summary
Constructors Constructor Description URIorSafeCURIE()
Construct URIorSafeCURIE without the initialized valueURIorSafeCURIE(URIorSafeCURIE val)
Copy Construct URIorSafeCURIE with the same value of val
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getAnyURI()
get the anyURI value of this URIorSafeCURIE ObjectString
getSafeCURIE()
get the SafeCURIE value of this URIorSafeCURIE Objectboolean
isSafeCURIE()
get the internal value type of URIorSafeCURIE Objectstatic boolean
isValid(String stringValue)
check if the specified XMLGregorianCalendar URIorSafeCURIE is a valid URIorSafeCURIE data typevoid
setAnyURI(URI uri)
set uri value for URIorSafeCURIE Objectvoid
setSafeCURIE(String curie)
set String value for URIorSafeCURIE ObjectString
toString()
Returns a String Object representing this URIorSafeCURIE's valuestatic URIorSafeCURIE
valueOf(String stringValue)
Returns an URIorSafeCURIE instance representing the specified String value
-
-
-
Constructor Detail
-
URIorSafeCURIE
public URIorSafeCURIE()
Construct URIorSafeCURIE without the initialized value
-
URIorSafeCURIE
public URIorSafeCURIE(URIorSafeCURIE val)
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 Detail
-
setAnyURI
public void setAnyURI(URI uri)
set uri value for URIorSafeCURIE Object- Parameters:
uri
- the anyURI value which is set to URIorSafeCURIE Object
-
setSafeCURIE
public void setSafeCURIE(String curie)
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
public URI getAnyURI()
get the anyURI value of this URIorSafeCURIE Object- Returns:
- the anyURI value of this URIorSafeCURIE Object
-
getSafeCURIE
public String getSafeCURIE()
get the SafeCURIE value of this URIorSafeCURIE Object- Returns:
- the SafeCURIE value of this URIorSafeCURIE Object
-
toString
public String toString()
Returns a String Object representing this URIorSafeCURIE's value
-
valueOf
public static URIorSafeCURIE valueOf(String stringValue) throws IllegalArgumentException
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
public static boolean isValid(String stringValue)
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
-
-