Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.archive.crawler.deciderules
Class AcceptDecideRule

    java.lang.Object
      javax.management.Attribute
          org.archive.crawler.settings.Type
              org.archive.crawler.settings.ComplexType
                  org.archive.crawler.settings.ModuleType
                      org.archive.crawler.deciderules.DecideRule
                          org.archive.crawler.deciderules.AcceptDecideRule

All Implemented Interfaces:
  java.io.Serializable, javax.management.DynamicMBean

Direct Known Subclasses:
  PrerequisiteAcceptDecideRule, SeedAcceptDecideRule

    public class AcceptDecideRule

extends DecideRule

Rule which responds ACCEPT to anything passed in.

Author:
  gojomo
See Also:
  Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class org.archive.crawler.settings.ComplexType
`ComplexType.MBeanAttributeInfoIterator`

Field Summary

Fields inherited from class org.archive.crawler.deciderules.DecideRule
`ACCEPT, PASS, REJECT`

Fields inherited from class org.archive.crawler.settings.ComplexType
`definition, definitionMap`

Constructor Summary
`AcceptDecideRule(java.lang.String name)`

Method Summary
`java.lang.Object` | `decisionFor(java.lang.Object object)` Make decision on passed `object`.
`java.lang.Object` | `singlePossibleNonPassDecision(java.lang.Object object)` If this rule is "one-way" -- can only return a single possible decision other than PASS -- return that decision.

Methods inherited from class org.archive.crawler.deciderules.DecideRule
`getController, kickUpdate`

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, toString, 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`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### AcceptDecideRule

    public AcceptDecideRule(java.lang.String name)

Method Detail

### decisionFor

    public java.lang.Object decisionFor(java.lang.Object object)

  Description copied from class: `DecideRule`
  Make decision on passed `object`.

  Overrides:
    `decisionFor` in class `DecideRule`
  Parameters:
    `object` - Object to rule on.
  Returns:
    `DecideRule.ACCEPT`, `DecideRule.REJECT`, or `DecideRule.PASS`.

### singlePossibleNonPassDecision

    public java.lang.Object singlePossibleNonPassDecision(java.lang.Object object)

  Description copied from class: `DecideRule`
  If this rule is "one-way" -- can only return a single possible decision other than PASS -- return that decision. Otherwise return null. Most rules will be one-way.

  Overrides:
    `singlePossibleNonPassDecision` in class `DecideRule`
  Returns:
    the one decision other than PASS this rule might return, if there is only one

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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