|
org.apache.tools.ant.types
|
Field Summary |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
XMLCatalog()
|
Method Summary | |
void |
addConfiguredXMLCatalog(XMLCatalog catalog)
definition. |
void |
addDTD(DTDLocation dtd)
Creates the nested <dtd> element. |
void |
addEntity(DTDLocation dtd)
Creates the nested <entity> element. |
Path |
createClasspath()
Allows nested classpath elements. |
resolve(java.lang.String href,
java.lang.String base)
Implements the URIResolver.resolve() interface method. |
|
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Implements the EntityResolver.resolveEntity() interface method. |
|
void |
setClasspath(Path classpath)
Allows simple classpath string. |
void |
setClasspathRef(Reference r)
Allows classpath reference. |
void |
setRefid(Reference r)
Makes this instance in effect a reference to another XMLCatalog instance. |
Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLCatalog()
Method Detail |
public Path createClasspath()
public void setClasspath(Path classpath)
public void setClasspathRef(Reference r)
public void addDTD(DTDLocation dtd) throws BuildException
<dtd>
element. Not
allowed if this catalog is itself a reference to another
catalog -- that is, a catalog cannot both refer to another
and contain elements or other attributes.
dtd
- the information about the PUBLIC resource mapping to
be added to the catalog
BuildException
- if this is a reference and no nested
elements are allowed.public void addEntity(DTDLocation dtd) throws BuildException
<entity>
element. Not
allowed if this catalog is itself a reference to another
catalog -- that is, a catalog cannot both refer to another
and contain elements or other attributes.
dtd
- the information about the URI resource mapping to be
added to the catalog
BuildException
- if this is a reference and no nested
elements are allowed.public void addConfiguredXMLCatalog(XMLCatalog catalog)
catalog
- Nested XMLCatalogpublic void setRefid(Reference r) throws BuildException
You must not set another attribute or nest elements inside this element if you make it a reference. That is, a catalog cannot both refer to another and contain elements or attributes.
r
- the reference to which this catalog instance is associated
BuildException
- if this instance already has been configured.java.lang.String systemId) java.io.IOException
java.io.IOException
EntityResolver.resolveEntity(java.lang.String, java.lang.String)
java.lang.String base)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |