1 16 package org.apache.cocoon.components.treeprocessor; 17 18 import java.util.Map ; 19 20 import org.apache.avalon.framework.logger.AbstractLogEnabled; 21 import org.apache.cocoon.environment.SourceResolver; 22 import org.apache.cocoon.util.location.Location; 23 24 29 30 public abstract class AbstractProcessingNode extends AbstractLogEnabled implements ProcessingNode { 31 32 protected Location location = Location.UNKNOWN; 33 34 37 protected static final SourceResolver getSourceResolver(Map objectModel) { 38 return (SourceResolver)objectModel.get(OBJECT_SOURCE_RESOLVER); 39 } 40 41 44 public Location getLocation() { 45 return this.location; 46 } 47 48 51 public void setLocation(Location location) { 52 this.location = location; 53 } 54 } 55 | Popular Tags |