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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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 from the list of texts.
 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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected List<Text> text

defaultLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getDefaultLanguage()
Default text of this list.

Returns:
possible object is String

setDefaultLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
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 from the list of texts.

Parameters:
language - The language of the text to return.
Returns:
The first matching text or the default text, if no such text is found.
Throws:
NullPointerException - if language is null.
See Also:
getText(), getDefaultLanguage(), Text.getLanguage()


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.