Package org.drools.core.facttemplates
Class FactTemplateObjectType
- java.lang.Object
-
- org.drools.core.facttemplates.FactTemplateObjectType
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ObjectType
public class FactTemplateObjectType extends Object implements ObjectType
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FactTemplate
factTemplate
FieldTemplate.
-
Constructor Summary
Constructors Constructor Description FactTemplateObjectType()
FactTemplateObjectType(FactTemplate factTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Determine if another object is equal to this.String
getClassName()
Class<?>
getClassType()
FactTemplate
getFactTemplate()
Return the Fact Template.ValueType
getValueType()
int
hashCode()
boolean
isAssignableFrom(Class<?> clazz)
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 passedObject
belongs to the object type defined by thisobjectType
instance.void
readExternal(ObjectInput in)
void
setEvent(boolean isEvent)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
factTemplate
protected FactTemplate factTemplate
FieldTemplate.
-
-
Constructor Detail
-
FactTemplateObjectType
public FactTemplateObjectType()
-
FactTemplateObjectType
public FactTemplateObjectType(FactTemplate factTemplate)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getFactTemplate
public FactTemplate getFactTemplate()
Return the Fact Template.- Returns:
- The Fact Template
-
matches
public boolean matches(Object object)
Determine if the passedObject
belongs to the object type defined by thisobjectType
instance.- Parameters:
object
- TheObject
to test.- Returns:
true
if theObject
matches this object type, elsefalse
.
-
isAssignableFrom
public boolean isAssignableFrom(Object object)
-
isAssignableFrom
public boolean isAssignableFrom(Class<?> clazz)
- Specified by:
isAssignableFrom
in interfaceObjectType
-
isAssignableFrom
public boolean isAssignableFrom(ObjectType objectType)
- Specified by:
isAssignableFrom
in interfaceObjectType
-
getValueType
public ValueType getValueType()
- Specified by:
getValueType
in interfaceObjectType
-
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 interfaceObjectType
- Returns:
-
setEvent
public void setEvent(boolean isEvent)
-
getClassType
public Class<?> getClassType()
- Specified by:
getClassType
in interfaceObjectType
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfaceObjectType
-
equals
public boolean equals(Object object)
Determine if another object is equal to this.
-
-