org.apache.hivemind.schema
Interface Rule

All Superinterfaces:
Locatable
All Known Implementing Classes:
BaseRule, ConversionDescriptor, CreateObjectRule, InvokeParentRule, PushAttributeRule, PushContentRule, ReadAttributeRule, ReadContentRule, SetModuleRule, SetParentRule, SetPropertyRule

public interface Rule
extends Locatable

Rules associated with Schema elements. As the SchemaProcessor works through the Element hiearchy, it invokes methods on the Rules.

Author:
Howard M. Lewis Ship

Method Summary
 void begin(SchemaProcessor processor, Element element)
          Begin rules are fired first, in order.
 void end(SchemaProcessor processor, Element element)
          End rules are fired last, in inverse order.
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

begin

void begin(SchemaProcessor processor,
           Element element)
Begin rules are fired first, in order. All rules are invoked, and then the SchemaProcessor recurses into the elements contained within the element.


end

void end(SchemaProcessor processor,
         Element element)
End rules are fired last, in inverse order.