|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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
boolean setValues(MetaData<? extends V,? extends E> aMetaData) throws CannotModifyPropertyException
aMetaData
- meta data to set
true
if this ModifiableMetaData
was
changed as a result of this call
CannotModifyPropertyException
- in case a specified meta data cannot be set; in this case,
the meta data are set only partiallyV removeName(java.lang.String aName) throws CannotModifyPropertyException
aName
- name of meta data to remove
null
is returned
CannotModifyPropertyException
- in case the meta data cannot be removedboolean removeNames(java.util.Collection<java.lang.String> aCollection) throws CannotModifyPropertyException
aCollection
- collection of names of meta data to remove
true
if this ModifiableMetaData
was
changed as a result of this call
CannotModifyPropertyException
- in case a specified meta data cannot be removed; in this
case, the meta data are removed only partiallyboolean removeNames() throws CannotModifyPropertyException
true
if this ModifiableMetaData
was
changed as a result of this call
CannotModifyPropertyException
- in case a meta data cannot be removed; in this case, the meta
data are removed only partiallyboolean retainNames(java.util.Collection<java.lang.String> aCollection) throws CannotModifyPropertyException
aCollection
- names of meta data to retain
true
if this ModifiableMetaData
was
changed as a result of this call
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.boolean confirmSetValue(java.lang.String aName, V aValue)
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
true
if the meta data may be set,
false
otherwiseboolean confirmSetValues(MetaData<? extends V,? extends E> aMetaData)
aMetaData
- meta data for which to indicate if it may be set
true
if the specfied meta data may be set,
false
otherwiseboolean confirmRemoveName(java.lang.String aName)
aName
- name identifying the meta data
true
if the specified meta data may be removed,
false
otherwiseboolean confirmRemoveNames(java.util.Collection<java.lang.String> aCollection)
aCollection
- collection of names identifying meta data for which to
indicate if they may be removed
true
if the specified meta data may be removed,
false
otherwiseboolean confirmRemoveNames()
true
if all meta data may be remvoed,
false
otherwiseboolean confirmRetainNames(java.util.Collection<java.lang.String> aCollection)
aCollection
- collection of names identifying meta data for which to
indicate if they may be retained
true
in case the meta data may be retained,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |