net.shibboleth.metadata
Interface Item<T>

Type Parameters:
T - type of metadata element
All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractItem, DomElementItem

public interface Item<T>
extends Serializable

A wrapper around a piece of information processed by pipeline stages.


Method Summary
 Item<T> copy()
          Performs a copy of this Item.
 ClassToInstanceMultiMap<ItemMetadata> getItemMetadata()
          Gets all of the metadata attached to this Item.
 T unwrap()
          Gets the wrapped item data.
 

Method Detail

unwrap

@Nullable
T unwrap()
Gets the wrapped item data.

Returns:
the wrapped item data

getItemMetadata

@Nonnull
ClassToInstanceMultiMap<ItemMetadata> getItemMetadata()
Gets all of the metadata attached to this Item.

Returns:
metadata attached to this Item

copy

@Nonnull
Item<T> 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.