org.jomc.model
Class Text

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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public class Text
extends Object
implements Cloneable

Model of text. The 'Text' type defines attributes 'language', 'type' and 'value'. Attribute 'language' holds the language key identifying the text in a set of texts. Attribute 'type' specifies a Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046. Attribute 'value' holds the text of the type corresponding to the language.

Java class for Text complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Text">
   <simpleContent>
     <extension base="<http://jomc.org/model>String">
       <attribute name="language" use="required" type="{http://jomc.org/model}Language" />
       <attribute name="type" type="{http://jomc.org/model}MimeType" default="text/plain" />
     </extension>
   </simpleContent>
 </complexType>
 


Field Summary
protected  String language
           
protected  String type
           
protected  String value
           
 
Constructor Summary
Text()
          Creates a new Text instance.
Text(Text o)
          Creates a new Text instance by deeply copying a given Text instance.
 
Method Summary
 Text clone()
          Creates and returns a deep copy of this object.
 String getLanguage()
          The language key of this text.
 String getType()
          The Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046.
 String getValue()
          Gets the value of the value property.
 void setLanguage(String value)
          Sets the value of the language property.
 void setType(String value)
          Sets the value of the type property.
 void setValue(String value)
          Sets the value of the value property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected String value

language

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected String language

type

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected String type
Constructor Detail

Text

public Text()
Creates a new Text instance.


Text

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

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

getValue

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getValue()
Gets the value of the value property.

Returns:
possible object is String

setValue

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public void setValue(String value)
Sets the value of the value property.

Parameters:
value - allowed object is String

getLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getLanguage()
The language key of this text.

Returns:
possible object is String

setLanguage

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public void setLanguage(String value)
Sets the value of the language property.

Parameters:
value - allowed object is String

getType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getType()
The Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046.

Returns:
possible object is String

setType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public void setType(String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-03-28T01:26:51+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public Text clone()
Creates and returns a deep copy of this object.

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


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.