org.oclc.da.gdfr.registryprototype.pvt.dbxml
Class StaxHelper

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.pvt.dbxml.StaxHelper

public class StaxHelper
extends java.lang.Object


Constructor Summary
StaxHelper()
          Default constructor.
 
Method Summary
 java.util.ArrayList<java.lang.String> getAllComplexPaths(java.lang.String xml)
          Returns an arrayList of all XPaths that contain a namespace qualified element
 java.util.Properties getAllPaths(java.lang.String xml)
          Compares hashes of the xml String and it's first 100 bytes to determine if we need to re-compute all the xpath name/pairs from the XML.
 java.util.Properties getNamespaceProps(java.lang.String xml)
           
 java.lang.String getRootNamespaceURI(java.lang.String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaxHelper

public StaxHelper()
Default constructor.

Method Detail

getAllComplexPaths

public java.util.ArrayList<java.lang.String> getAllComplexPaths(java.lang.String xml)
                                                         throws RegistrySystemException
Returns an arrayList of all XPaths that contain a namespace qualified element

Parameters:
xml - XML to inspect
Returns:
ArrayList All complex (namespace qualified) Xpaths in the given XML
Throws:
RegistrySystemException

getAllPaths

public java.util.Properties getAllPaths(java.lang.String xml)
                                 throws RegistrySystemException
Compares hashes of the xml String and it's first 100 bytes to determine if we need to re-compute all the xpath name/pairs from the XML. If found in the table, it's returned. Else a new object is computed.

Parameters:
xml - XML String
Returns:
Properties containing index_name/xpath pairs
Throws:
RegistrySystemException

getNamespaceProps

public java.util.Properties getNamespaceProps(java.lang.String xml)

getRootNamespaceURI

public java.lang.String getRootNamespaceURI(java.lang.String xml)


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.