Package org.drools.base.prototype
Class PrototypeObjectType
java.lang.Object
org.drools.base.prototype.PrototypeObjectType
- All Implemented Interfaces:
Externalizable,Serializable,ObjectType
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()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.booleanbooleanDetermine if the passedObjectbelongs to the object type defined by thisobjectTypeinstance.voidvoidsetEvent(boolean isEvent) toString()void
-
Field Details
-
prototype
-
-
Constructor Details
-
PrototypeObjectType
public PrototypeObjectType() -
PrototypeObjectType
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getPrototype
-
matches
Determine if the passedObjectbelongs to the object type defined by thisobjectTypeinstance.- Parameters:
object- TheObjectto test.- Returns:
trueif theObjectmatches this object type, elsefalse.
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableTo
- Specified by:
isAssignableToin interfaceObjectType
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceObjectType
-
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
- Specified by:
getTypeKeyin interfaceObjectType
-
isPrototype
public boolean isPrototype()- Specified by:
isPrototypein interfaceObjectType
-
getClassName
- Specified by:
getClassNamein interfaceObjectType
-
hasField
- Specified by:
hasFieldin interfaceObjectType
-
getFieldNames
-
toString
-
equals
-
hashCode
public int hashCode()
-