toxTree.tree
Class CategoriesList
java.lang.Object
java.util.Observable
toxTree.tree.CategoriesList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<IDecisionCategory>, java.util.Collection<IDecisionCategory>, java.util.List<IDecisionCategory>, java.util.Observer, IDecisionCategories, XMLSerializable
public class CategoriesList
- extends java.util.Observable
- implements IDecisionCategories, java.util.Observer, XMLSerializable
A list of IDecisionCategory
- Author:
- Nina Jeliazkova
Modified 2005-8-8
- See Also:
- Serialized Form
Fields inherited from interface toxTree.core.XMLSerializable |
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 |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
hashCode |
storage
protected java.util.ArrayList<IDecisionCategory> storage
selected
protected IDecisionCategory selected
multilabel
protected boolean multilabel
CategoriesList
public CategoriesList()
CategoriesList
public CategoriesList(IDecisionCategory[] classes)
CategoriesList
public CategoriesList(IDecisionCategory[] classes,
boolean multilabel)
CategoriesList
public CategoriesList(java.lang.String[] classes)
CategoriesList
public CategoriesList(java.lang.String[] classes,
boolean multilabel)
getCategory
public IDecisionCategory getCategory(IDecisionCategory key)
- Specified by:
getCategory
in interface IDecisionCategories
addCategory
public void addCategory(IDecisionCategory category)
- Specified by:
addCategory
in interface IDecisionCategories
size
public int size()
- Specified by:
size
in interface java.util.Collection<IDecisionCategory>
- Specified by:
size
in interface java.util.List<IDecisionCategory>
- Specified by:
size
in interface IDecisionCategories
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<IDecisionCategory>
- Specified by:
clear
in interface java.util.List<IDecisionCategory>
- Specified by:
clear
in interface IDecisionCategories
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Collection<IDecisionCategory>
- Specified by:
equals
in interface java.util.List<IDecisionCategory>
- Overrides:
equals
in class java.lang.Object
getSelected
public IDecisionCategory getSelected()
setSelected
public void setSelected(IDecisionCategory category)
- Specified by:
setSelected
in interface IDecisionCategories
add
public void add(int arg0,
IDecisionCategory arg1)
- Specified by:
add
in interface java.util.List<IDecisionCategory>
add
public boolean add(IDecisionCategory arg0)
- Specified by:
add
in interface java.util.Collection<IDecisionCategory>
- Specified by:
add
in interface java.util.List<IDecisionCategory>
addAll
public boolean addAll(java.util.Collection arg0)
- Specified by:
addAll
in interface java.util.Collection<IDecisionCategory>
- Specified by:
addAll
in interface java.util.List<IDecisionCategory>
addAll
public boolean addAll(int arg0,
java.util.Collection arg1)
- Specified by:
addAll
in interface java.util.List<IDecisionCategory>
contains
public boolean contains(java.lang.Object arg0)
- Specified by:
contains
in interface java.util.Collection<IDecisionCategory>
- Specified by:
contains
in interface java.util.List<IDecisionCategory>
containsAll
public boolean containsAll(java.util.Collection arg0)
- Specified by:
containsAll
in interface java.util.Collection<IDecisionCategory>
- Specified by:
containsAll
in interface java.util.List<IDecisionCategory>
get
public IDecisionCategory get(int arg0)
- Specified by:
get
in interface java.util.List<IDecisionCategory>
remove
public IDecisionCategory remove(int arg0)
- Specified by:
remove
in interface java.util.List<IDecisionCategory>
remove
public boolean remove(java.lang.Object arg0)
- Specified by:
remove
in interface java.util.Collection<IDecisionCategory>
- Specified by:
remove
in interface java.util.List<IDecisionCategory>
removeAll
public boolean removeAll(java.util.Collection arg0)
- Specified by:
removeAll
in interface java.util.Collection<IDecisionCategory>
- Specified by:
removeAll
in interface java.util.List<IDecisionCategory>
retainAll
public boolean retainAll(java.util.Collection arg0)
- Specified by:
retainAll
in interface java.util.Collection<IDecisionCategory>
- Specified by:
retainAll
in interface java.util.List<IDecisionCategory>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<IDecisionCategory>
- Specified by:
toArray
in interface java.util.List<IDecisionCategory>
iterator
public java.util.Iterator<IDecisionCategory> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<IDecisionCategory>
- Specified by:
iterator
in interface java.util.Collection<IDecisionCategory>
- Specified by:
iterator
in interface java.util.List<IDecisionCategory>
set
public IDecisionCategory set(int arg0,
IDecisionCategory arg1)
- Specified by:
set
in interface java.util.List<IDecisionCategory>
indexOf
public int indexOf(java.lang.Object arg0)
- Specified by:
indexOf
in interface java.util.List<IDecisionCategory>
subList
public java.util.List<IDecisionCategory> subList(int arg0,
int arg1)
- Specified by:
subList
in interface java.util.List<IDecisionCategory>
listIterator
public java.util.ListIterator<IDecisionCategory> listIterator()
- Specified by:
listIterator
in interface java.util.List<IDecisionCategory>
listIterator
public java.util.ListIterator<IDecisionCategory> listIterator(int arg0)
- Specified by:
listIterator
in interface java.util.List<IDecisionCategory>
lastIndexOf
public int lastIndexOf(java.lang.Object arg0)
- Specified by:
lastIndexOf
in interface java.util.List<IDecisionCategory>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<IDecisionCategory>
- Specified by:
isEmpty
in interface java.util.List<IDecisionCategory>
fromXML
public void fromXML(org.w3c.dom.Element xml)
throws XMLDecisionMethodException
- Specified by:
fromXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
toShallowXML
public org.w3c.dom.Element toShallowXML(org.w3c.dom.Document document)
throws XMLDecisionMethodException
- Specified by:
toShallowXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
toXML
public org.w3c.dom.Element toXML(org.w3c.dom.Document document)
throws XMLDecisionMethodException
- Specified by:
toXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
update
public void update(java.util.Observable arg0,
java.lang.Object arg1)
- Specified by:
update
in interface java.util.Observer
getStorage
public java.util.ArrayList getStorage()
setStorage
public void setStorage(java.util.ArrayList<IDecisionCategory> storage)
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface java.util.Collection<IDecisionCategory>
- Specified by:
toArray
in interface java.util.List<IDecisionCategory>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isMultilabel
public boolean isMultilabel()
- Specified by:
isMultilabel
in interface IDecisionCategories
setMultilabel
public void setMultilabel(boolean multilabel)
- Specified by:
setMultilabel
in interface IDecisionCategories
selectAll
public void selectAll(boolean selected)
- Specified by:
selectAll
in interface IDecisionCategories
Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.