COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.common.api.impl
Class AbstractFilter

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractFilter
All Implemented Interfaces:
IDataFilterService, IDataQueryComponent, IWireSource, IWireTarget
Direct Known Subclasses:
EchoFilter, TimeObjectFilter

public abstract class AbstractFilter
extends java.lang.Object
implements IDataFilterService, IDataQueryComponent, IWireTarget, IWireSource


Field Summary
protected  IDataFilterService _proxy
           
protected  java.util.ArrayList<IWireTarget> targetList
           
 
Fields inherited from interface org.eclipse.cosmos.dc.common.api.IDataFilterService
FILTER_QNAME
 
Constructor Summary
AbstractFilter(ContributionManager manager)
           
 
Method Summary
 boolean acceptType(java.lang.Class type)
           
abstract  boolean acceptWireTarget(IWireTarget target)
           
 void addWireTarget(IWireTarget target)
           
 void dispatch(java.lang.Object obj)
           
 java.lang.Class[] getAcceptableTypes()
           
 java.lang.reflect.Method getFilterMethod(java.lang.Class type)
           
 java.lang.Class[] getOutputTypes()
           
 boolean getQueryMode()
           
protected abstract  java.lang.Class[] getSupportedTypes()
           
 java.lang.reflect.Method getWireMethod()
           
 IWireSource getWireSource()
           
 IWireTarget[] getWireTargets()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setQueryMode(boolean inQuery)
           
 void setWireMethod(java.lang.reflect.Method wireMethod)
           
 void setWireSource(IWireSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_proxy

protected IDataFilterService _proxy

targetList

protected java.util.ArrayList<IWireTarget> targetList
Constructor Detail

AbstractFilter

public AbstractFilter(ContributionManager manager)
Method Detail

getSupportedTypes

protected abstract java.lang.Class[] getSupportedTypes()

acceptType

public boolean acceptType(java.lang.Class type)
Specified by:
acceptType in interface IDataFilterService
Specified by:
acceptType in interface IWireTarget

getFilterMethod

public java.lang.reflect.Method getFilterMethod(java.lang.Class type)
Specified by:
getFilterMethod in interface IDataFilterService

setWireSource

public void setWireSource(IWireSource source)
                   throws java.lang.Exception
Specified by:
setWireSource in interface IWireTarget
Throws:
java.lang.Exception

acceptWireTarget

public abstract boolean acceptWireTarget(IWireTarget target)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

addWireTarget

public void addWireTarget(IWireTarget target)
                   throws java.lang.Exception
Specified by:
addWireTarget in interface IWireSource
Throws:
java.lang.Exception

getWireSource

public IWireSource getWireSource()
Specified by:
getWireSource in interface IWireTarget

getWireTargets

public IWireTarget[] getWireTargets()
Specified by:
getWireTargets in interface IWireSource

setWireMethod

public void setWireMethod(java.lang.reflect.Method wireMethod)
Specified by:
setWireMethod in interface IWireTarget

getWireMethod

public java.lang.reflect.Method getWireMethod()
Specified by:
getWireMethod in interface IWireTarget

dispatch

public void dispatch(java.lang.Object obj)

getOutputTypes

public java.lang.Class[] getOutputTypes()
Specified by:
getOutputTypes in interface IWireSource

getAcceptableTypes

public java.lang.Class[] getAcceptableTypes()
Specified by:
getAcceptableTypes in interface IWireTarget

setQueryMode

public void setQueryMode(boolean inQuery)
Specified by:
setQueryMode in interface IDataQueryComponent

getQueryMode

public boolean getQueryMode()
Specified by:
getQueryMode in interface IDataQueryComponent

setActive

public void setActive(boolean active)
Specified by:
setActive in interface IDataQueryComponent

isActive

public boolean isActive()
Specified by:
isActive in interface IDataQueryComponent

COSMOS ${releaseVersion} data-collection Project
Public API Specification