
@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public class Texts
extends Object
implements Cloneable
Java class for Texts complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Texts">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://jomc.org/model}text" maxOccurs="unbounded"/>
</sequence>
<attribute name="defaultLanguage" use="required" type="{http://jomc.org/model}Language" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultLanguage |
protected List<Text> |
text |
| Constructor and Description |
|---|
Texts()
Creates a new
Texts instance. |
Texts(Texts o)
Creates a new
Texts instance by deeply copying a given Texts instance. |
| Modifier and Type | Method and Description |
|---|---|
Texts |
clone()
Creates and returns a deep copy of this object.
|
String |
getDefaultLanguage()
Default text of this list.
|
List<Text> |
getText()
Gets the value of the text property.
|
Text |
getText(Locale locale)
Gets a text for a given locale from the list of texts.
|
Text |
getText(String language)
Gets a text for a given language from the list of texts.
|
void |
setDefaultLanguage(String value)
Sets the value of the defaultLanguage property.
|
@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected List<Text> text
@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected String defaultLanguage
public Texts()
Texts instance.public Texts(Texts o)
Texts instance by deeply copying a given Texts instance.o - The instance to copy.NullPointerException - if o is null.@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public List<Text> getText()
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 text property.
For example, to add a new item, do as follows:
getText().add(newItem);
Objects of the following type(s) are allowed in the list
Text
@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getDefaultLanguage()
String@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public void setDefaultLanguage(String value)
value - allowed object is
String@Generated(value="com.sun.tools.xjc.Driver",
date="2016-11-01T03:16:37+01:00",
comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public Texts clone()
public Text getText(String language)
language - The language of the text to return.NullPointerException - if language is null.getText(),
getDefaultLanguage(),
Text.getLanguage()public Text getText(Locale locale)
locale - The locale of the text to return.NullPointerException - if locale is null.getText(),
getDefaultLanguage(),
Text.getLanguage()Copyright © 2005–2016 The JOMC Project. All rights reserved.