1 17 package org.apache.forrest.sourcetype; 18 19 import org.apache.avalon.framework.configuration.*; 20 21 24 public class DocDeclRule implements SourceTypeRule 25 { 26 protected String publicId; 27 28 public void configure(Configuration configuration) throws ConfigurationException 29 { 30 publicId = configuration.getAttribute("public-id"); 31 } 32 33 public boolean matches(SourceInfo sourceInfo) 34 { 35 if (publicId.equals(sourceInfo.getPublicId())) 36 return true; 37 else 38 return false; 39 } 40 } 41 | Popular Tags |