站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ObjectType (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.spi
Interface ObjectType

All Superinterfaces:
Serializable
All Known Implementing Classes:
ClassObjectType, FactTemplateObjectType

public interface ObjectType
extends Serializable

Semantic object type differentiator.

Author:
bob mcwhirter
See Also:
Declaration

Method Summary
 Object getShadow(Object fact)
          If shadow facts are enabled, returns the shadow fact, otherwise returns null
 ValueType getValueType()
           
 boolean isShadowEnabled()
          Returns true in case shadow facts are enabled
 boolean matches(Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
 

Method Detail

matches

boolean matches(Object object)
Determine if the passed Object belongs to the object type defined by this objectType instance.

Parameters:
object - The Object to test.
Returns:
true if the Object matches this object type, else false.

getValueType

ValueType getValueType()

getShadow

Object getShadow(Object fact)
If shadow facts are enabled, returns the shadow fact, otherwise returns null

Parameters:
fact - the fact to be shadowed
Returns:
the shadow fact for the given fact or null if shadow facts are disabled

isShadowEnabled

boolean isShadowEnabled()
Returns true in case shadow facts are enabled

Returns:
true if shadow facts are enabled, false otherwise


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.