|
||||||||||
| 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!
}
LocatorProvider| 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)
aName - the name to check, must not be null
false if the value is defined on the current layer,
true otherwiseListModel getValues(java.lang.String aName)
MetaData.getValue(String) and then continues with
the values in the order of the inheritance of the aggregated meta
data.
aName - the meta data name
nulljava.lang.Object findByID(ObjectID anObjectID)
UnsupportedOperationException.
findByID in interface LocatoranObjectID - the id of the object to find. Must not be null.
java.lang.UnsupportedOperationExceptionjava.lang.Object findByUniqueName(java.lang.String aName)
UnsupportedOperationException.
findByUniqueName in interface LocatoraName - the name of the object to find. Must not be null.
java.lang.UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||