/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
/** * INTERNAL: * Return the singleton instance of XMLPlatformContext. * @return the the singleton instance of XMLPlatformContext. * @throws XMLPlatformException */ public static XMLPlatformFactory getInstance() throws XMLPlatformException { if (null == instance) { instance = new XMLPlatformFactory(); } return instance; }
/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }
setXMLPlatformClass(newXMLPlatformClass); return xmlPlatformClass; } catch (ClassNotFoundException e) {
/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }
setXMLPlatformClass(newXMLPlatformClass); return xmlPlatformClass; } catch (ClassNotFoundException e) {
/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
/** * INTERNAL: * Return the singleton instance of XMLPlatformContext. * @return the the singleton instance of XMLPlatformContext. * @throws XMLPlatformException */ public static XMLPlatformFactory getInstance() throws XMLPlatformException { if (null == instance) { instance = new XMLPlatformFactory(); } return instance; }
/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }
setXMLPlatformClass(newXMLPlatformClass); return xmlPlatformClass; } catch (ClassNotFoundException e) {
/** * The default constructor creates a platform instance */ public UnmarshalXPathEngine() { xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); }
/** * INTERNAL: * Return the singleton instance of XMLPlatformContext. * @return the the singleton instance of XMLPlatformContext. * @throws XMLPlatformException */ public static XMLPlatformFactory getInstance() throws XMLPlatformException { if (null == instance) { instance = new XMLPlatformFactory(); } return instance; }
public String getDefaultNamespaceURI() { if(null != defaultNamespaceURI) { return defaultNamespaceURI; } else if(dom != null) { return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null); } return null; }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
public String resolveNamespacePrefix(String prefix) { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.resolveNamespacePrefix(currentNode, prefix); }
public String getDefaultNamespaceURI() { if(null != defaultNamespaceURI) { return defaultNamespaceURI; } else if(dom != null) { return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null); } return null; }
/** * INTERNAL: * Default constructor. */ public NodeRecord() { super(); XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); document = xmlPlatform.createDocument(); node = document; }
public String resolveNamespacePrefix(String prefix) { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.resolveNamespacePrefix(currentNode, prefix); } }
public String resolveNamespacePrefix(String prefix) { XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform(); return xmlPlatform.resolveNamespacePrefix(currentNode, prefix); }