|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.base.ClassObjectType
public class ClassObjectType
Java class semantics ObjectType.
| Field Summary | |
|---|---|
protected Field |
delegate
|
protected ObjectInstantiator |
instantiator
|
protected Class |
objectTypeClass
Java object class. |
protected Class |
shadowClass
|
protected boolean |
shadowEnabled
|
protected ValueType |
valueType
|
| Constructor Summary | |
|---|---|
ClassObjectType(Class objectTypeClass)
Creates a new class object type with shadow disabled. |
|
ClassObjectType(Class objectTypeClass,
Class shadowClass)
Creates a new class object type with the given class as its shadow class. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Determine if another object is equal to this. |
Class |
getClassType()
Return the Java object class. |
Object |
getShadow(Object fact)
If shadow facts are enabled, returns the shadow fact, otherwise returns null |
ValueType |
getValueType()
|
int |
hashCode()
|
boolean |
isShadowEnabled()
Returns true in case shadow facts are enabled |
boolean |
matches(Object object)
Determine if the passed Object belongs to the object type
defined by this objectType instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class objectTypeClass
protected ValueType valueType
protected boolean shadowEnabled
protected Class shadowClass
protected transient ObjectInstantiator instantiator
protected transient Field delegate
| Constructor Detail |
|---|
public ClassObjectType(Class objectTypeClass)
objectTypeClass - Java object class.public ClassObjectType(Class objectTypeClass, Class shadowClass)
objectTypeClass - Java object class.shadowClass - The shadow class for the given objectTypeClass| Method Detail |
|---|
public Class getClassType()
public boolean matches(Object object)
Object belongs to the object type
defined by this objectType instance.
matches in interface ObjectTypeobject - The Object to test.
true if the Object matches this
object type, else false.public ValueType getValueType()
getValueType in interface ObjectTypepublic Object getShadow(Object fact) throws RuntimeDroolsException
ObjectType
getShadow in interface ObjectTypefact - the fact to be shadowed
RuntimeDroolsExceptionpublic boolean isShadowEnabled()
ObjectType
isShadowEnabled in interface ObjectTypepublic String toString()
public boolean equals(Object object)
object - The object to test.
true if object is equal to this,
otherwise false.public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||