net.shibboleth.metadata.dom
Class DomElementItem
java.lang.Object
net.shibboleth.metadata.AbstractItem<Element>
net.shibboleth.metadata.dom.DomElementItem
- All Implemented Interfaces:
- Serializable, Item<Element>
@ThreadSafe
public class DomElementItem
- extends AbstractItem<Element>
A Item whose data is a DOM, version 3, Element.
The Element wrapped by this Item is always the document element of the document that owns the
Element.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Serial version UID.
- See Also:
- Constant Field Values
DomElementItem
public DomElementItem(@Nonnull
Document document)
- Constructor. The document element of the given document becomes the
Element value for this item.
- Parameters:
document - document whose document element becomes the value for this Item; may not be null and must have a
document element
DomElementItem
public DomElementItem(@Nonnull
Element element)
- Constructor. A new
Document is created and the given Element is deep-imported in to the new
document via Document.importNode(org.w3c.dom.Node, boolean), and the resultant Element is set as
the new document's root.
- Parameters:
element - element that is copied to become the value of this Item
copy
public Item<Element> copy()
- Performs a copy of this Item. All member fields, except
ItemMetadata, should be deep cloned.
ItemMetadata objects must be shared between the clone and the original.
- Returns:
- the clone of this element
Copyright © 1999-2012. All Rights Reserved.