1 16 package org.apache.commons.betwixt.digester; 17 18 import java.util.Set ; 19 20 import org.apache.commons.logging.Log; 21 import org.apache.commons.logging.LogFactory; 22 import org.xml.sax.Attributes ; 23 import org.xml.sax.SAXException ; 24 25 30 public class HideRule extends RuleSupport { 31 32 33 private static final Log log = LogFactory.getLog( HideRule.class ); 34 35 36 public HideRule() { 37 } 38 39 42 48 public void begin(String name, String namespace, Attributes attributes) throws SAXException { 49 String propertyAttributeValue = attributes.getValue( "property" ); 50 if ( propertyAttributeValue == null || propertyAttributeValue.length() == 0 ) { 51 throw new SAXException ( 52 "<hide> element is missing the mandatory attribute 'property'" ); 53 } 54 Set propertySet = getProcessedPropertyNameSet(); 55 propertySet.add( propertyAttributeValue ); 56 } 57 } 58 | Popular Tags |