public class UserDataDelegate extends java.lang.Object implements UserDataContainer, java.lang.Cloneable
UserDataContainer.CopyAction| Modifier and Type | Field and Description |
|---|---|
protected static UserDataFactory |
factory |
protected UserDataContainer |
udc_delegate |
| Constructor and Description |
|---|
UserDataDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
Adds the specified data with the specified key to this object's
user data repository, with the specified CopyAction.
|
java.lang.Object |
clone() |
boolean |
containsUserDatumKey(java.lang.Object key)
Reports whether
key is a key of this user data container. |
java.lang.Object |
getUserDatum(java.lang.Object key)
Retrieves the object in this object's user data repository to which key
refers.
|
UserDataContainer.CopyAction |
getUserDatumCopyAction(java.lang.Object key)
Retrieves the CopyAction for the object stored in this object's
user data repository to which key refers.
|
java.util.Iterator |
getUserDatumKeyIterator()
Provides an iterator over this object's user data repository key set.
|
void |
importUserData(UserDataContainer udc)
Takes the user data stored in udc and copies it to this object's
user data repository, respecting each datum's CopyAction.
|
java.lang.Object |
removeUserDatum(java.lang.Object key)
Retrieves the object in this object's user data repository to which key
refers, and removes it from the repository.
|
static void |
setUserDataFactory(UserDataFactory udf) |
void |
setUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
If key refers to an existing user datum in this object's repository,
that datum is replaced by the specified datum.
|
protected UserDataContainer udc_delegate
protected static UserDataFactory factory
public static void setUserDataFactory(UserDataFactory udf)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface UserDataContainerclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void addUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
UserDataContaineraddUserDatum in interface UserDataContainerkey - the key of the datum being addeddatum - the datum being addedcopyAct - the CopyAction of the datum being addedpublic void importUserData(UserDataContainer udc)
UserDataContainerimportUserData in interface UserDataContainerudc - the source of the user data to be copied into this containerpublic java.util.Iterator getUserDatumKeyIterator()
UserDataContainergetUserDatumKeyIterator in interface UserDataContainerpublic UserDataContainer.CopyAction getUserDatumCopyAction(java.lang.Object key)
UserDataContainergetUserDatumCopyAction in interface UserDataContainerkey - the key of the datum whose CopyAction is requestedpublic java.lang.Object getUserDatum(java.lang.Object key)
UserDataContainergetUserDatum in interface UserDataContainerkey - the key of the datum to retrievepublic void setUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
UserDataContainersetUserDatum in interface UserDataContainerkey - the key of the datum being added/modifieddatum - the replacement/new datumcopyAct - the CopyAction for the new (key, datum) pairpublic java.lang.Object removeUserDatum(java.lang.Object key)
UserDataContainerremoveUserDatum in interface UserDataContainerkey - the key of the datum to be removedpublic boolean containsUserDatumKey(java.lang.Object key)
UserDataContainerkey is a key of this user data container.containsUserDatumKey in interface UserDataContainerkey - the key to be queriedkey is present in this user data container