Drools :: Core 6.0.0.Beta5

org.drools.core.spi
Class MockObjectType

java.lang.Object
  extended by org.drools.core.spi.MockObjectType
All Implemented Interfaces:
Externalizable, Serializable, ObjectType

public class MockObjectType
extends Object
implements ObjectType

Java class semantics ObjectType.

Version:
$Id: MockObjectType.java,v 1.1 2005/07/26 01:06:34 mproctor Exp $
See Also:
Serialized Form

Constructor Summary
MockObjectType()
           
MockObjectType(boolean matches)
          Construct.
 
Method Summary
 ValueType getValueType()
           
 boolean isAssignableFrom(Object object)
           
 boolean isAssignableFrom(ObjectType objectType)
           
 boolean isEvent()
          Returns true if the object type represented by this object is an event object type.
 boolean matches(Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
 void readExternal(ObjectInput in)
           
 void setEvent(boolean isEvent)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockObjectType

public MockObjectType()

MockObjectType

public MockObjectType(boolean matches)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

matches

public boolean matches(Object object)
Determine if the passed Object belongs to the object type defined by this objectType instance.

Parameters:
object - The Object to test.
Returns:
true if the Object matches this object type, else false.

isAssignableFrom

public boolean isAssignableFrom(Object object)

isAssignableFrom

public boolean isAssignableFrom(ObjectType objectType)
Specified by:
isAssignableFrom in interface ObjectType

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface ObjectType

isEvent

public boolean isEvent()
Description copied from interface: ObjectType
Returns true if the object type represented by this object is an event object type. False otherwise.

Specified by:
isEvent in interface ObjectType
Returns:

setEvent

public void setEvent(boolean isEvent)

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.