Class UnboundLangString

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

public final class UnboundLangString extends Object implements Serializable
Represents a list of language strings in LOM metadata. This type is used for fields that require multiple string values with language attributes.

 <xs:complexType name="unboundLangString">
   <xs:sequence>
     <xs:element name="string" type="langString" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • UnboundLangString

      public UnboundLangString()
      Default constructor for the UnboundLangString class.

      Initializes a new instance of the UnboundLangString class. This constructor performs no operations and is primarily used to create an object without any initial state or parameters.

    • UnboundLangString

      public UnboundLangString(List<LangString> langStrings)
      Constructs an instance of the UnboundLangString class with a specified list of LangString objects.
      Parameters:
      langStrings - the list of LangString objects to initialize the instance with; each LangString represents a string value and its associated language attributes
  • Method Details

    • getLangStrings

      public List<LangString> getLangStrings()
      Retrieves the list of language strings.
      Returns:
      a list of LangString objects representing strings with their associated language attributes
    • setLangStrings

      public void setLangStrings(List<LangString> langStrings)
      Sets the list of language strings associated with this instance.
      Parameters:
      langStrings - the list of LangString objects to set, with each object representing a string value and its associated language attributes
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object