public class SignatureMarshaller extends Object implements Marshaller
Constructor and Description |
---|
SignatureMarshaller()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Element |
marshall(XMLObject xmlObject)
Marshall this element, and its children, and root them in a newly created Document.
|
Element |
marshall(XMLObject xmlObject,
Document document)
Marshall this element, and its children, into a W3C DOM element.
|
Element |
marshall(XMLObject xmlObject,
Element parentElement)
Marshall the given XMLObject and append it as a child to the given parent element.
|
public Element marshall(XMLObject xmlObject) throws MarshallingException
DocumentBuilder
obtained from a DocumentBuilderFactory
created without any additional parameters or properties set; that is the system defaults properties are used.marshall
in interface Marshaller
xmlObject
- the object to marshallMarshallingException
- thrown if there is a problem marshalling the given objectpublic Element marshall(XMLObject xmlObject, Element parentElement) throws MarshallingException
marshall
in interface Marshaller
xmlObject
- the XMLObject to be marshalledparentElement
- the parent of the Element resulting from marshalling the given XMLObjectMarshallingException
- thrown if the given XMLObject can not be marshalled.public Element marshall(XMLObject xmlObject, Document document) throws MarshallingException
marshall
in interface Marshaller
xmlObject
- the object to marshalldocument
- the DOM document the marshalled element will be placed inMarshallingException
- thrown if there is a problem marshalling the given objectCopyright © 2016 JBoss by Red Hat. All rights reserved.