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

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


org.drools.spi
Class GlobalExtractor

java.lang.Object
  extended by org.drools.spi.GlobalExtractor
All Implemented Interfaces:
Serializable, Extractor

public class GlobalExtractor
extends Object
implements Extractor

This is a dummy extractor used during rule compilation and build. It is not supposed to be used to extract real global values during runtime, so all getValueXXX() methods will raise unsupported operation exceptions.

Author:
etirelli
See Also:
Serialized Form

Constructor Summary
GlobalExtractor(String key, Map map)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean getBooleanValue(Object object)
           
 byte getByteValue(Object object)
           
 char getCharValue(Object object)
           
 double getDoubleValue(Object object)
           
 Class getExtractToClass()
           
 float getFloatValue(Object object)
           
 int getHashCode(Object object)
           
 int getIntValue(Object object)
           
 long getLongValue(Object object)
           
 Method getNativeReadMethod()
           
 ObjectType getObjectType()
           
 short getShortValue(Object object)
           
 Object getValue(Object object)
           
 ValueType getValueType()
           
 int hashCode()
           
 boolean isNullValue(Object object)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalExtractor

public GlobalExtractor(String key,
                       Map map)
Method Detail

getValue

public Object getValue(Object object)
Specified by:
getValue in interface Extractor

getObjectType

public ObjectType getObjectType()

getExtractToClass

public Class getExtractToClass()
Specified by:
getExtractToClass in interface Extractor

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface Extractor

getBooleanValue

public boolean getBooleanValue(Object object)
Specified by:
getBooleanValue in interface Extractor

getByteValue

public byte getByteValue(Object object)
Specified by:
getByteValue in interface Extractor

getCharValue

public char getCharValue(Object object)
Specified by:
getCharValue in interface Extractor

getDoubleValue

public double getDoubleValue(Object object)
Specified by:
getDoubleValue in interface Extractor

getFloatValue

public float getFloatValue(Object object)
Specified by:
getFloatValue in interface Extractor

getIntValue

public int getIntValue(Object object)
Specified by:
getIntValue in interface Extractor

getLongValue

public long getLongValue(Object object)
Specified by:
getLongValue in interface Extractor

getShortValue

public short getShortValue(Object object)
Specified by:
getShortValue in interface Extractor

getNativeReadMethod

public Method getNativeReadMethod()
Specified by:
getNativeReadMethod in interface Extractor

getHashCode

public int getHashCode(Object object)
Specified by:
getHashCode in interface Extractor

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

isNullValue

public boolean isNullValue(Object object)
Specified by:
isNullValue in interface Extractor


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