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-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Texts
extends Object
implements Cloneable

List of texts.

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>
 


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 Texts instance.
 
Method Summary
 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(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-12-07T03:06:36+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-12-07T03:06:36+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 Texts instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getText

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+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-12-07T03:06:36+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-12-07T03:06:36+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

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+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.