Package com.isode.x400.highlevel
Class BodypartIA5Text
java.lang.Object
com.isode.x400.highlevel.Bodypart
com.isode.x400.highlevel.BodypartIA5Text
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
ConstructorsConstructorDescriptionBodypartIA5Text(BodyPart bp_obj) Create a new IA5 bodypart, based on an existing bodypart object, for example, one read from an existing message.BodypartIA5Text(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
Modifier and TypeMethodDescriptionintReturns the IA5 repertoireGet the string of message bodypart.Returns the text content of this IA5 bodypartvoidsetRepertoire(int repertoire) Sets the IA5 repertoirevoidsetTextContent(String bp_cont) Set the text content of this IA5 bodypartMethods inherited from class com.isode.x400.highlevel.Bodypart
getBodypartObject, getByteParam, getIntParam, getSize, getStringParam, getType, getTypeAsString, saveBP, setByteParam, setIntParam, setSize, setStringParam
-
Constructor Details
-
BodypartIA5Text
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
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 Details
-
setTextContent
Set the text content of this IA5 bodypart- Parameters:
bp_cont-- Throws:
X400APIException
-
getTextContent
Returns the text content of this IA5 bodypart- Throws:
X400APIException
-
getStringRepresentation
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-
-