Class AbstractXmlContentImporter.DefaultPrefixResolver
- java.lang.Object
-
- org.ametys.plugins.contentio.in.xml.AbstractXmlContentImporter.DefaultPrefixResolver
-
- All Implemented Interfaces:
PrefixResolver
- Enclosing class:
- AbstractXmlContentImporter
protected static class AbstractXmlContentImporter.DefaultPrefixResolver extends Object implements PrefixResolver
Configurable XML prefix resolver.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,String>
_namespaces
Map of namespace URIs, indexed by prefix.
-
Constructor Summary
Constructors Constructor Description DefaultPrefixResolver(Map<String,String> namespaces)
Constructor.
-
-
-
Field Detail
-
_namespaces
private Map<String,String> _namespaces
Map of namespace URIs, indexed by prefix.
-
-
Constructor Detail
-
DefaultPrefixResolver
public DefaultPrefixResolver(Map<String,String> namespaces)
Constructor.- Parameters:
namespaces
- the namespaces to resolve, indexed by prefix.
-
-
Method Detail
-
prefixToNamespace
public String prefixToNamespace(String prefix)
- Specified by:
prefixToNamespace
in interfacePrefixResolver
-
-