gpt4 book ai didi

org.eclipse.persistence.platform.xml.XMLPlatformFactory.getXMLPlatform()方法的使用及代码示例

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

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

XMLPlatformFactory.getXMLPlatform介绍

[英]INTERNAL: Return the XMLPlatform based on the toplink.xml.platform System property.
[中]内部:基于toplink返回XMLPlatform。xml。平台系统属性。

代码示例

代码示例来源: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

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

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

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

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

public SAXDocumentBuilder() {
  super();
  nodes = new ArrayList<Node>();
  xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  stringBuffer = new StrBuffer();
  namespaceDeclarations = new HashMap();
}

代码示例来源: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: com.haulmont.thirdparty/eclipselink

public XMLTypeBindCallCustomParameter(Object obj) {
  super(obj);
  xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
  xmlTransformer.setFormattedOutput(false);
}

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

/**
 * Set the XML from an XML reader.
 */
public void transformFromXML(Reader reader) {
  XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  Document document = parser.parse(reader);
  setDOM(document.getDocumentElement());
}

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

public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) {
  super();
  if(null == parserFeatures) {
    parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  } else {
    parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(parserFeatures);
  }
  parser.setNamespaceAware(true);
  parser.setValidationMode(XMLParser.NONVALIDATING);
  this.xmlUnmarshaller = xmlUnmarshaller;
}

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

public DirectToXMLTypeMapping() {
  super();
  this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
  this.xmlTransformer.setFormattedOutput(false);
  this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  this.xmlComparer = new XMLComparer();
}

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

/**
 * Set the XML from an XML reader.
 */
public void transformFromXML(Reader reader) {
  XMLParser parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  Document document = parser.parse(reader);
  setDOM(document.getDocumentElement());
}

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

public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) {
  super();
  if(null == parserFeatures) {
    parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  } else {
    parser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser(parserFeatures);
  }
  parser.setNamespaceAware(true);
  parser.setValidationMode(XMLParser.NONVALIDATING);
  this.xmlUnmarshaller = xmlUnmarshaller;
}

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

public DirectToXMLTypeMapping() {
  super();
  this.xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
  this.xmlTransformer.setFormattedOutput(false);
  this.xmlParser = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
  this.xmlComparer = new XMLComparer();
}

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

private void initialize() {
  XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
  transformer = xmlPlatform.newXMLTransformer();
  setEncoding(XMLConstants.DEFAULT_XML_ENCODING);
  setFormattedOutput(true);
  marshalProperties = new Properties();
}

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

/**
 * Write the XML string representation of the DOM.
 */
public void transformToWriter(Writer writer) {
  XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
  xmlTransformer.transform(this.getDOM(), writer);
}

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

/**
 * Write the XML string representation of the DOM.
 */
public void transformToWriter(Writer writer) {
  XMLTransformer xmlTransformer = XMLPlatformFactory.getInstance().getXMLPlatform().newXMLTransformer();
  xmlTransformer.transform(this.getDOM(), writer);
}

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

public boolean isValid(Document document, ErrorHandler errorHandler) {
  try {
    XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
    return xmlPlatform.validateDocument(document, getURL(), errorHandler);
  } catch (XMLPlatformException e) {
    if (e.getErrorCode() == XMLPlatformException.XML_PLATFORM_PARSER_ERROR_RESOLVING_XML_SCHEMA) {
      throw XMLMarshalException.errorResolvingXMLSchema(e);
    } else {
      return false;
    }
  }
}

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

public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) {
  DOMRecord domRecord = (DOMRecord) row;
  Object value = domRecord.getIndicatingNoEntry(this.getField(), true);
  if(value == domRecord) {
    value = domRecord.getDOM();
  }
  if (value instanceof Element) {
    XMLPlatformFactory.getInstance().getXMLPlatform().namespaceQualifyFragment((Element)value);
  }
  return value;
}

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

protected Object buildObjectNoReferenceDescriptor(DOMRecord record, AbstractSession session, Node next, Object container, ContainerPolicy cp) {
  XMLConverter converter = ((XMLAnyCollectionMapping) this).getConverter();
  
  XMLPlatformFactory.getInstance().getXMLPlatform().namespaceQualifyFragment((Element) next);
  Object objectValue = next;
  if (converter != null) {
    objectValue = converter.convertDataValueToObjectValue(objectValue, session, record.getUnmarshaller());
  }                       
  cp.addInto(objectValue, container, session);
  
  return objectValue;
}

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