Class 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 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
      • 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 -