Created
November 16, 2010 06:04
-
-
Save GraylinKim/701498 to your computer and use it in GitHub Desktop.
The FlagHandler and InputProcessor interfaces that plugins must implement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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