站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 3.0.6 API 英文版文档

ClassObjectType - JBoss RULES 3.0.6 API 英文版文档


org.drools.base
Class ClassObjectType

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

public class ClassObjectType
extends java.lang.Object
implements ObjectType

Java class semantics ObjectType.

See Also:
Serialized Form

Field Summary
protected  java.lang.Class objectTypeClass
          Java object class.
protected  int valueType
           
 
Constructor Summary
ClassObjectType(java.lang.Class objectTypeClass)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object object)
          Determine if another object is equal to this.
 java.lang.Class getClassType()
          Return the Java object class.
 int getValueType()
           
 int hashCode()
           
 boolean matches(java.lang.Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
protected  void setValueType(java.lang.Class clazz)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objectTypeClass

protected java.lang.Class objectTypeClass
Java object class.


valueType

protected int valueType
Constructor Detail

ClassObjectType

public ClassObjectType(java.lang.Class objectTypeClass)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

getClassType

public java.lang.Class getClassType()
Return the Java object class.

Returns:
The Java object class.

matches

public boolean matches(java.lang.Object object)
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.

getValueType

public int getValueType()
Specified by:
getValueType in interface ObjectType

setValueType

protected void setValueType(java.lang.Class clazz)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

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

Overrides:
equals in class java.lang.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 java.lang.Object