gpt4 book ai didi

org.eclipse.persistence.platform.xml.XMLPlatformFactory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 05:35:05 25 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.persistence.platform.xml.XMLPlatformFactory类的一些代码示例,展示了XMLPlatformFactory类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPlatformFactory类的具体详情如下:
包路径:org.eclipse.persistence.platform.xml.XMLPlatformFactory
类名称:XMLPlatformFactory

XMLPlatformFactory介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * The default constructor creates a platform instance
 */
public UnmarshalXPathEngine() {
  xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
   * 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);
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

setXMLPlatformClass(newXMLPlatformClass);
  return xmlPlatformClass;
} catch (ClassNotFoundException e) {

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
   * 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);
    }
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

setXMLPlatformClass(newXMLPlatformClass);
  return xmlPlatformClass;
} catch (ClassNotFoundException e) {

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * The default constructor creates a platform instance
 */
public UnmarshalXPathEngine() {
  xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * 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;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
   * 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);
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

setXMLPlatformClass(newXMLPlatformClass);
  return xmlPlatformClass;
} catch (ClassNotFoundException e) {

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * The default constructor creates a platform instance
 */
public UnmarshalXPathEngine() {
  xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public String getDefaultNamespaceURI() {
  if(null != defaultNamespaceURI) {
    return defaultNamespaceURI;
  } else if(dom != null) {
    return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null);
  }
  return null;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Default constructor.
 */
public NodeRecord() {
  super();
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  document = xmlPlatform.createDocument();
  node = document;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Default constructor.
 */
public NodeRecord() {
  super();
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  document = xmlPlatform.createDocument();
  node = document;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public String resolveNamespacePrefix(String prefix) {
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  return xmlPlatform.resolveNamespacePrefix(currentNode, prefix);
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public String getDefaultNamespaceURI() {
  if(null != defaultNamespaceURI) {
    return defaultNamespaceURI;
  } else if(dom != null) {
    return XMLPlatformFactory.getInstance().getXMLPlatform().resolveNamespacePrefix(dom, null);
  }
  return null;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Default constructor.
 */
public NodeRecord() {
  super();
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  document = xmlPlatform.createDocument();
  node = document;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public String resolveNamespacePrefix(String prefix) {
    XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
    return xmlPlatform.resolveNamespacePrefix(currentNode, prefix);
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public String resolveNamespacePrefix(String prefix) {
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  return xmlPlatform.resolveNamespacePrefix(currentNode, prefix);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com