use of javax.xml.bind.Unmarshaller in project opennms by OpenNMS.
the class MonitoredService method unmarshal.
/**
* Method unmarshal.
*
* @param reader
* @return the unmarshaled
* org.opennms.client.schema.MonitoredService
* @throws JAXBException
*/
public static org.opennms.client.schema.MonitoredService unmarshal(final java.io.Reader reader) throws JAXBException {
final JAXBContext context = JAXBContext.newInstance(MonitoredService.class);
final Unmarshaller um = context.createUnmarshaller();
return (MonitoredService) um.unmarshal(reader);
}
use of javax.xml.bind.Unmarshaller in project opennms by OpenNMS.
the class Node method unmarshal.
/**
* Method unmarshal.
*
* @param reader
* @throws org.exolab.castor.xml.MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws org.exolab.castor.xml.ValidationException if this
* object is an invalid instance according to the schema
* @return the unmarshaled org.opennms.client.schema.Node
* @throws JAXBException
*/
public static org.opennms.client.schema.Node unmarshal(final java.io.Reader reader) throws JAXBException {
final JAXBContext context = JAXBContext.newInstance(Node.class);
final Unmarshaller um = context.createUnmarshaller();
return (Node) um.unmarshal(reader);
}
use of javax.xml.bind.Unmarshaller in project opennms by OpenNMS.
the class Interface method unmarshal.
/**
* Method unmarshal.
*
* @param reader
* @return the unmarshaled org.opennms.client.schema.Interface
* @throws JAXBException
*/
public static org.opennms.client.schema.Interface unmarshal(final java.io.Reader reader) throws JAXBException {
final JAXBContext context = JAXBContext.newInstance(Interface.class);
final Unmarshaller um = context.createUnmarshaller();
return (Interface) um.unmarshal(reader);
}
use of javax.xml.bind.Unmarshaller in project opennms by OpenNMS.
the class ModelImport method unmarshal.
/**
* Method unmarshal.
*
* @param reader
* @throws org.exolab.castor.xml.MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws org.exolab.castor.xml.ValidationException if this
* object is an invalid instance according to the schema
* @return the unmarshaled org.opennms.client.schema.ModelImport
* @throws JAXBException
*/
public static org.opennms.client.schema.ModelImport unmarshal(final java.io.Reader reader) throws JAXBException {
final JAXBContext context = JAXBContext.newInstance(ModelImport.class);
final Unmarshaller um = context.createUnmarshaller();
return (ModelImport) um.unmarshal(reader);
}
use of javax.xml.bind.Unmarshaller in project opennms by OpenNMS.
the class Asset method unmarshal.
/**
* Method unmarshal.
*
* @param reader
* @return the unmarshaled org.opennms.client.schema.Asset
* @throws JAXBException
*/
public static org.opennms.client.schema.Asset unmarshal(final java.io.Reader reader) throws JAXBException {
final JAXBContext context = JAXBContext.newInstance(Asset.class);
final Unmarshaller um = context.createUnmarshaller();
return (Asset) um.unmarshal(reader);
}
Aggregations