Package net.shibboleth.metadata.dom
Class DOMElementItem
-
Constructor Summary
ConstructorsConstructorDescriptionDOMElementItem(Document document) Constructor.DOMElementItem(Element element) Constructor. -
Method Summary
Methods inherited from class net.shibboleth.metadata.AbstractItem
getItemMetadata, unwrap
-
Constructor Details
-
DOMElementItem
Constructor.The document element of the given document becomes the
Elementvalue 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
Constructor.A new
Documentis created and the givenElementis deep-imported in to the new document viaDocument.importNode(org.w3c.dom.Node, boolean). The resultingElementis set as the new document's root.- Parameters:
element- element that is copied to become the value of this Item
-
-
Method Details
-
processDocument
- Parameters:
document-Documentto wrap- Returns:
- processed element
-
processElement
Process anElementfor wrapping by anItem.A new
Documentis created and the givenElementis deep-imported in to the new document viaDocument.importNode(org.w3c.dom.Node, boolean). The resultingElementis set as the new document's root.- Parameters:
element-Elementto process- Returns:
- processed element
-
copy
Description copied from interface:ItemPerforms a copy of this Item. All member fields, exceptItemMetadata, should be deep cloned.ItemMetadataobjects must be shared between the clone and the original.- Returns:
- the clone of this
Item
-