org.apache.cocoon.core.xml.impl
Class AbstractJaxpParser

java.lang.Object
  extended byorg.apache.cocoon.core.xml.impl.AbstractJaxpParser
All Implemented Interfaces:
BeanFactoryAware
Direct Known Subclasses:
JaxpDOMParser, JaxpSAXParser

public abstract class AbstractJaxpParser
extends Object
implements BeanFactoryAware

An abstract base class for implementing Jaxp based parsers.

Since:
2.2
Version:
$Id: AbstractJaxpParser.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
JaxpDOMParser, JaxpSAXParser

Field Summary
protected  EntityResolver resolver
          the Entity Resolver
protected  boolean searchResolver
          Do we search for a resolver if it is not configured?
protected  boolean validate
          Do we want to validate?
 
Constructor Summary
AbstractJaxpParser()
           
 
Method Summary
 EntityResolver getEntityResolver()
           
protected  Log getLogger()
           
 boolean isSearchResolver()
           
 boolean isValidate()
           
protected  Class loadClass(String name)
          Load a class
 void setBeanFactory(BeanFactory factory)
           
 void setEntityResolver(EntityResolver r)
           
 void setLogger(Log l)
           
 void setSearchResolver(boolean searchResolver)
           
 void setValidate(boolean validate)
          should the parser validate parsed documents ? Default is false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

protected EntityResolver resolver
the Entity Resolver


validate

protected boolean validate
Do we want to validate?


searchResolver

protected boolean searchResolver
Do we search for a resolver if it is not configured?

Constructor Detail

AbstractJaxpParser

public AbstractJaxpParser()
Method Detail

getLogger

protected Log getLogger()

setLogger

public void setLogger(Log l)

setEntityResolver

public void setEntityResolver(EntityResolver r)

getEntityResolver

public EntityResolver getEntityResolver()

isValidate

public boolean isValidate()
See Also:
setValidate(boolean)

setValidate

public void setValidate(boolean validate)
should the parser validate parsed documents ? Default is false.


isSearchResolver

public boolean isSearchResolver()

setSearchResolver

public void setSearchResolver(boolean searchResolver)

loadClass

protected Class loadClass(String name)
                   throws Exception
Load a class

Throws:
Exception

setBeanFactory

public void setBeanFactory(BeanFactory factory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException
See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.