Class 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 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
        Overrides:
        toString in class Object
        Returns:
        return a string representation of the value of this URIorSafeCURIE object
      • 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