Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-126

Add a PushContentRule to the schema processor

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.1
    • framework
    • None

    Description

      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(); }

      }

      Attachments

        Activity

          People

            knut Knut Wannheden
            rhensley Richard Hensley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: