|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 objectTypeClassMethod Detail |
---|
public Class getClassType()
public boolean matches(Object object)
Object
belongs to the object type
defined by this objectType
instance.
matches
in interface ObjectType
object
- The Object
to test.
true
if the Object
matches this
object type, else false
.public ValueType getValueType()
getValueType
in interface ObjectType
public Object getShadow(Object fact) throws RuntimeDroolsException
ObjectType
getShadow
in interface ObjectType
fact
- the fact to be shadowed
RuntimeDroolsException
public boolean isShadowEnabled()
ObjectType
isShadowEnabled
in interface ObjectType
public 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 |