|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CandyVocabulary
This interface defines functionality of a controlled vocabulary. The implementation is supposed to behave as a Java bean (regarding accessing vocabulary properties). Each vocabulary consists of (usually many) vocabulary entries which are represented by
CandyEntries.
| Field Summary | |
|---|---|
static java.lang.String |
CANDIES_NOT_SORTED
A property name. |
static java.lang.String |
PROP_CASE_SENSITIVE
A property name. |
static java.lang.String |
PROP_ENTRY_COUNT
A property name. |
static java.lang.String |
PROP_VOCAB_DESC
A property name. |
static java.lang.String |
PROP_VOCAB_NAME
A property name. |
static java.lang.String |
PROP_VOCAB_VERSION
A property name. |
static java.lang.String |
PROP_VOCABULARY
A property name. |
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String name)
********************************************************************** It checks if a given entry exists in this vocabulary. |
void |
destroy()
********************************************************************** It frees all resources related to this vocabulary. |
java.util.Enumeration |
getAllEntries()
********************************************************************** It returns all available vocabulary entries. |
java.util.Enumeration |
getAllNames()
********************************************************************** It return all names (entry identifiers) available in this vocabulary. |
int |
getCount()
It returns a number of entries contained in this vocabulary. |
java.lang.String |
getDescription()
It returns a description of this vocabulary. |
CandyEntry |
getEntryByName(java.lang.String name)
********************************************************************** It returns a selected vocabulary entry. |
java.lang.String |
getName()
It returns a name of this vocabulary. |
java.lang.String |
getVersion()
It returns a vesrion of this vocabulary. |
boolean |
isCaseSensitive()
It returns true if the vocabulary entries should be considered as case-sensitive. |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
static final java.lang.String PROP_VOCAB_NAME
static final java.lang.String PROP_VOCAB_DESC
static final java.lang.String PROP_VOCAB_VERSION
static final java.lang.String PROP_CASE_SENSITIVE
static final java.lang.String PROP_ENTRY_COUNT
static final java.lang.String PROP_VOCABULARY
CandyVocabulary and
it can be used to set an entire vocabulary.
An implementation may use it together with an empty
constructor.
static final java.lang.String CANDIES_NOT_SORTED
| Method Detail |
|---|
boolean contains(java.lang.String name)
throws NestedException
name - of a vocabulary entry to be checked
NestedException - if the vocabulary is suddenly not available
***********************************************************************
CandyEntry getEntryByName(java.lang.String name)
throws NestedException
name - a name of a vocabulary entry to be looked up
NestedException - when the given vocabulary entry does not exist
***********************************************************************getAllEntries
java.util.Enumeration getAllEntries()
throws NestedException
NestedException - if the vocabulary is suddenly not available
***********************************************************************getEntryByName
java.util.Enumeration getAllNames()
throws NestedException
NestedException - if the vocabulary is suddenly not available
***********************************************************************
void destroy()
throws NestedException
NestedException - if the vocabulary is suddenly not available
***********************************************************************
java.lang.String getName()
throws NestedException
CandyFinder
instance who delivers this vocabulary.
NestedException
java.lang.String getDescription()
throws NestedException
NestedException
java.lang.String getVersion()
throws NestedException
NestedException
int getCount()
throws NestedException
NestedException
boolean isCaseSensitive()
throws NestedException
NestedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||