org.opencrx.application.uses.net.freeutils.tnef
Class MAPIPropName

java.lang.Object
  extended by org.opencrx.application.uses.net.freeutils.tnef.MAPIPropName

public class MAPIPropName
extends Object

The MAPIPropName class encapsulates the name of a named MAPI property. A MAPI Property name consists of a GUID, as well as either a 32-bit identifier or a String.

Since:
2003-07-25
Author:
Amichai Rothman

Field Summary
static int MNID_ID
          MAPI property name type constant.
static int MNID_STRING
          MAPI property name type constant.
 
Constructor Summary
MAPIPropName(GUID guid, long ID)
          Constructs a MAPIPropName containing given values.
MAPIPropName(GUID guid, String name)
          Constructs a MAPIPropName containing given values
MAPIPropName(RawInputStream data)
          Constructs a MAPIPropName using the given TNEF stream.
 
Method Summary
 boolean equals(Object o)
          Returns whether this MAPIPropName is identical to the given MAPIPropName.
 GUID getGUID()
          Gets the MAPIPropName GUID.
 long getID()
          Gets the MAPIPropName ID.
 String getName()
          Gets the MAPIPropName name.
protected  int getRawLength()
          Gets the raw data length (in bytes) of this instance.
 int getType()
          Gets the MAPIPropName type.
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MNID_ID

public static final int MNID_ID
MAPI property name type constant.

See Also:
Constant Field Values

MNID_STRING

public static final int MNID_STRING
MAPI property name type constant.

See Also:
Constant Field Values
Constructor Detail

MAPIPropName

public MAPIPropName(RawInputStream data)
             throws IOException
Constructs a MAPIPropName using the given TNEF stream.

Parameters:
data - the TNEF stream containing the property name data
Throws:
IOException - if the stream end is reached, or if an I/O error occurs

MAPIPropName

public MAPIPropName(GUID guid,
                    long ID)
Constructs a MAPIPropName containing given values.

Parameters:
guid - the property GUID
ID - the property ID

MAPIPropName

public MAPIPropName(GUID guid,
                    String name)
Constructs a MAPIPropName containing given values

Parameters:
guid - the property GUID
name - the property name
Method Detail

getGUID

public GUID getGUID()
Gets the MAPIPropName GUID.

Returns:
the MAPIPropName GUID

getType

public int getType()
Gets the MAPIPropName type.

Returns:
the MAPIPropName type

getID

public long getID()
Gets the MAPIPropName ID.

Returns:
the MAPIPropName ID

getName

public String getName()
Gets the MAPIPropName name.

Returns:
the MAPIPropName name

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object

equals

public boolean equals(Object o)
Returns whether this MAPIPropName is identical to the given MAPIPropName.

Overrides:
equals in class Object
Returns:
true if this object is the same as the obj argument; false otherwise

hashCode

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

Overrides:
hashCode in class Object
Returns:
a hash code value for this object

getRawLength

protected int getRawLength()
Gets the raw data length (in bytes) of this instance.

Returns:
the raw data length (in bytes) of this instance


This software is published under the BSD license. Copyright © 2003-2012, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.