public interface XMLResourcesLocator extends Locator
Modifier and Type | Interface and Description |
---|---|
static class |
XMLResourcesLocator.Resource
An item of the list returned by
getDependentXMLResources(java.lang.String, java.lang.String, java.lang.String) . |
Modifier and Type | Method and Description |
---|---|
java.util.List<XMLResourcesLocator.Resource> |
getDependentXMLResources(java.lang.String name,
java.lang.String elName,
java.lang.String elDepends)
Returns a list of resources (
XMLResourcesLocator.Resource ) after resolving
the dependence. |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name)
Returns an enumeration of resources.
|
getDirectory, getResource, getResourceAsStream
java.util.Enumeration<java.net.URL> getResources(java.lang.String name) throws java.io.IOException
getDependentXMLResources(java.lang.String, java.lang.String, java.lang.String)
, it doesn't resolve the dependence
among the resources.name
- the resource name, such as "metainfo/config.xml".java.io.IOException
java.util.List<XMLResourcesLocator.Resource> getDependentXMLResources(java.lang.String name, java.lang.String elName, java.lang.String elDepends) throws java.io.IOException
XMLResourcesLocator.Resource
) after resolving
the dependence.
The resource is returned in the format of XMLResourcesLocator.Resource
To resolve the dependence, it assumes each resource has two element whose name is identified by elName and elDepends. The elName element specifies the unique name of each resource. The elDepends element specifies a list of names of resources that this resource depends on. If not found, it assumes it could be loaded first.
name
- the resource name, such as "metainfo/config.xml".elName
- the element used to specify the name.elDepends
- the element used to specify the dependence.XMLResourcesLocator.Resource
of the specified name.java.io.IOException
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.