Class StyleNameRef

    • Constructor Detail

      • StyleNameRef

        public StyleNameRef​(String styleNameRef)
                     throws IllegalArgumentException
        Construct StyleNameRef by the parsing the given string
        Parameters:
        styleNameRef - The String to be parsed into StyleNameRef
        Throws:
        IllegalArgumentException - if the given argument is not a valid StyleNameRef
    • Method Detail

      • toString

        public String toString()
        Returns a String Object representing this StyleNameRef's value
        Overrides:
        toString in class Object
        Returns:
        return a string representation of the value of this StyleNameRef object
      • valueOf

        public static StyleNameRef valueOf​(String stringValue)
                                    throws IllegalArgumentException
        Returns a StyleNameRef instance representing the specified String value
        Parameters:
        stringValue - a String value which can construct an OdfStyleNameRef
        Returns:
        a StyleNameRef instance representing stringValue
        Throws:
        IllegalArgumentException
      • isValid

        public static boolean isValid​(String stringValue)
        check if the specified String is a valid styleNameRef data type
        Parameters:
        stringValue - the value to be tested
        Returns:
        true if the value of argument is valid for styleNameRef data type false otherwise