Class SingleLangString

java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.SingleLangString
All Implemented Interfaces:
Serializable

public final class SingleLangString extends Object implements Serializable
Represents a single language string in LOM metadata. This type is used for fields that only require a single string value with a language attribute.

 <xs:complexType name="singleLangString">
   <xs:sequence>
     <xs:element name="string" type="langString"/>
   </xs:sequence>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • SingleLangString

      public SingleLangString()
      Default constructor for the SingleLangString class. Creates an empty instance of the SingleLangString class with no initial state. Primarily used for object instantiation without predefined data.
  • Method Details

    • getLangString

      public LangString getLangString()
      Retrieves the LangString object associated with this instance.
      Returns:
      the LangString representing a single string value with a language attribute
    • setLangString

      public void setLangString(LangString langString)
      Sets the LangString value for this instance.
      Parameters:
      langString - the LangString object to set, representing a string value with an associated language attribute
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object