com.agilejava.docbkx.maven
类 InjectingEntityResolver

java.lang.Object
  继承者 com.agilejava.docbkx.maven.InjectingEntityResolver
所有已实现的接口:
EntityResolver

public class InjectingEntityResolver
extends Object
implements EntityResolver

An EntityResolver that will inject a couple of additional general internal entities into the DTD resolved by underlying resolver.

作者:
Wilfred Springer

嵌套类摘要
 class InjectingEntityResolver.ReplacementInputSource
          The InputSource that will replace the first InputSource retrieved, containig XML entity declarations for all entities defined in the POM.
 
构造方法摘要
InjectingEntityResolver(List entities, EntityResolver resolver, String type, org.apache.maven.plugin.logging.Log log)
           
 
方法摘要
 void forceInjection()
          Forces the object to inject the entities.
 InputSource resolveEntity(String publicId, String systemId)
          Returns the InputSource containing the external entity's data.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

InjectingEntityResolver

public InjectingEntityResolver(List entities,
                               EntityResolver resolver,
                               String type,
                               org.apache.maven.plugin.logging.Log log)
方法详细信息

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Returns the InputSource containing the external entity's data. This implementation will normally return an InputSource that contains all additional entities defined, including a reference to the InputSource that was originally requested. TODO Figure out if this works with all parsers. There might be a couple of cases in which we would need to perform some additional work.

指定者:
接口 EntityResolver 中的 resolveEntity
参数:
publicId - The public identifier of the entity.
systemId - The system identifier of the entity.
返回:
An InputSource producing the data required.
抛出:
SAXException
IOException

forceInjection

public void forceInjection()
Forces the object to inject the entities.



Copyright © 2011. All Rights Reserved.