org.drools.facttemplates
Class FactTemplateObjectType

java.lang.Object
  extended by org.drools.facttemplates.FactTemplateObjectType
All Implemented Interfaces:
Externalizable, Serializable, ObjectType

public class FactTemplateObjectType
extends Object
implements ObjectType

See Also:
Serialized Form

Field Summary
protected  FactTemplate factTemplate
          FieldTemplate.
 
Constructor Summary
FactTemplateObjectType()
           
FactTemplateObjectType(FactTemplate factTemplate)
          Construct.
 
Method Summary
 boolean equals(Object object)
          Determine if another object is equal to this.
 FactTemplate getFactTemplate()
          Return the Fact Template.
 ValueType getValueType()
           
 int hashCode()
           
 boolean isAssignableFrom(Object object)
           
 boolean isAssignableFrom(ObjectType objectType)
           
 boolean isEvent()
          Returns true if the object type represented by this object is an event object type.
 boolean matches(Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
 void readExternal(ObjectInput in)
           
 void setEvent(boolean isEvent)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

factTemplate

protected FactTemplate factTemplate
FieldTemplate.

Constructor Detail

FactTemplateObjectType

public FactTemplateObjectType()

FactTemplateObjectType

public FactTemplateObjectType(FactTemplate factTemplate)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getFactTemplate

public FactTemplate getFactTemplate()
Return the Fact Template.

Returns:
The Fact Template

matches

public boolean matches(Object object)
Determine if the passed Object belongs to the object type defined by this objectType instance.

Parameters:
object - The Object to test.
Returns:
true if the Object matches this object type, else false.

isAssignableFrom

public boolean isAssignableFrom(Object object)

isAssignableFrom

public boolean isAssignableFrom(ObjectType objectType)
Specified by:
isAssignableFrom in interface ObjectType

getValueType

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

isEvent

public boolean isEvent()
Description copied from interface: ObjectType
Returns true if the object type represented by this object is an event object type. False otherwise.

Specified by:
isEvent in interface ObjectType
Returns:

setEvent

public void setEvent(boolean isEvent)

toString

public String toString()
Overrides:
toString in class Object

equals

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

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


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.