Class TextType
java.lang.Object
dev.jcputney.elearning.parser.input.xapi.types.TextType
- All Implemented Interfaces:
Serializable
Represents a localized text element, supporting multiple languages via langstring elements.
Defined in the schema as:
<xs:complexType name="textType">
<xs:sequence>
<xs:element name="langstring" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="lang" type="xs:language"/>
<xs:attributeGroup ref="anyAttribute"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:group ref="anyElement"/>
</xs:sequence>
<xs:attributeGroup ref="anyAttribute"/>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTextType()Default constructor for theTextTypeclass.TextType(List<LangString> strings) Constructs a newTextTypeinstance with a list ofLangStringelements. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the list of localized strings associated with this object.inthashCode()voidsetStrings(List<LangString> strings) Sets the list of localized strings for this object.
-
Constructor Details
-
TextType
Constructs a newTextTypeinstance with a list ofLangStringelements.- Parameters:
strings- a list ofLangStringinstances representing localized text elements, where each element includes a string value and an optional language attribute
-
TextType
public TextType()Default constructor for theTextTypeclass.Initializes a new instance of the
TextTypeclass with default values. This constructor does not perform any operations and is used primarily for object instantiation without initial data.
-
-
Method Details
-
getStrings
Retrieves the list of localized strings associated with this object.- Returns:
- a list of
LangStringinstances, each representing a localized string with an optional language attribute
-
setStrings
Sets the list of localized strings for this object.- Parameters:
strings- a list ofLangStringinstances, each representing a localized string with its associated language
-
equals
-
hashCode
public int hashCode()
-