org.jinterop.dcom.core
Class JIPointer

java.lang.Object
  extended by org.jinterop.dcom.core.JIPointer
All Implemented Interfaces:
java.io.Serializable

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

Representation of a COM pointer.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
JIPointer(java.lang.Class value, boolean isReferenceTypePtr)
          Creates an instance of this class where the referent is of the type value.
JIPointer(java.lang.Object value)
          Creates an instance of this class where the referent is value.
JIPointer(java.lang.Object value, boolean isReferenceTypePtr)
          Creates an instance of this class where the referent is value.
 
Method Summary
 java.lang.Object getReferent()
          Returns the referent encapsulated by this pointer.
 java.lang.Integer getReferentIdentifier()
          Returns the referent identifier.
 boolean isNull()
          Returns status if this pointer is null.
 boolean isReference()
          Returns status whether this is a reference type pointer or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JIPointer

public JIPointer(java.lang.Class value,
                 boolean isReferenceTypePtr)
Creates an instance of this class where the referent is of the type value. Used when deserializing this pointer.

Parameters:
value - null is acceptable
isReferenceTypePtr - true if a referent identifier will not precede this ptr.

JIPointer

public JIPointer(java.lang.Object value,
                 boolean isReferenceTypePtr)
Creates an instance of this class where the referent is value. Used when serializing this pointer.

Parameters:
value - null is acceptable
isReferenceTypePtr - true if a referent Identifier will not precede this ptr.

JIPointer

public JIPointer(java.lang.Object value)
Creates an instance of this class where the referent is value. Used when serializing this pointer. This pointer is not of reference type.

Parameters:
value -
Method Detail

getReferent

public java.lang.Object getReferent()
Returns the referent encapsulated by this pointer.

Returns:

isReference

public boolean isReference()
Returns status whether this is a reference type pointer or not.

Returns:
true if this is a reference type pointer.

getReferentIdentifier

public java.lang.Integer getReferentIdentifier()
Returns the referent identifier.

Returns:

isNull

public boolean isNull()
Returns status if this pointer is null.

Returns:
true if the pointer is null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object