Class Language

java.lang.Object
org.odftoolkit.odfdom.type.Language
All Implemented Interfaces:
OdfDataType

public class Language extends Object implements OdfDataType
This class represents the in OpenDocument format used data type language
  • Constructor Details

    • Language

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

    • toString

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

      public static Language valueOf(String stringValue) throws IllegalArgumentException
      Returns a Language instance representing the specified String value
      Parameters:
      stringValue - a String value
      Returns:
      return a Language instance representing stringValue
      Throws:
      IllegalArgumentException - if the given argument is not a valid Language
    • isValid

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