org.apache.cocoon.components.validation.impl
Class AbstractSchemaParser

java.lang.Object
  extended by org.apache.cocoon.components.validation.impl.AbstractSchemaParser
All Implemented Interfaces:
Disposable, Initializable, LogEnabled, Serviceable, SchemaParser
Direct Known Subclasses:
JaxpSchemaParser, JingSchemaParser

public abstract class AbstractSchemaParser
extends Object
implements LogEnabled, Serviceable, Initializable, Disposable, SchemaParser

A SchemaParser caching Schema instance for multiple use.

A Schema will be cached until its SourceValidity expires.


Field Summary
protected  EntityResolver entityResolver
          The EntityResolver resolving against catalogs of public IDs.
protected  Logger logger
          The Logger configured for this instance.
protected  ServiceManager serviceManager
          The ServiceManager configured for this instance.
protected  SourceResolver sourceResolver
          The SourceResolver to resolve URIs into Sources.
 
Fields inherited from interface org.apache.cocoon.components.validation.SchemaParser
ROLE
 
Constructor Summary
AbstractSchemaParser()
          Create a new AbstractSchemaParser instance.
 
Method Summary
 void dispose()
          Dispose this component instance.
 void enableLogging(Logger logger)
          Enable logging.
 void initialize()
          Initialize this component instance.
 void service(ServiceManager manager)
          Contextualize this component specifying a ServiceManager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.components.validation.SchemaParser
getSupportedGrammars, parseSchema
 

Field Detail

serviceManager

protected ServiceManager serviceManager

The ServiceManager configured for this instance.


sourceResolver

protected SourceResolver sourceResolver

The SourceResolver to resolve URIs into Sources.


entityResolver

protected EntityResolver entityResolver

The EntityResolver resolving against catalogs of public IDs.


logger

protected Logger logger

The Logger configured for this instance.

Constructor Detail

AbstractSchemaParser

public AbstractSchemaParser()

Create a new AbstractSchemaParser instance.

Method Detail

enableLogging

public void enableLogging(Logger logger)

Enable logging.

Specified by:
enableLogging in interface LogEnabled

service

public void service(ServiceManager manager)
             throws ServiceException

Contextualize this component specifying a ServiceManager instance.

Specified by:
service in interface Serviceable
Throws:
ServiceException

initialize

public void initialize()
                throws Exception

Initialize this component instance.

A this point component resolution will happen.

Specified by:
initialize in interface Initializable
Throws:
Exception

dispose

public void dispose()

Dispose this component instance.

Specified by:
dispose in interface Disposable


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.