org.csapi.jr.se.mmm
Class BodyPart

java.lang.Object
  extended byorg.csapi.jr.se.mmm.BodyPart
All Implemented Interfaces:
java.io.Serializable

public final class BodyPart
extends java.lang.Object
implements java.io.Serializable

Defines a sequence of data elements that specify a body part.

See Also:
Serialized Form

Constructor Summary
BodyPart()
          Creates a new BodyPart instance.
BodyPart(BodyPartDescription _bodyPartHeader, byte[] _bodyPartContent)
          Creates a new BodyPart instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 byte[] getBodyPartContent()
          This method returns a bodyPartContent.
 BodyPartDescription getBodyPartHeader()
          This method returns a bodyPartHeader.
 int hashCode()
          Returns a hashcode value for the object.
 void setBodyPartContent(byte[] bodyPartContent)
          This method sets a bodyPartContent.
 void setBodyPartHeader(BodyPartDescription bodyPartHeader)
          This method sets a bodyPartHeader.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyPart

public BodyPart()
Creates a new BodyPart instance.


BodyPart

public BodyPart(BodyPartDescription _bodyPartHeader,
                byte[] _bodyPartContent)
Creates a new BodyPart instance.

Parameters:
_bodyPartHeader - Specifies details about the body part that are needed in order to interpret the content correctly.
_bodyPartContent - Contains the content of a body part.
Method Detail

getBodyPartHeader

public BodyPartDescription getBodyPartHeader()
This method returns a bodyPartHeader.

Returns:
a org.csapi.jr.se.mmm.BodyPartDescription value

getBodyPartContent

public byte[] getBodyPartContent()
This method returns a bodyPartContent.

Returns:
a byte[] value

setBodyPartHeader

public void setBodyPartHeader(BodyPartDescription bodyPartHeader)
This method sets a bodyPartHeader.


setBodyPartContent

public void setBodyPartContent(byte[] bodyPartContent)
This method sets a bodyPartContent.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.


hashCode

public int hashCode()
Returns a hashcode value for the object.