
@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 Text
extends Object
implements Cloneable
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>
| Modifier and Type | Field and Description |
|---|---|
protected String |
language |
protected String |
type |
protected String |
value |
| Constructor and Description |
|---|
Text()
Creates a new
Text instance. |
Text(Text o)
Creates a new
Text instance by deeply copying a given Text instance. |
| Modifier and Type | Method and Description |
|---|---|
Text |
clone()
Creates and returns a deep copy of this object.
|
String |
getJavadocComment(String lineSeparator,
String indentation)
Formats the text to a Javadoc comment.
|
String |
getLanguage()
The language key of this text.
|
javax.activation.MimeType |
getMimeType()
Gets the mime-type of the 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.
|
@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 value
@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 language
public Text()
Text instance.public Text(Text o)
Text instance by deeply copying a given Text 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 String getValue()
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 setValue(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 String getLanguage()
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 setLanguage(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 String getType()
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 setType(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 Text clone()
public javax.activation.MimeType getMimeType() throws ModelObjectException
ModelObjectException - if compiling the type to a MimeType fails.getType()public String getJavadocComment(String lineSeparator, String indentation) throws ModelObjectException
lineSeparator - String to use for separating lines.indentation - String to prepend any lines with.null.NullPointerException - if lineSeparator or indentation is null.ModelObjectException - if compiling the referenced type to a MimeType fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.