Skip to content

Instantly share code, notes, and snippets.

@GraylinKim
Created November 16, 2010 06:04
Show Gist options
  • Save GraylinKim/701498 to your computer and use it in GitHub Desktop.
Save GraylinKim/701498 to your computer and use it in GitHub Desktop.
The FlagHandler and InputProcessor interfaces that plugins must implement
/* Processors directly take over creation of the output documents
* and are generally intended for use on leaf(ish) nodes and for
* making really dramatic output changes (not recommended)
*/
public interface InputProcessor {
public void processSolr(Node source, NodeState state, HashMap<String,ArrayList<String>> solr);
public Node processXml(Node inputNode, NodeState state, Document xml);
}
/* Flags are specified in the schema files and allow you to
* step in and modify the `NodeState` before it gets writen
* and before you pass it off to the child and its flags.
*/
public interface FlagHandler {
void processNodeState(NodeState state, String value);
void processChildState(NodeState state, String value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment