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.

  • Constructor Details

    • 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(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 Details

    • setTextContent

      public void setTextContent(String bp_cont) throws X400APIException
      Set the text content of this IA5 bodypart
      Parameters:
      bp_cont -
      Throws:
      X400APIException
    • getTextContent

      public String getTextContent() throws X400APIException
      Returns the text content of this IA5 bodypart
      Throws:
      X400APIException
    • getStringRepresentation

      public 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 -