org.apache.jackrabbit.util.name
Class NamespaceExtractor
java.lang.Object
org.apache.jackrabbit.util.name.NamespaceExtractor
- public class NamespaceExtractor
- extends Object
Extracts namespace mapping information from an XML file.
XML file is parsed and all startPrefixMapping events
are intercepted. Scoping of prefix mapping within the XML file
may result in multiple namespace using the same prefix. This
is handled by mangling the prefix when required.
The resulting NamespaceMapping implements NamespaceResolver
and can be used by tools (such as o.a.j.tools.nodetype.CompactNodeTypeDefWriter)
to resolve namespaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceExtractor
public NamespaceExtractor(String fileName,
String dpb)
throws NamespaceException
- Constructor
- Parameters:
fileName
- dpb
-
- Throws:
NamespaceException
getNamespaceMapping
public NamespaceMapping getNamespaceMapping()
- getNamespaceMapping
- Returns:
- a NamespaceMapping
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.