public class DefaultCategory extends Observable implements IDecisionCategory, XMLSerializable
IDecisionCategory interface| Modifier and Type | Field and Description |
|---|---|
protected String |
explanation |
protected int |
id |
protected String |
name |
protected boolean |
selected |
protected String |
threshold |
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 |
|---|
DefaultCategory()
Constructor
|
DefaultCategory(String name,
int id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IDecisionCategory o) |
boolean |
equals(Object obj) |
void |
fromXML(Element xml) |
ambit2.base.interfaces.ICategory.CategoryType |
getCategoryType() |
IDecisionCategoryEditor |
getEditor() |
String |
getExplanation() |
int |
getID() |
String |
getName() |
ambit2.base.interfaces.ICategory.CategoryType |
getNegativeCategoryType() |
String |
getThreshold() |
boolean |
isSelected() |
void |
setCategoryType(ambit2.base.interfaces.ICategory.CategoryType categoryType) |
void |
setExplanation(String explanation) |
void |
setID(int id) |
void |
setName(String name) |
void |
setSelected(boolean selected) |
void |
setThreshold(String threshold) |
Element |
toShallowXML(Document document) |
String |
toString() |
Element |
toXML(Document document) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected String name
protected int id
protected String explanation
protected String threshold
protected boolean selected
public DefaultCategory()
public DefaultCategory(String name, int id)
name - id - public int getID()
getID in interface IDecisionCategoryIDecisionCategory.getID()public void setID(int id)
setID in interface IDecisionCategoryIDecisionCategory.setID(int)public String getName()
getName in interface ambit2.base.interfaces.ICategorygetName in interface IDecisionCategoryIDecisionCategory.getName()public void setName(String name)
setName in interface ambit2.base.interfaces.ICategorysetName in interface IDecisionCategoryIDecisionCategory.setName(java.lang.String)public int compareTo(IDecisionCategory o)
compareTo in interface Comparable<IDecisionCategory>public String getExplanation()
getExplanation in interface IDecisionCategorypublic void setExplanation(String explanation)
setExplanation in interface IDecisionCategorypublic String getThreshold()
getThreshold in interface IDecisionCategorypublic void setThreshold(String threshold)
setThreshold in interface IDecisionCategorypublic IDecisionCategoryEditor getEditor()
getEditor in interface IDecisionCategorypublic 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 boolean isSelected()
isSelected in interface IDecisionCategorypublic void setSelected(boolean selected)
setSelected in interface IDecisionCategorypublic void setCategoryType(ambit2.base.interfaces.ICategory.CategoryType categoryType)
setCategoryType in interface ambit2.base.interfaces.ICategorypublic ambit2.base.interfaces.ICategory.CategoryType getCategoryType()
getCategoryType in interface ambit2.base.interfaces.ICategorypublic ambit2.base.interfaces.ICategory.CategoryType getNegativeCategoryType()
getNegativeCategoryType in interface ambit2.base.interfaces.ICategoryCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.