Add a PushContentRule to the schema processor
---------------------------------------------

         Key: HIVEMIND-126
         URL: http://issues.apache.org/jira/browse/HIVEMIND-126
     Project: HiveMind
        Type: New Feature
  Components: framework  
    Versions: 1.1    
    Reporter: Richard Hensley
    Priority: Minor


Please add a push content rule to the schema processor so a custom rule does 
not need to be used. Here is a sample implementation.

public class PushContentRule extends BaseRule implements Rule {

    public void begin(SchemaProcessor processor, Element element) {
        String value = RuleUtils.processText(processor, element, element
            .getContent());
        Translator t = processor.getContentTranslator();
        Object finalValue = t.translate(processor.getContributingModule(),
            Object.class, value, element.getLocation());
        processor.push(finalValue);
    }

    public void end(SchemaProcessor processor, Element element) {
        processor.pop();
    }
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to