org.drools.base
Class ClassObjectType

java.lang.Object
  extended by org.drools.base.ClassObjectType
All Implemented Interfaces:
Externalizable, Serializable, ObjectType

public class ClassObjectType
extends Object
implements ObjectType, Externalizable

Java class semantics ObjectType.

Version:
$Id: ClassObjectType.java,v 1.5 2005/02/04 02:13:36 mproctor Exp $
See Also:
Serialized Form

Field Summary
static ClassObjectType Activation_ObjectType
           
protected  Class<?> cls
          Java object class.
protected  String clsName
           
static ClassObjectType DroolsQuery_ObjectType
           
static ClassObjectType InitialFact_ObjectType
           
static ClassObjectType Map_ObjectType
           
static ClassObjectType ObjectArray_ObjectType
           
protected  ValueType valueType
           
 
Constructor Summary
ClassObjectType()
           
ClassObjectType(Class<?> objectTypeClass)
          Creates a new class object type with shadow disabled.
ClassObjectType(Class<?> objectTypeClass, boolean isEvent)
          Creates a new class object type
 
Method Summary
 boolean equals(Object object)
          Determine if another object is equal to this.
 String getClassName()
           
 Class<?> getClassType()
          Return the Java object class.
 ValueType getValueType()
           
 int hashCode()
           
 boolean isAssignableFrom(ObjectType objectType)
           
 boolean isEvent()
          Returns true if the object type represented by this object is an event object type.
 void readExternal(ObjectInput in)
           
 void setClassType(Class<?> cls)
           
 void setEvent(boolean isEvent)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

InitialFact_ObjectType

public static final ClassObjectType InitialFact_ObjectType

DroolsQuery_ObjectType

public static final ClassObjectType DroolsQuery_ObjectType

Map_ObjectType

public static final ClassObjectType Map_ObjectType

ObjectArray_ObjectType

public static final ClassObjectType ObjectArray_ObjectType

Activation_ObjectType

public static final ClassObjectType Activation_ObjectType

cls

protected Class<?> cls
Java object class.


clsName

protected String clsName

valueType

protected ValueType valueType
Constructor Detail

ClassObjectType

public ClassObjectType()

ClassObjectType

public ClassObjectType(Class<?> objectTypeClass)
Creates a new class object type with shadow disabled.

Parameters:
objectTypeClass - Java object class.

ClassObjectType

public ClassObjectType(Class<?> objectTypeClass,
                       boolean isEvent)
Creates a new class object type

Parameters:
objectTypeClass - the class represented by this class object type
isEvent - true if it is an event class, false otherwise
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

getClassType

public Class<?> getClassType()
Return the Java object class.

Returns:
The Java object class.

getClassName

public String getClassName()

setClassType

public void setClassType(Class<?> cls)

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)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object object)
Determine if another object is equal to this.

Overrides:
equals in class Object
Parameters:
object - The object to test.
Returns:
true if object is equal to this, otherwise false.

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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