org.eclipse.persistence.exceptions.XMLMarshalException.nullArgumentException()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(13.2k)|赞(0)|评价(0)|浏览(156)

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

XMLMarshalException.nullArgumentException介绍

暂无

代码示例

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

/**
* PUBLIC:
* Read and parse the XML document from the url and map the XML data into an object.
* The url must reference a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param url The url to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given url
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(URL url, Class clazz) throws XMLMarshalException {
  if ((null == url) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(url, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the file and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param file The file to unmarshal from
* @return the object which resulted from unmarshalling the given file
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(File file) throws XMLMarshalException {
  if (file == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(file);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputSource and map the XML data into an object.
* The inputSource must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param inputSource The inputSource to unmarshal from
* @return the object which resulted from unmarshalling the given inputSource
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputSource inputSource) throws XMLMarshalException {
  if (inputSource == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputSource);
}

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

/**
* PUBLIC:
* Map the XML node into an object.
* The node must be a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param node The node to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given node
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Node node, Class clazz) throws XMLMarshalException {
  if ((null == node) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(node, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the url and map the XML data into an object.
* The url must reference a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param url The url to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given url
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(URL url, Class clazz) throws XMLMarshalException {
  if ((null == url) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(url, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputStream and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param inputStream The inputStream to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given inputStream
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputStream inputStream, Class clazz) throws XMLMarshalException {
  if ((null == inputStream) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputStream, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the file and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param file The file to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given file
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(File file, Class clazz) throws XMLMarshalException {
  if ((null == file) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(file, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the file and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param file The file to unmarshal from
* @return the object which resulted from unmarshalling the given file
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(File file) throws XMLMarshalException {
  if (file == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(file);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputStream and map the XML data into an object.
* The inputStream must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param inputStream The inputStream to unmarshal from
* @return the object which resulted from unmarshalling the given inputStream
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputStream inputStream) throws XMLMarshalException {
  if (inputStream == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputStream);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputStream and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param inputStream The inputStream to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given inputStream
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputStream inputStream, Class clazz) throws XMLMarshalException {
  if ((null == inputStream) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputStream, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the reader and map the XML data into an object.
* The reader must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param reader The reader to unmarshal from
* @return the object which resulted from unmarshalling the given reader
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Reader reader) throws XMLMarshalException {
  if (reader == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(reader);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputSource and map the XML data into an object.
* The inputSource must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param inputSource The inputSource to unmarshal from
* @return the object which resulted from unmarshalling the given inputSource
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputSource inputSource) throws XMLMarshalException {
  if (inputSource == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputSource);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the reader and map the XML data into an object.
* The reader must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param reader The reader to unmarshal from
* @return the object which resulted from unmarshalling the given reader
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Reader reader) throws XMLMarshalException {
  if (reader == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(reader);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the reader and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param reader The reader to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given reader
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Reader reader, Class clazz) throws XMLMarshalException {
  if ((null == reader) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(reader, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the url and map the XML data into an object.
* The url must reference a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param url The url to unmarshal from
* @return the object which resulted from unmarshalling the given url
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(URL url) throws XMLMarshalException {
  if (url == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(url);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the reader and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param reader The reader to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given reader
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Reader reader, Class clazz) throws XMLMarshalException {
  if ((null == reader) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(reader, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the inputSource and map the XML data into an object.
* The inputSource must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param inputSource The inputSource to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given inputSource
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(InputSource inputSource, Class clazz) throws XMLMarshalException {
  if ((null == inputSource) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(inputSource, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the file and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param file The file to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given file
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(File file, Class clazz) throws XMLMarshalException {
  if ((null == file) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(file, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the reader and map the XML data into an object.
* The file must contain a valid XML document, and be mapped by a project used to
* create the XMLContext.
* @param reader The reader to unmarshal from
* @param clazz The type of object to return.
* @return the object which resulted from unmarshalling the given reader
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(Reader reader, Class clazz) throws XMLMarshalException {
  if ((null == reader) || (null == clazz)) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(reader, clazz);
}

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

/**
* PUBLIC:
* Read and parse the XML document from the url and map the XML data into an object.
* The url must reference a valid XML document, and be mapped by a project used to
* create the XMLContext.  The type of object returned will be based on the root
* element of the XML document.
* @param url The url to unmarshal from
* @return the object which resulted from unmarshalling the given url
* @throws XMLMarshalException if an error occurred during unmarshalling
*/
public Object unmarshal(URL url) throws XMLMarshalException {
  if (url == null) {
    throw XMLMarshalException.nullArgumentException();
  }
  return platformUnmarshaller.unmarshal(url);
}

相关文章

XMLMarshalException类方法