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 FactTemplatefactTemplateFieldTemplate.
-
Constructor Summary
Constructors Constructor Description FactTemplateObjectType()FactTemplateObjectType(FactTemplate factTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Determine if another object is equal to this.StringgetClassName()Class<?>getClassType()FactTemplategetFactTemplate()Return the Fact Template.ValueTypegetValueType()inthashCode()booleanisAssignableFrom(Class<?> clazz)booleanisAssignableFrom(Object object)booleanisAssignableFrom(ObjectType objectType)booleanisEvent()Returns true if the object type represented by this object is an event object type.booleanmatches(Object object)Determine if the passedObjectbelongs to the object type defined by thisobjectTypeinstance.voidreadExternal(ObjectInput in)voidsetEvent(boolean isEvent)StringtoString()voidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getFactTemplate
public FactTemplate getFactTemplate()
Return the Fact Template.- Returns:
- The Fact Template
-
matches
public boolean matches(Object object)
Determine if the passedObjectbelongs to the object type defined by thisobjectTypeinstance.- Parameters:
object- TheObjectto test.- Returns:
trueif theObjectmatches this object type, elsefalse.
-
isAssignableFrom
public boolean isAssignableFrom(Object object)
-
isAssignableFrom
public boolean isAssignableFrom(Class<?> clazz)
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableFrom
public boolean isAssignableFrom(ObjectType objectType)
- Specified by:
isAssignableFromin interfaceObjectType
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceObjectType
-
isEvent
public boolean isEvent()
Description copied from interface:ObjectTypeReturns true if the object type represented by this object is an event object type. False otherwise.- Specified by:
isEventin interfaceObjectType- Returns:
-
setEvent
public void setEvent(boolean isEvent)
-
getClassType
public Class<?> getClassType()
- Specified by:
getClassTypein interfaceObjectType
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceObjectType
-
equals
public boolean equals(Object object)
Determine if another object is equal to this.
-
-