|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CandyFinder
This interface is a main entry point to a set of controlled vocabularies. The implementation is supposed to behave as a Java bean (usually an invisible bean unless it implements some additional GUI methods which are not defined in this interface).
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_FINDER_NAME
A default name of this (and any) finder. |
static java.lang.String |
PROP_VOCABULARY
A property name. |
| Method Summary | |
|---|---|
void |
connect()
*********************************************************************** It creates a connection to an object representing a vocabulary finder, or/and it makes all necessary initialization steps needed for further communication. |
void |
disconnect()
*********************************************************************** It closes connection with the finder object. |
CandyVocabulary[] |
getAllVocabularies()
********************************************************************** It returns all available vocabularies. |
java.lang.String[] |
getAllVocabularyNames()
********************************************************************** It returns names of all vocabularies known to this vocabulary finder. |
java.lang.String |
getFinderName()
********************************************************************** It returns a name of this vocabulary finder. |
int |
getNumCount()
********************************************************************** It returns the number of available vocabularies. |
CandyVocabulary |
getVocabularyByName(java.lang.String name)
********************************************************************** It returns a selected vocabulary. |
boolean |
isReady()
*********************************************************************** It checks if a vocabulary finder object is available. |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
static final java.lang.String DEFAULT_FINDER_NAME
static final java.lang.String PROP_VOCABULARY
CandyVocabulary.
It this property is set a given vocabulary becomes part of
this finder.
| Method Detail |
|---|
void connect()
throws NestedException
NestedException - if the connection/initialization cannot
be established
***********************************************************************boolean isReady()
void disconnect()
java.lang.String[] getAllVocabularyNames()
throws NestedException
getVocabularyByName.
NestedException - if the finder fails to communicate
with its vocabularies
***********************************************************************
CandyVocabulary getVocabularyByName(java.lang.String name)
throws NestedException
name - a name of a vocabulary to be returned
NestedException - when the vocabulary cannot be found (likely the
given name is wrong)
***********************************************************************getAllVocabularyNames()
CandyVocabulary[] getAllVocabularies()
throws NestedException
NestedException - if the finder fails to communicate
with its vocabularies
***********************************************************************
int getNumCount()
throws NestedException
NestedException - if the finder fails to communicate
with its vocabularies
***********************************************************************
java.lang.String getFinderName()
throws NestedException
NestedException - if the finder fails to return its name
***********************************************************************
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||