|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.base.text.Nomenclature
A Nomenclature is an ordered collection of NomenclatureItem
instances.
NomenclatureItem
Field Summary | |
static Step |
_items
|
static Comparator |
ComparatorByLabel
|
static Nomenclature |
EMPTY
|
Constructor Summary | |
Nomenclature()
Creates Nomenclature with labels size equal to 1. |
|
Nomenclature(int numberOfLabels)
Creates Nomenclature with specified labels size. |
Method Summary | |
Nomenclature |
addItem(NomenclatureItem anItem)
Adds a NomenclatureItem to this instance. |
Nomenclature |
addItemSeparator(Object aValue,
String aLabel)
Adds a NomenclatureItemSeparator with the content specified to this instance. |
Nomenclature |
addItemSeparator(Object aValue,
String[] aLabels)
Adds a NomenclatureItemSeparator with the content specified to this instance. |
Nomenclature |
addItemTitle(Object aValue,
String aTitle)
Adds a NomenclatureItemTitle with the content specified to this instance. |
Nomenclature |
addItemTitle(Object aValue,
String[] aTitles)
Adds a NomenclatureItemTitle with the content specified to this instance. |
Nomenclature |
addItemTitle(Object aValue,
String[] aTitles,
int level)
Adds a NomenclatureItemTitle with the content specified to this instance. |
Nomenclature |
addItemTitle(Object aValue,
String aTitle,
int level)
Adds a NomenclatureItemTitle with the content specified to this instance. |
Nomenclature |
addItemValue(Object aValue,
String aLabel)
Adds a NomenclatureItemValue with the content specified to this instance. |
Nomenclature |
addItemValue(Object aValue,
String[] aLabels)
Adds a NomenclatureItemValue with the content specified to this instance. |
Nomenclature |
addNomenclature(Nomenclature anotherNomenclature)
Adds all the item of the specified Nomenclature to this instance. |
boolean |
equals(Object x)
|
NomenclatureItem |
findNomenclatureItemWithValue(Object aSearchedValue)
Returns first occurrence of NomenclatureItem whose value is equal to the
argument. |
List |
getAllValues()
Returns all the item's values. |
List |
getItems()
Returns all items (internal, used for debug tag) |
NomenclatureItem |
getItems(int index)
Returns the item at the specified position in this nomenclature. |
Iterator |
getItemsIterator()
Returns an iterator over all the items of this nomenclature. |
int |
getLabelsSize()
Returns the number of labels that each item of this nomenclature must have. |
int |
getSize()
Returns the number of items in this nomenclature. |
void |
setItems(List aList)
Deprecated. |
void |
setLastItemAsDefault(boolean isDefault)
Set last added item as default. |
void |
sortByLabel()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Nomenclature EMPTY
public static final Step _items
public static final Comparator ComparatorByLabel
Constructor Detail |
public Nomenclature()
public Nomenclature(int numberOfLabels)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
,
getLabelsSize()
Method Detail |
public Nomenclature addItem(NomenclatureItem anItem) throws IllegalArgumentException
IllegalArgumentException
- If the item to be added has not the same number of labels as the number
specified in this constructorNomenclature(int)
,
addNomenclature(com.softwareag.mdm.base.text.Nomenclature)
public Nomenclature addItemSeparator(Object aValue, String[] aLabels)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemSeparator(Object aValue, String aLabel)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemTitle(Object aValue, String[] aTitles)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemTitle(Object aValue, String[] aTitles, int level)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemTitle(Object aValue, String aTitle)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemTitle(Object aValue, String aTitle, int level)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemValue(Object aValue, String[] aLabels)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addItemValue(Object aValue, String aLabel)
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public Nomenclature addNomenclature(Nomenclature anotherNomenclature) throws com.softwareag.mdm.base.misc.PreconditionFailure
com.softwareag.mdm.base.misc.PreconditionFailure
- If the nomenclature to be added has not the same number of labels as the
number specified in this instance.addItem(com.softwareag.mdm.base.text.NomenclatureItem)
public boolean equals(Object x)
public NomenclatureItem findNomenclatureItemWithValue(Object aSearchedValue)
NomenclatureItem
whose value is equal to the
argument. Returns null
if no item is found.
public List getAllValues()
true
to method
isValueItem()
are included in the list returned.
NomenclatureItem.isValueItem()
public List getItems()
public NomenclatureItem getItems(int index)
public Iterator getItemsIterator()
public int getLabelsSize()
Nomenclature(int)
public int getSize()
public void setItems(List aList)
addItem()
or addNomenclature()
addItem(com.softwareag.mdm.base.text.NomenclatureItem)
,
addNomenclature(com.softwareag.mdm.base.text.Nomenclature)
public void setLastItemAsDefault(boolean isDefault) throws IllegalStateException
IllegalStateException
- If this nomenclature has no itemNomenclatureItem.setDefaultItem(boolean)
public void sortByLabel()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.