| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetaDataNameLocator
A locator for the meta data names list model that can be used to
determine if a specific key is present. This locator is optionally
provided by the list model exposing the meta data names of a meta
data object.
Coding example:
MetaData metaData = ...; ListModel namesList = metaData.getNames(); if (namesList instanceof LocatorProvider) { Locator locator = ((LocatorProvider) namesList).getLocator(); if (locator instanceof MetaDataNameLocator) { boolean containsName = ((MetaDataNameLocator) locator).contains(aName); ... } else { // no name locator available } } else { // no locator available! }
Method Summary | |
---|---|
boolean | contains(java.lang.String aName)
Indicates whether the given name exists in the associated meta data object. |
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. |
Method Detail |
---|
boolean contains(java.lang.String aName)
null
true
if the name is known, false
otherwisejava.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 |