Package net.shibboleth.metadata
Class AbstractItem<T>
java.lang.Object
net.shibboleth.metadata.AbstractItem<T>
- Type Parameters:
T- type of data contained in the item
- All Implemented Interfaces:
Item<T>
- Direct Known Subclasses:
DOMElementItem
Base implementation of an
Item.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TThe actual data held by the item.private final net.shibboleth.shared.collection.ClassToInstanceMultiMap<ItemMetadata>Additional processing information associated with thisItem. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal net.shibboleth.shared.collection.ClassToInstanceMultiMap<ItemMetadata>Gets all of the metadata attached to this Item.final Tunwrap()Gets the wrapped item data.
-
Field Details
-
data
The actual data held by the item. -
metadata
@Nonnull @NonnullElements private final net.shibboleth.shared.collection.ClassToInstanceMultiMap<ItemMetadata> metadataAdditional processing information associated with thisItem.
-
-
Constructor Details
-
AbstractItem
Constructor.- Parameters:
newData- data to wrap in theItem
-
-
Method Details
-
unwrap
Description copied from interface:ItemGets the wrapped item data. -
getItemMetadata
@Nonnull @NonnullElements public final net.shibboleth.shared.collection.ClassToInstanceMultiMap<ItemMetadata> getItemMetadata()Description copied from interface:ItemGets all of the metadata attached to this Item.- Specified by:
getItemMetadatain interfaceItem<T>- Returns:
- metadata attached to this Item
-