Package dev.orne.i18n.jaxb
Class XmlI18nString
java.lang.Object
dev.orne.i18n.jaxb.XmlI18nString
- All Implemented Interfaces:
Serializable
@API(status=INTERNAL,
since="0.1")
public class XmlI18nString
extends Object
implements Serializable
XML representation of I18N string.
This class is based on class generated by JAXB Reference Implementation v2.3.2, but modified to correct deficiencies caused by Issue 1108.
The following schema fragment specifies the expected content contained within this class.
<complexType name="string"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://orne.dev/i18n/}translation" maxOccurs="unbounded"/> </sequence> </restriction> </complexContent> </complexType>
- Since:
- 0.1
- Version:
- 1.0, 2021-02
- Author:
- (w) Iker Hernaez
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the contents of the I18N string.
-
Constructor Details
-
XmlI18nString
public XmlI18nString()Creates a new instance.
-
-
Method Details
-
getContent
Gets the contents of the I18N string.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the content property.For example, to add a new item, do as follows:
getContent().add(newItem);
Objects of the following type(s) are allowed in the list:
- Returns:
- The contents of the I18N string
-