public class CategoriesList extends Observable implements IDecisionCategories, Observer, XMLSerializable
IDecisionCategory| Modifier and Type | Field and Description |
|---|---|
protected boolean |
multilabel |
protected IDecisionCategory |
selected |
protected ArrayList<IDecisionCategory> |
storage |
xmltag_CATEGORIES, xmltag_CATEGORY, xmltag_CATEGORYTHRESHOLD, xmltag_CLASS, xmltag_EXPLANATION, xmltag_ID, xmltag_METHOD, xmltag_METHODPARAMETER, xmltag_METHODS, xmltag_NAME, xmltag_RULE, xmltag_RULEEXAMPLE, xmltag_RULES, xmltag_TREEROOT| Constructor and Description |
|---|
CategoriesList() |
CategoriesList(IDecisionCategory[] classes) |
CategoriesList(IDecisionCategory[] classes,
boolean multilabel) |
CategoriesList(String[] classes) |
CategoriesList(String[] classes,
boolean multilabel) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected ArrayList<IDecisionCategory> storage
protected IDecisionCategory selected
protected boolean multilabel
public CategoriesList()
public CategoriesList(IDecisionCategory[] classes)
public CategoriesList(IDecisionCategory[] classes, boolean multilabel)
public CategoriesList(String[] classes)
public CategoriesList(String[] classes, boolean multilabel)
public IDecisionCategory getCategory(IDecisionCategory key)
getCategory in interface IDecisionCategoriespublic void addCategory(IDecisionCategory category)
addCategory in interface IDecisionCategoriespublic int size()
size in interface Collection<IDecisionCategory>size in interface List<IDecisionCategory>size in interface IDecisionCategoriespublic void clear()
clear in interface Collection<IDecisionCategory>clear in interface List<IDecisionCategory>clear in interface IDecisionCategoriespublic boolean equals(Object o)
equals in interface Collection<IDecisionCategory>equals in interface List<IDecisionCategory>equals in class Objectpublic IDecisionCategory getSelected()
public void setSelected(IDecisionCategory category)
setSelected in interface IDecisionCategoriespublic void add(int arg0,
IDecisionCategory arg1)
add in interface List<IDecisionCategory>public boolean add(IDecisionCategory arg0)
add in interface Collection<IDecisionCategory>add in interface List<IDecisionCategory>public boolean addAll(Collection arg0)
addAll in interface Collection<IDecisionCategory>addAll in interface List<IDecisionCategory>public boolean addAll(int arg0,
Collection arg1)
addAll in interface List<IDecisionCategory>public boolean contains(Object arg0)
contains in interface Collection<IDecisionCategory>contains in interface List<IDecisionCategory>public boolean containsAll(Collection arg0)
containsAll in interface Collection<IDecisionCategory>containsAll in interface List<IDecisionCategory>public IDecisionCategory get(int arg0)
get in interface List<IDecisionCategory>public IDecisionCategory remove(int arg0)
remove in interface List<IDecisionCategory>public boolean remove(Object arg0)
remove in interface Collection<IDecisionCategory>remove in interface List<IDecisionCategory>public boolean removeAll(Collection arg0)
removeAll in interface Collection<IDecisionCategory>removeAll in interface List<IDecisionCategory>public boolean retainAll(Collection arg0)
retainAll in interface Collection<IDecisionCategory>retainAll in interface List<IDecisionCategory>public Object[] toArray()
toArray in interface Collection<IDecisionCategory>toArray in interface List<IDecisionCategory>public Iterator<IDecisionCategory> iterator()
iterator in interface Iterable<IDecisionCategory>iterator in interface Collection<IDecisionCategory>iterator in interface List<IDecisionCategory>public IDecisionCategory set(int arg0, IDecisionCategory arg1)
set in interface List<IDecisionCategory>public int indexOf(Object arg0)
indexOf in interface List<IDecisionCategory>public List<IDecisionCategory> subList(int arg0, int arg1)
subList in interface List<IDecisionCategory>public ListIterator<IDecisionCategory> listIterator()
listIterator in interface List<IDecisionCategory>public ListIterator<IDecisionCategory> listIterator(int arg0)
listIterator in interface List<IDecisionCategory>public int lastIndexOf(Object arg0)
lastIndexOf in interface List<IDecisionCategory>public boolean isEmpty()
isEmpty in interface Collection<IDecisionCategory>isEmpty in interface List<IDecisionCategory>public void fromXML(Element xml) throws XMLDecisionMethodException
fromXML in interface XMLSerializableXMLDecisionMethodExceptionpublic Element toShallowXML(Document document) throws XMLDecisionMethodException
toShallowXML in interface XMLSerializableXMLDecisionMethodExceptionpublic Element toXML(Document document) throws XMLDecisionMethodException
toXML in interface XMLSerializableXMLDecisionMethodExceptionpublic void update(Observable arg0, Object arg1)
public ArrayList getStorage()
public void setStorage(ArrayList<IDecisionCategory> storage)
public <T> T[] toArray(T[] a)
toArray in interface Collection<IDecisionCategory>toArray in interface List<IDecisionCategory>public boolean isMultilabel()
isMultilabel in interface IDecisionCategoriespublic void setMultilabel(boolean multilabel)
setMultilabel in interface IDecisionCategoriespublic void selectAll(boolean selected)
selectAll in interface IDecisionCategoriesCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.