public class Body
extends java.lang.Object
| Constructor and Description |
|---|
Body()
Initializes a new instance of the Body class.
|
Body(BodyType type)
Initializes a new instance of the Body class.
|
Body(java.lang.String text)
Initializes a new instance of the Body class.
|
Body(java.lang.String text,
BodyType type)
Initializes a new instance of the Body class.
|
Body(java.lang.String text,
BodyType type,
boolean isTruncated)
Initializes a new instance of the Body class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Gets plain body text.
|
BodyType |
getType()
Gets how the item body is stored in the item.
|
boolean |
isTruncated()
Checks if is truncated.
|
void |
setText(java.lang.String text)
Sets plain body text.
|
void |
setTruncated(boolean isTruncated)
Sets the truncated.
|
void |
setType(BodyType type)
Sets how the item body is stored in the item.
|
java.lang.String |
toString()
Converts the value of the current Body object to its equivalent string representation.
|
public Body()
public Body(java.lang.String text)
text - the textpublic Body(BodyType type)
type - the typepublic Body(java.lang.String text,
BodyType type)
text - the texttype - the typepublic Body(java.lang.String text,
BodyType type,
boolean isTruncated)
text - the texttype - the typeisTruncated - the is truncatedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
public void setText(java.lang.String text)
text - the new textpublic BodyType getType()
public void setType(BodyType type)
type - the new typepublic boolean isTruncated()
public void setTruncated(boolean isTruncated)
isTruncated - the new truncated