Package com.isode.x400.highlevel
Class BodypartIA5Text
- java.lang.Object
-
- com.isode.x400.highlevel.Bodypart
-
- com.isode.x400.highlevel.BodypartIA5Text
-
public class BodypartIA5Text extends Bodypart
This class represents a IA5Text bodypart.When creating an instance of this class, you must provide a string with the content. You must ensure that the content only contains valid IA5 characters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.isode.x400.highlevel.Bodypart
Bodypart.Bodypart_Type
-
-
Field Summary
-
Fields inherited from class com.isode.x400.highlevel.Bodypart
bodypart_size, bodypart_type
-
-
Constructor Summary
Constructors Constructor Description BodypartIA5Text(BodyPart bp_obj)
Create a new IA5 bodypart, based on an existing bodypart object, for example, one read from an existing message.BodypartIA5Text(java.lang.String bp_cont)
Create a new IA5 bodypart, using the String provided for the content Note that this method doesn't check that content provided contains only valid IA5 characters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRepertoire()
Returns the IA5 repertoirejava.lang.String
getStringRepresentation()
Get the string of message bodypart.java.lang.String
getTextContent()
Returns the text content of this IA5 bodypartvoid
setRepertoire(int repertoire)
Sets the IA5 repertoirevoid
setTextContent(java.lang.String bp_cont)
Set the text content of this IA5 bodypart-
Methods inherited from class com.isode.x400.highlevel.Bodypart
getBodypartObject, getByteParam, getIntParam, getSize, getStringParam, getType, getTypeAsString, saveBP, setByteParam, setIntParam, setSize, setStringParam
-
-
-
-
Constructor Detail
-
BodypartIA5Text
public BodypartIA5Text(BodyPart bp_obj) throws X400APIException
Create a new IA5 bodypart, based on an existing bodypart object, for example, one read from an existing message.- Parameters:
bp_obj
-- Throws:
X400APIException
-
BodypartIA5Text
public BodypartIA5Text(java.lang.String bp_cont) throws X400APIException
Create a new IA5 bodypart, using the String provided for the content Note that this method doesn't check that content provided contains only valid IA5 characters.- Throws:
X400APIException
-
-
Method Detail
-
setTextContent
public void setTextContent(java.lang.String bp_cont) throws X400APIException
Set the text content of this IA5 bodypart- Parameters:
bp_cont
-- Throws:
X400APIException
-
getTextContent
public java.lang.String getTextContent() throws X400APIException
Returns the text content of this IA5 bodypart- Throws:
X400APIException
-
getStringRepresentation
public java.lang.String getStringRepresentation() throws X400APIException
Get the string of message bodypart. For this bodypart type, this is equivalent to getTextContent().- Throws:
X400APIException
-
getRepertoire
public int getRepertoire()
Returns the IA5 repertoire- Returns:
- IA5 repertoire
-
setRepertoire
public void setRepertoire(int repertoire)
Sets the IA5 repertoire- Parameters:
repertoire
-
-
-