org.archive.crawler.deciderules
Class DecidingFilter

java.lang.Object
  extended by javax.management.Attribute
      extended by org.archive.crawler.settings.Type
          extended by org.archive.crawler.settings.ComplexType
              extended by org.archive.crawler.settings.ModuleType
                  extended by org.archive.crawler.framework.Filter
                      extended by org.archive.crawler.deciderules.DecidingFilter
All Implemented Interfaces:
java.io.Serializable, javax.management.DynamicMBean

public class DecidingFilter
extends Filter

DecidingFilter: a classic Filter which makes its accept/reject decision based on whatever DecideRules have been set up inside it.

Author:
gojomo
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.archive.crawler.settings.ComplexType
ComplexType.MBeanAttributeInfoIterator
 
Field Summary
static java.lang.String ATTR_DECIDE_RULES
           
 
Fields inherited from class org.archive.crawler.framework.Filter
ATTR_ENABLED
 
Fields inherited from class org.archive.crawler.settings.ComplexType
definition, definitionMap
 
Constructor Summary
DecidingFilter(java.lang.String name)
           
DecidingFilter(java.lang.String name, java.lang.String description)
           
 
Method Summary
protected  DecideRule getDecideRule(java.lang.Object o)
           
protected  boolean innerAccepts(java.lang.Object o)
          Classes subclassing this one should override this method to perfrom their custom determination of whether or not the object given to it.
 void kickUpdate()
          Note that configuration updates may be necessary.
 
Methods inherited from class org.archive.crawler.framework.Filter
accepts, getFilterOffPosition, returnTrueIfMatches, toString
 
Methods inherited from class org.archive.crawler.settings.ModuleType
addElement, listUsedFiles
 
Methods inherited from class org.archive.crawler.settings.ComplexType
addElementToDefinition, checkValue, earlyInitialize, getAbsoluteName, getAttribute, getAttribute, getAttribute, getAttributeInfo, getAttributeInfo, getAttributeInfoIterator, getAttributes, getDataContainerRecursive, getDataContainerRecursive, getDefaultValue, getDescription, getElementFromDefinition, getLegalValues, getLocalAttribute, getMBeanInfo, getMBeanInfo, getParent, getPreservedFields, getSettingsHandler, getUncheckedAttribute, getValue, globalSettings, invoke, isInitialized, isOverridden, iterator, removeElementFromDefinition, setAsOrder, setAttribute, setAttribute, setAttributes, setDescription, setPreservedFields, unsetAttribute
 
Methods inherited from class org.archive.crawler.settings.Type
addConstraint, equals, getConstraints, getLegalValueType, isExpertSetting, isOverrideable, isTransient, setExpertSetting, setLegalValueType, setOverrideable, setTransient
 
Methods inherited from class javax.management.Attribute
getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_DECIDE_RULES

public static final java.lang.String ATTR_DECIDE_RULES
See Also:
Constant Field Values
Constructor Detail

DecidingFilter

public DecidingFilter(java.lang.String name,
                      java.lang.String description)

DecidingFilter

public DecidingFilter(java.lang.String name)
Method Detail

getDecideRule

protected DecideRule getDecideRule(java.lang.Object o)

innerAccepts

protected boolean innerAccepts(java.lang.Object o)
Description copied from class: Filter
Classes subclassing this one should override this method to perfrom their custom determination of whether or not the object given to it.

Overrides:
innerAccepts in class Filter
Parameters:
o - The object
Returns:
True if it passes the filter.

kickUpdate

public void kickUpdate()
Note that configuration updates may be necessary. Pass to constituent filters.

Overrides:
kickUpdate in class Filter


Copyright © 2003-2011 Internet Archive. All Rights Reserved.