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.apache.any23.validator
Interface RuleContext<T>

All Known Implementing Classes:
  DefaultRuleContext

    public interface RuleContext<T>

This context is used to pass data from a `Rule` to a `Fix`.

Author:
  Michele Mostarda (mostarda@fbk.eu), Davide Palmisano (palmisano@fbk.eu)
See Also:
  `Rule`

Method Summary
`T` | `getData(String name)` Retrieves a registered object.
`void` | `putData(String name, T value)` Puts a data within the context.
`void` | `removeData(String name)` Removes a data from the context.

Method Detail

### putData

    void putData(String name,
                 T value)

  Puts a data within the context.

  Parameters:
    `name` -
    `value` -

### getData

    T getData(String name)

  Retrieves a registered object.

  Parameters:
    `name` -
  Returns:
    a registered object, `null` if not found.

### removeData

    void removeData(String name)

  Removes a data from the context.

  Parameters:
    `name` -

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 © 2010-2012 The Apache Software Foundation. All Rights Reserved.