org.apache.jackrabbit.spi.commons.namespace
Class NamespaceExtractor

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.namespace.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.


Constructor Summary
NamespaceExtractor(String fileName, String dpb)
          Constructor
 
Method Summary
 NamespaceMapping getNamespaceMapping()
          getNamespaceMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceExtractor

public NamespaceExtractor(String fileName,
                          String dpb)
                   throws NamespaceException
Constructor

Parameters:
fileName -
dpb -
Throws:
NamespaceException
Method Detail

getNamespaceMapping

public NamespaceMapping getNamespaceMapping()
getNamespaceMapping

Returns:
a NamespaceMapping


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.