|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifiableMetaData<V,E extends java.util.Map.Entry<java.lang.String,V>>
An interface representing modifiable meta data. It can be obtained through
the ModifiableMetaDataProvider
.
Method Summary | |
---|---|
boolean |
confirmRemoveName(java.lang.String aName)
Indicates if the specifed meta data may be removed. |
boolean |
confirmRemoveNames()
Indicates if all meta data may be removed. |
boolean |
confirmRemoveNames(java.util.Collection<java.lang.String> aCollection)
Indicates if the specified meta data may be removed. |
boolean |
confirmRetainNames(java.util.Collection<java.lang.String> aCollection)
Indicates if the specified meta data may be retained. |
boolean |
confirmSetValue(java.lang.String aName,
V aValue)
Indicates if the specified meta data may be set. |
boolean |
confirmSetValues(MetaData<? extends V,? extends E> aMetaData)
Indicates if the specified meta data may be set. |
V |
removeName(java.lang.String aName)
Removes the meta data identified with the specified name. |
boolean |
removeNames()
Removes all meta data. |
boolean |
removeNames(java.util.Collection<java.lang.String> aCollection)
Removes the meta data identified by the names specified in the collection. |
boolean |
retainNames(java.util.Collection<java.lang.String> aCollection)
Retains only the meta data identified by the names specified in the collection. |
V |
setValue(java.lang.String aName,
V aValue)
Sets the value for the meta data identified by the specified name. |
boolean |
setValues(MetaData<? extends V,? extends E> aMetaData)
Sets the specified meta data. |
Methods inherited from interface com.ibm.portal.MetaData |
---|
getNames, getValue, iterator |
Method Detail |
---|
V setValue(java.lang.String aName, V aValue) throws CannotModifyPropertyException
aName
- name of meta data to set the value foraValue
- meta data value to set; must not be null
Returns:
the former value for the name; if none existed, null
is returned
Throws:
CannotModifyPropertyException
- in case the value of the meta data cannot be set
setValues
boolean setValues(MetaData<? extends V,? extends E> aMetaData)
throws CannotModifyPropertyException
- Sets the specified meta data.
- Parameters:
aMetaData
- meta data to set
- Returns:
true
if this ModifiableMetaData
was
changed as a result of this call
- Throws:
CannotModifyPropertyException
- in case a specified meta data cannot be set; in this case,
the meta data are set only partially
removeName
V removeName(java.lang.String aName)
throws CannotModifyPropertyException
- Removes the meta data identified with the specified name.
- Parameters:
aName
- name of meta data to remove
- Returns:
- the former value for the name; if none existed,
null
is returned
- Throws:
CannotModifyPropertyException
- in case the meta data cannot be removed
removeNames
boolean removeNames(java.util.Collection<java.lang.String> aCollection)
throws CannotModifyPropertyException
- Removes the meta data identified by the names specified in the
collection.
- Parameters:
aCollection
- collection of names of meta data to remove
- Returns:
true
if this ModifiableMetaData
was
changed as a result of this call
- Throws:
CannotModifyPropertyException
- in case a specified meta data cannot be removed; in this
case, the meta data are removed only partially
removeNames
boolean removeNames()
throws CannotModifyPropertyException
- Removes all meta data.
- Returns:
true
if this ModifiableMetaData
was
changed as a result of this call
- Throws:
CannotModifyPropertyException
- in case a meta data cannot be removed; in this case, the meta
data are removed only partially
retainNames
boolean retainNames(java.util.Collection<java.lang.String> aCollection)
throws CannotModifyPropertyException
- Retains only the meta data identified by the names specified in the
collection.
- Parameters:
aCollection
- names of meta data to retain
- Returns:
true
if this ModifiableMetaData
was
changed as a result of this call
- Throws:
CannotModifyPropertyException
- in case a meta data, which is not to be retained, cannot be
removed; in this case, the meta data is removed only
partially.
confirmSetValue
boolean confirmSetValue(java.lang.String aName,
V aValue)
- Indicates if the specified meta data may be set.
- Parameters:
aName
- name identifying the meta data for which to indicate if the
specified value may be setaValue
- meta data value for which to indicate if it may be set
- Returns:
true
if the meta data may be set,
false
otherwise
confirmSetValues
boolean confirmSetValues(MetaData<? extends V,? extends E> aMetaData)
- Indicates if the specified meta data may be set.
- Parameters:
aMetaData
- meta data for which to indicate if it may be set
- Returns:
true
if the specfied meta data may be set,
false
otherwise
confirmRemoveName
boolean confirmRemoveName(java.lang.String aName)
- Indicates if the specifed meta data may be removed.
- Parameters:
aName
- name identifying the meta data
- Returns:
true
if the specified meta data may be removed,
false
otherwise
confirmRemoveNames
boolean confirmRemoveNames(java.util.Collection<java.lang.String> aCollection)
- Indicates if the specified meta data may be removed.
- Parameters:
aCollection
- collection of names identifying meta data for which to
indicate if they may be removed
- Returns:
true
if the specified meta data may be removed,
false
otherwise
confirmRemoveNames
boolean confirmRemoveNames()
- Indicates if all meta data may be removed.
- Returns:
true
if all meta data may be remvoed,
false
otherwise
confirmRetainNames
boolean confirmRetainNames(java.util.Collection<java.lang.String> aCollection)
- Indicates if the specified meta data may be retained.
- Parameters:
aCollection
- collection of names identifying meta data for which to
indicate if they may be retained
- Returns:
true
in case the meta data may be retained,
false
otherwise
Overview
Package
Class
Tree
Serialized
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD