toxTree.tree
Class DefaultCategory

java.lang.Object
  extended by java.util.Observable
      extended by toxTree.tree.DefaultCategory
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IDecisionCategory>, IDecisionCategory, XMLSerializable
Direct Known Subclasses:
CategoryAcetylcholinesteraseInhibitors, CategoryBiodegradable, CategoryCentralNervousSystemSeizureAgents, CategoryCorrosive, CategoryCorrosiveEye, CategoryCorrosiveSkin, CategoryElectrophileProelectrophileReactivity, CategoryIrritating, CategoryIrritatingOrCorrosive, CategoryMichaelAcceptor, CategoryModerateIrritation2Eye, CategoryNarcosis1, CategoryNarcosis2, CategoryNarcosis3, CategoryNotCorrosive, CategoryNotCorrosive2Eye, CategoryNotCorrosive2Skin, CategoryNotCorrosive2SkinAndIrritating2Eye, CategoryNotCorrosive2SkinEye, CategoryNotCorrosive2SkinOrIrritating2Eye, CategoryNotIrritating, CategoryNotIrritating2Eye, CategoryNotIrritatingOrCorrosive, CategoryNotIrritatingOrCorrosive2Eye, CategoryOxidativePhosphorylationUncouplers, CategoryPersistent, CategoryUnknown, CategoryUnknown, CategoryUnknown, CategoryUnknown, CategoryUnknown, Class1BaselineToxicity, Class2LessInertCompounds, Class3UnspecificReactivity, Class4SpecificMechanism, Class5Unknown, CramerClass1, CramerClass1, CramerClass2, CramerClass2, CramerClass3, CramerClass3, CYP1A2, CYP2A, CYP2B, CYP2C, CYP2D, CYP2E, CYP3A4, DefaultClass1, DefaultClass2, DNABindingCategory, Found, FuncCat1, FuncCat2, micronucleusClass1, micronucleusClass2, MutantCategory, NegligibleRisk, NoSites, NotASafetyConcern, NotFound, ProteinBindingCategory, RequireCompoundSpecificToxicityData, SitesHigherRank, SitesRank1, SitesRank2, SitesRank3, SkinSensitisationCategory

public class DefaultCategory
extends java.util.Observable
implements IDecisionCategory, XMLSerializable

The default class implementing IDecisionCategory interface

Version:
0.1, 2005-5-2
Author:
Nina Jeliazkova
See Also:
Serialized Form

Field Summary
protected  java.lang.String explanation
           
protected  int id
           
protected  java.lang.String name
           
protected  boolean selected
           
protected  java.lang.String threshold
           
 
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
 
Constructor Summary
DefaultCategory()
          Constructor
DefaultCategory(java.lang.String name, int id)
          Constructor
 
Method Summary
 int compareTo(IDecisionCategory o)
           
 boolean equals(java.lang.Object obj)
           
 void fromXML(org.w3c.dom.Element xml)
           
 IDecisionCategoryEditor getEditor()
           
 java.lang.String getExplanation()
           
 int getID()
           
 java.lang.String getName()
           
 java.lang.String getThreshold()
           
 boolean isSelected()
           
 void setExplanation(java.lang.String explanation)
           
 void setID(int id)
           
 void setName(java.lang.String name)
           
 void setSelected(boolean selected)
           
 void setThreshold(java.lang.String threshold)
           
 org.w3c.dom.Element toShallowXML(org.w3c.dom.Document document)
           
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document document)
           
 
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
 

Field Detail

name

protected java.lang.String name

id

protected int id

explanation

protected java.lang.String explanation

threshold

protected java.lang.String threshold

selected

protected boolean selected
Constructor Detail

DefaultCategory

public DefaultCategory()
Constructor


DefaultCategory

public DefaultCategory(java.lang.String name,
                       int id)
Constructor

Parameters:
name -
id -
Method Detail

getID

public int getID()
Specified by:
getID in interface IDecisionCategory
See Also:
IDecisionCategory.getID()

setID

public void setID(int id)
Specified by:
setID in interface IDecisionCategory
See Also:
IDecisionCategory.setID(int)

getName

public java.lang.String getName()
Specified by:
getName in interface IDecisionCategory
See Also:
IDecisionCategory.getName()

setName

public void setName(java.lang.String name)
Specified by:
setName in interface IDecisionCategory
See Also:
IDecisionCategory.setName(java.lang.String)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(IDecisionCategory o)
Specified by:
compareTo in interface java.lang.Comparable<IDecisionCategory>

getExplanation

public java.lang.String getExplanation()
Specified by:
getExplanation in interface IDecisionCategory

setExplanation

public void setExplanation(java.lang.String explanation)
Specified by:
setExplanation in interface IDecisionCategory

getThreshold

public java.lang.String getThreshold()
Specified by:
getThreshold in interface IDecisionCategory

setThreshold

public void setThreshold(java.lang.String threshold)
Specified by:
setThreshold in interface IDecisionCategory

getEditor

public IDecisionCategoryEditor getEditor()
Specified by:
getEditor in interface 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

isSelected

public boolean isSelected()
Specified by:
isSelected in interface IDecisionCategory

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface IDecisionCategory


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.