| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AggregatedMetaDataLocator
This interface provides a locator for meta data which is composed of more than one
meta data instance. It provides a method to determine if
a meta data value is inherited or not.
A value is considered inherited if the meta data value for
a given name is set on a parent layer of the composed meta
data and not on the current layer itself.
Coding example:
MetaData metaData = ...; if (metaData instanceof LocatorProvider) { Locator locator = ((LocatorProvider) metaData).getLocator(); if (locator instanceof AggregatedMetaDataLocator) { boolean inherited = ((AggregatedMetaDataLocator) locator).isInherited(aName); ... } else { // no meta data locator available } } else { // no locator available! }
Method Summary | |
---|---|
java.lang.Object | findByID(ObjectID anObjectID)
This operation is not allowed on this locator and will result in a UnsupportedOperationException. |
java.lang.Object | findByUniqueName(java.lang.String aName)
This operation is not allowed on this locator and will result in a UnsupportedOperationException. |
ListModel | getValues(java.lang.String aName)
Returns a list model for the given name of the aggregated meta data. |
boolean | isInherited(java.lang.String aName)
Indicates whether the value corresponding to the given name is inherited or not. |
Method Detail |
---|
boolean isInherited(java.lang.String aName)
null
false
if the value is defined on the current layer,
true
otherwiseListModel getValues(java.lang.String aName)
null
java.lang.Object findByID(ObjectID anObjectID)
null
.
java.lang.Object findByUniqueName(java.lang.String aName)
null
.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |