org.eclipse.higgins.idas.cp.jena2.impl.filter
Class Filter

java.lang.Object
  extended byorg.eclipse.higgins.idas.cp.jena2.impl.filter.Filter
All Implemented Interfaces:
org.eclipse.higgins.idas.api.IFilter

public class Filter
extends Object
implements org.eclipse.higgins.idas.api.IFilter


Field Summary
 
Fields inherited from interface org.eclipse.higgins.idas.api.IFilter
OP_AND, OP_NOT, OP_OR
 
Constructor Summary
Filter(Context context)
           
 
Method Summary
 void addFilter(org.eclipse.higgins.idas.api.IFilter filter)
           
 void addFilter(org.eclipse.higgins.idas.api.IFilterAssertion filterAssertion)
           
 org.eclipse.higgins.idas.api.IFilterAttributeAssertion createAttributeAssertion()
           
 org.eclipse.higgins.idas.api.IFilterCUIDAssertion createCUIDAssertion()
           
 org.eclipse.higgins.idas.api.IFilterMetadataAssertion createMetadataAssertion()
           
 org.eclipse.higgins.idas.api.IFilterTypeAssertion createTypeAssertion()
           
 org.eclipse.higgins.idas.api.IFilterAssertion getAssertion()
           
 ICondition getCondition()
           
 ArrayList getFilters()
           
 String getOperator()
           
 void init(FilterContext filterContext)
           
 void initAsAttributeMetadataFilter(GraphPattern root, FilterContext filterContext)
          This method is used when Filter was added to FilterAttributeAssertion as metadata filter
 void setAssertion(org.eclipse.higgins.idas.api.IFilterAssertion assertion)
           
 void setOperator(String operator)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter

public Filter(Context context)
       throws org.eclipse.higgins.idas.api.IdASException
Method Detail

setAssertion

public void setAssertion(org.eclipse.higgins.idas.api.IFilterAssertion assertion)
                  throws org.eclipse.higgins.idas.api.IdASException
Specified by:
setAssertion in interface org.eclipse.higgins.idas.api.IFilter
Throws:
org.eclipse.higgins.idas.api.IdASException

getAssertion

public org.eclipse.higgins.idas.api.IFilterAssertion getAssertion()
                                                           throws org.eclipse.higgins.idas.api.IdASException
Returns:
assertion set by calling setAssertion(IFilterAssertion). May be null.
Throws:
org.eclipse.higgins.idas.api.IdASException

setOperator

public void setOperator(String operator)
                 throws org.eclipse.higgins.idas.api.IdASException
Specified by:
setOperator in interface org.eclipse.higgins.idas.api.IFilter
Throws:
org.eclipse.higgins.idas.api.IdASException

getOperator

public String getOperator()
                   throws org.eclipse.higgins.idas.api.IdASException
Returns:
operator set by calling setOperator(String). May be null.
Throws:
org.eclipse.higgins.idas.api.IdASException

addFilter

public void addFilter(org.eclipse.higgins.idas.api.IFilter filter)
               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
addFilter in interface org.eclipse.higgins.idas.api.IFilter
Throws:
org.eclipse.higgins.idas.api.IdASException

addFilter

public void addFilter(org.eclipse.higgins.idas.api.IFilterAssertion filterAssertion)
               throws org.eclipse.higgins.idas.api.IdASException
Specified by:
addFilter in interface org.eclipse.higgins.idas.api.IFilter
Throws:
org.eclipse.higgins.idas.api.IdASException

getFilters

public ArrayList getFilters()
                     throws org.eclipse.higgins.idas.api.IdASException
Returns:
Throws:
org.eclipse.higgins.idas.api.IdASException

createAttributeAssertion

public org.eclipse.higgins.idas.api.IFilterAttributeAssertion createAttributeAssertion()
                                                                                throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

createCUIDAssertion

public org.eclipse.higgins.idas.api.IFilterCUIDAssertion createCUIDAssertion()
                                                                      throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

createMetadataAssertion

public org.eclipse.higgins.idas.api.IFilterMetadataAssertion createMetadataAssertion()
                                                                              throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

createTypeAssertion

public org.eclipse.higgins.idas.api.IFilterTypeAssertion createTypeAssertion()
                                                                      throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

getCondition

public ICondition getCondition()
                        throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

init

public void init(FilterContext filterContext)
          throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

initAsAttributeMetadataFilter

public void initAsAttributeMetadataFilter(GraphPattern root,
                                          FilterContext filterContext)
                                   throws org.eclipse.higgins.idas.api.IdASException
This method is used when Filter was added to FilterAttributeAssertion as metadata filter

Parameters:
root -
filterContext -
Throws:
org.eclipse.higgins.idas.api.IdASException