Package org.drools.core.base
Class ClassObjectType
- java.lang.Object
-
- org.drools.core.base.ClassObjectType
-
- All Implemented Interfaces:
Externalizable,Serializable,ClassWireable,ObjectType
public class ClassObjectType extends Object implements ObjectType, ClassWireable, Externalizable
Java class semanticsObjectType.- Version:
- $Id: ClassObjectType.java,v 1.5 2005/02/04 02:13:36 mproctor Exp $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>clsJava object class.protected StringclsNamestatic ClassObjectTypeDroolsQuery_ObjectTypestatic ClassObjectTypeInitialFact_ObjectTypestatic ClassObjectTypeMap_ObjectTypestatic ClassObjectTypeMatch_ObjectTypestatic ClassObjectTypeObjectArray_ObjectTypeprotected ValueTypevalueType
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Determine if another object is equal to this.StringgetClassName()Class<?>getClassType()Return the Java object class.BitMaskgetTransformedMask(Class<?> modifiedClass, BitMask modificationMask)ValueTypegetValueType()inthashCode()booleanisAssignableFrom(Class<?> clazz)booleanisAssignableFrom(ObjectType objectType)booleanisEvent()Returns true if the object type represented by this object is an event object type.voidreadExternal(ObjectInput in)voidsetClassType(Class<?> cls)voidsetEvent(boolean isEvent)voidstoreTransformedMask(Class<?> modifiedClass, BitMask modificationMask, BitMask transforedMask)StringtoString()voidwire(Class<?> klass)voidwriteExternal(ObjectOutput out)
-
-
-
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
-
Match_ObjectType
public static final ClassObjectType Match_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 typeisEvent- true if it is an event class, false otherwise
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getClassType
public Class<?> getClassType()
Return the Java object class.- Specified by:
getClassTypein interfaceClassWireable- Specified by:
getClassTypein interfaceObjectType- Returns:
- The Java object class.
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceClassWireable- Specified by:
getClassNamein interfaceObjectType
-
setClassType
public void setClassType(Class<?> cls)
-
isAssignableFrom
public boolean isAssignableFrom(ObjectType objectType)
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableFrom
public boolean isAssignableFrom(Class<?> clazz)
- Specified by:
isAssignableFromin interfaceObjectType
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceObjectType
-
isEvent
public boolean isEvent()
Description copied from interface:ObjectTypeReturns true if the object type represented by this object is an event object type. False otherwise.- Specified by:
isEventin interfaceObjectType- Returns:
-
setEvent
public void setEvent(boolean isEvent)
-
equals
public boolean equals(Object object)
Determine if another object is equal to this.
-
wire
public void wire(Class<?> klass)
- Specified by:
wirein interfaceClassWireable
-
getTransformedMask
public BitMask getTransformedMask(Class<?> modifiedClass, BitMask modificationMask)
-
-