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)StringgetClassName()FactTemplategetFactTemplate()Return the Fact Template.Collection<String>getFieldNames()ObjectgetTypeKey()ValueTypegetValueType()booleanhasField(String name)inthashCode()booleanisAssignableFrom(Class<?> clazz)booleanisAssignableFrom(ObjectType objectType)booleanisAssignableTo(Class<?> clazz)booleanisEvent()Returns true if the object type represented by this object is an event object type.booleanisTemplate()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(Class<?> clazz)
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableTo
public boolean isAssignableTo(Class<?> clazz)
- Specified by:
isAssignableToin 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)
-
getTypeKey
public Object getTypeKey()
- Specified by:
getTypeKeyin interfaceObjectType
-
isTemplate
public boolean isTemplate()
- Specified by:
isTemplatein interfaceObjectType
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceObjectType
-
hasField
public boolean hasField(String name)
- Specified by:
hasFieldin interfaceObjectType
-
getFieldNames
public Collection<String> getFieldNames()
-
-