org.jomc.model
Class Texts

Package class diagram package Texts
java.lang.Object
  extended by org.jomc.model.Texts
All Implemented Interfaces:
Cloneable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Texts
extends Object
implements Cloneable

List of texts.

See Also:
Text

Field Summary
protected  String defaultLanguage
           
protected  List<Text> text
           
 
Constructor Summary
Texts()
          Creates a new Texts instance.
Texts(Texts o)
          Creates a new Texts instance by deeply copying a given instance.
 
Method Summary
 Texts clone()
          Creates and returns a deep copy of this object.
private static void copyText(List<Text> source, List<Text> target)
          Copies all values of property Text deeply.
 String getDefaultLanguage()
          Default text of this list.
 List<Text> getText()
          Gets the value of the text property.
 Text getText(String language)
          Gets a text for a given language.
 void setDefaultLanguage(String value)
          Sets the value of the defaultLanguage property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Text> text

defaultLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String defaultLanguage
Constructor Detail

Texts

public Texts()
Creates a new Texts instance.


Texts

public Texts(Texts o)
Creates a new Texts instance by deeply copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getText

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Text> getText()
Gets the value of the text property.

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


getDefaultLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getDefaultLanguage()
Default text of this list.

Returns:
possible object is String

setDefaultLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setDefaultLanguage(String value)
Sets the value of the defaultLanguage property.

Parameters:
value - allowed object is String

copyText

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
private static void copyText(List<Text> source,
                                                        List<Text> target)
Copies all values of property Text deeply.

Parameters:
target - The target to copy source to.
source - The source to copy from.
Throws:
NullPointerException - if source or target is null.

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-09-21T10:35:38+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Texts clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class Object
Returns:
A deep copy of this object.

getText

public Text getText(String language)
Gets a text for a given language.

Parameters:
language - The language of the text to return.
Returns:
The text with language language or the default text, if no text matching language is found.
Throws:
NullPointerException - if language is null.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.