Class MavenCatalogResolver
- java.lang.Object
-
- org.jvnet.jaxb2.maven2.resolver.tools.CatalogResolver
-
- org.jvnet.jaxb2.maven2.resolver.tools.MavenCatalogResolver
-
- All Implemented Interfaces:
URIResolver,EntityResolver
public class MavenCatalogResolver extends CatalogResolver
-
-
Field Summary
Fields Modifier and Type Field Description static StringURI_SCHEME_MAVEN-
Fields inherited from class org.jvnet.jaxb2.maven2.resolver.tools.CatalogResolver
namespaceAware, validating
-
-
Constructor Summary
Constructors Constructor Description MavenCatalogResolver(CatalogManager catalogManager, IDependencyResourceResolver dependencyResourceResolver, org.apache.maven.plugin.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CatalogManagergetCatalogManager()protected org.apache.maven.plugin.logging.LoggetLog()StringgetResolvedEntity(String publicId, String origSystemId)Implements the guts of theresolveEntitymethod for the SAX interface.StringtoString()-
Methods inherited from class org.jvnet.jaxb2.maven2.resolver.tools.CatalogResolver
getCatalog, resolve, resolveEntity
-
-
-
-
Field Detail
-
URI_SCHEME_MAVEN
public static final String URI_SCHEME_MAVEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MavenCatalogResolver
public MavenCatalogResolver(CatalogManager catalogManager, IDependencyResourceResolver dependencyResourceResolver, org.apache.maven.plugin.logging.Log log)
-
-
Method Detail
-
getCatalogManager
protected final CatalogManager getCatalogManager()
-
getLog
protected final org.apache.maven.plugin.logging.Log getLog()
-
getResolvedEntity
public String getResolvedEntity(String publicId, String origSystemId)
Description copied from class:CatalogResolverImplements the guts of theresolveEntitymethod for the SAX interface.Presented with an optional public identifier and a system identifier, this function attempts to locate a mapping in the catalogs.
If such a mapping is found, it is returned. If no mapping is found, null is returned.
- Overrides:
getResolvedEntityin classCatalogResolver- Parameters:
publicId- The public identifier for the entity in question. This may be null.origSystemId- The system identifier for the entity in question. XML requires a system identifier on all external entities, so this value is always specified.- Returns:
- The resolved identifier (a URI reference).
-
-