Package org.drools.core.facttemplates
Class FactTemplateObjectType
- java.lang.Object
-
- org.drools.core.facttemplates.FactTemplateObjectType
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,ObjectType
public class FactTemplateObjectType extends java.lang.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(java.lang.Object object)java.lang.StringgetClassName()FactTemplategetFactTemplate()Return the Fact Template.java.util.Collection<java.lang.String>getFieldNames()java.lang.ObjectgetTypeKey()ValueTypegetValueType()booleanhasField(java.lang.String name)inthashCode()booleanisAssignableFrom(java.lang.Class<?> clazz)booleanisAssignableFrom(ObjectType objectType)booleanisAssignableTo(java.lang.Class<?> clazz)booleanisEvent()Returns true if the object type represented by this object is an event object type.booleanisTemplate()booleanmatches(java.lang.Object object)Determine if the passedObjectbelongs to the object type defined by thisobjectTypeinstance.voidreadExternal(java.io.ObjectInput in)voidsetEvent(boolean isEvent)java.lang.StringtoString()voidwriteExternal(java.io.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(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getFactTemplate
public FactTemplate getFactTemplate()
Return the Fact Template.- Returns:
- The Fact Template
-
matches
public boolean matches(java.lang.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(java.lang.Class<?> clazz)
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableTo
public boolean isAssignableTo(java.lang.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 java.lang.Object getTypeKey()
- Specified by:
getTypeKeyin interfaceObjectType
-
isTemplate
public boolean isTemplate()
- Specified by:
isTemplatein interfaceObjectType
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassNamein interfaceObjectType
-
hasField
public boolean hasField(java.lang.String name)
- Specified by:
hasFieldin interfaceObjectType
-
getFieldNames
public java.util.Collection<java.lang.String> getFieldNames()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-