IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.common.core.util
Interface INullObject

All Known Implementing Classes:
EMFEventType

public interface INullObject

A specification of classes that implement the Null Object pattern. Implementors of this interface have a unique instance that represents a pointer-safe null. The interpretation of null may vary; it may mean absence of a value, invalid value, etc. This pattern combines neatly with the EMFEventType to implement type-safe and null-pointer-safe enumerations.

API clients should not implement this interface.


Method Summary
 boolean isNull()
          Queries whether this is the null instance of a given implementation class.
 

Method Detail

isNull

public boolean isNull()
Queries whether this is the null instance of a given implementation class. The null instance must be unique.

Returns:
true if I am the special "null" instance; false, otherwise

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.