Class DOMElementSerializer

java.lang.Object
net.shibboleth.metadata.dom.DOMElementSerializer
All Implemented Interfaces:
ItemCollectionSerializer<Element>, ItemSerializer<Element>

@ThreadSafe public class DOMElementSerializer extends Object implements ItemSerializer<Element>, ItemCollectionSerializer<Element>
Very simple ItemSerializer that serializes the document element of the given Element-based Item. When used as an ItemCollectionSerializer, just serializes the first Item in the collection. This will result in well-formed XML, but any other items in the collection will simply be ignored.