org.drools.spring.metadata
Class BeanObjectType
java.lang.Object
org.drools.spring.metadata.BeanObjectType
- All Implemented Interfaces:
- java.io.Serializable, ObjectType, RuleComponent
public class BeanObjectType
- extends java.lang.Object
- implements ObjectType
This class is functionally the same as ClassObjectType. Its sole purpose is
to eliminate the only dependency from drools-spring to drools-smf.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object object)
|
java.lang.Class |
getType()
|
int |
hashCode()
|
boolean |
matches(java.lang.Object object)
Determine if the passed Object belongs to the object type
defined by this objectType instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BeanObjectType
public BeanObjectType(java.lang.Class objectTypeClass)
getType
public java.lang.Class getType()
matches
public boolean matches(java.lang.Object object)
- Description copied from interface:
ObjectType
- Determine if the passed
Object
belongs to the object type
defined by this objectType
instance.
- Specified by:
matches
in interface ObjectType
- Parameters:
object
- The Object
to test.
- Returns:
true
if the Object
matches this
object type, else false
.
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object