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