1 15 package org.apache.hivemind.schema.rules; 16 17 import org.apache.hivemind.Element; 18 import org.apache.hivemind.internal.Module; 19 import org.apache.hivemind.schema.SchemaProcessor; 20 21 28 public class SetModuleRule extends BaseRule 29 { 30 private String _propertyName; 31 32 public void begin(SchemaProcessor processor, Element element) 33 { 34 Object top = processor.peek(); 35 Module contributingModule = processor.getContributingModule(); 36 37 RuleUtils.setProperty(processor, element, _propertyName, top, contributingModule); 38 } 39 40 public void setPropertyName(String string) 41 { 42 _propertyName = string; 43 } 44 45 public String getPropertyName() 46 { 47 return _propertyName; 48 } 49 50 } 51 | Popular Tags |