|
||||||||||
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! }
LocatorProvider
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)
aName
- the name to check, must not be null
true
if the name is known, false
otherwisejava.lang.Object findByID(ObjectID anObjectID)
UnsupportedOperationException
.
findByID
in interface Locator
anObjectID
- the id of the object to find. Must not be null
.
java.lang.UnsupportedOperationException
java.lang.Object findByUniqueName(java.lang.String aName)
UnsupportedOperationException
.
findByUniqueName
in interface Locator
aName
- 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 |