net.shibboleth.metadata
Class MockItem

java.lang.Object
  extended by net.shibboleth.metadata.AbstractItem<String>
      extended by net.shibboleth.metadata.MockItem
All Implemented Interfaces:
Serializable, net.shibboleth.metadata.Item<String>

public class MockItem
extends net.shibboleth.metadata.AbstractItem<String>

A mock implementation of Item.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial version UID.
 
Constructor Summary
MockItem(String str)
          Constructor.
 
Method Summary
 net.shibboleth.metadata.Item<String> copy()
          
 boolean equals(Object obj)
          
 int hashCode()
          
 void setData(String data)
          
 void setMetadataInfo(net.shibboleth.metadata.util.ClassToInstanceMultiMap<net.shibboleth.metadata.ItemMetadata> info)
          Sets the metadata for this Item.
 
Methods inherited from class net.shibboleth.metadata.AbstractItem
getItemMetadata, unwrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID.

See Also:
Constant Field Values
Constructor Detail

MockItem

public MockItem(String str)
Constructor.

Parameters:
str - data held by this item
Method Detail

setData

public void setData(String data)

Overrides:
setData in class net.shibboleth.metadata.AbstractItem<String>

setMetadataInfo

public void setMetadataInfo(net.shibboleth.metadata.util.ClassToInstanceMultiMap<net.shibboleth.metadata.ItemMetadata> info)
Sets the metadata for this Item.

Parameters:
info - metadata for this Item

copy

public net.shibboleth.metadata.Item<String> copy()


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 1999-2012. All Rights Reserved.