@Override public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
/** * {@inheritDoc} */ @Override public Node getNode( final Object contentTree ) throws JAXBException { return marshaller.getNode( contentTree ); }
@Override public Node getNode(Object contentTree) throws JAXBException { return marshaller.getNode(contentTree); }
public Node getNode(Object o) throws JAXBException { return marshaller.getNode(o); }
public Node getNode(Object o) throws JAXBException { return marshaller.getNode(o); }
@Override public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
@Override public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
public Node getNode(Object jaxbObject) throws JAXBException { return jaxbMarshaller.getNode(jaxbObject); }
Node originalDOM; // Populate original document JAXBContext jc = JAXBContext.newInstance(Customer.class); Unmarshaller unmarshaller = jc.createUnmarshaller(); Customer customer = (Customer) unmarshaller.unmarshal(orginalDocument); Marshaller marshaller = jc.createMarshaller(); marshalledDOM = marshaller.getNode(customer);
/** * Delegates the marshalling to the wrapped marshaller. */ @Override public Node getNode(final Object object) throws JAXBException { final FilterVersion version = getFilterVersion(); if (version != null) { // This exception is thrown by javax.xml.bind.helpers.AbstractMarshallerImpl anyway. throw new UnsupportedOperationException(); } else { final Context context = begin(); try { return marshaller.getNode(toImplementation(object)); } finally { context.finish(); } } }
/** * Delegates the marshalling to the wrapped marshaller. */ @Override public Node getNode(Object object) throws JAXBException { object = toImplementation(object); // Must be call before getTransformVersion() final TransformVersion version = getTransformVersion(); if (version != null) { // This exception is thrown by javax.xml.bind.helpers.AbstractMarshallerImpl anyway. throw new UnsupportedOperationException(); } else { final Context context = begin(); try { return marshaller.getNode(object); } finally { context.finish(); } } }