astex.generic
Class Generic

java.lang.Object
  extended by astex.generic.Generic
All Implemented Interfaces:
GenericInterface
Direct Known Subclasses:
Bond, Distance, GenericEvent, Molecule, Monitor, Residue, Ring

public class Generic
extends java.lang.Object
implements GenericInterface


Field Summary
static java.lang.String ClassName
           
 
Fields inherited from interface astex.generic.GenericInterface
Name
 
Constructor Summary
Generic()
           
Generic(java.lang.String cl)
           
 
Method Summary
 void addChild(GenericInterface child)
          Add a child.
 void addListener(GenericEventInterface gei)
          Add a listener.
 void addParent(GenericInterface parent)
          Add a parent.
 java.lang.Object get(java.lang.Object key, java.lang.Object def)
          Get Object representing key.
 boolean getBoolean(java.lang.Object property, boolean def)
          Get a boolean.
 java.util.Enumeration getChildren(java.lang.Object type)
          Get an enumeration of our children.
 java.lang.Object getClassname()
          Get our class description.
 double getDouble(java.lang.Object property, double def)
          Get a double.
 int getInteger(java.lang.Object property, int def)
          Get an int.
 java.util.Enumeration getParents(java.lang.Object type)
          Get an Enumeration of our parents.
 java.util.Enumeration getProperties()
          Return an enumeration of our properties.
 java.lang.String getString(java.lang.Object property, java.lang.String def)
          Get a String.
static void main(java.lang.String[] args)
           
 void removeChild(GenericInterface child)
          Remove a child.
 void removeListener(GenericEventInterface gei)
          Remove a listener.
 void removeParent(GenericInterface parent)
          Remove a parent.
 java.lang.Object set(java.lang.Object name, java.lang.Object value)
          Set an object value.
 void setBoolean(java.lang.Object property, boolean val)
          Set a Boolean.
 void setClassname(java.lang.String c)
          Set our classname.
 void setDouble(java.lang.Object property, double val)
          Set a double.
 void setInteger(java.lang.Object property, int val)
          Set an int.
 void setString(java.lang.Object property, java.lang.String val)
          Set a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ClassName

public static final java.lang.String ClassName
See Also:
Constant Field Values
Constructor Detail

Generic

public Generic(java.lang.String cl)

Generic

public Generic()
Method Detail

get

public java.lang.Object get(java.lang.Object key,
                            java.lang.Object def)
Description copied from interface: GenericInterface
Get Object representing key.

Specified by:
get in interface GenericInterface

set

public java.lang.Object set(java.lang.Object name,
                            java.lang.Object value)
Description copied from interface: GenericInterface
Set an object value.

Specified by:
set in interface GenericInterface

getProperties

public java.util.Enumeration getProperties()
Description copied from interface: GenericInterface
Return an enumeration of our properties.

Specified by:
getProperties in interface GenericInterface

setClassname

public void setClassname(java.lang.String c)
Description copied from interface: GenericInterface
Set our classname.

Specified by:
setClassname in interface GenericInterface

getClassname

public java.lang.Object getClassname()
Description copied from interface: GenericInterface
Get our class description.

Specified by:
getClassname in interface GenericInterface

addChild

public void addChild(GenericInterface child)
Description copied from interface: GenericInterface
Add a child.

Specified by:
addChild in interface GenericInterface

removeChild

public void removeChild(GenericInterface child)
Description copied from interface: GenericInterface
Remove a child.

Specified by:
removeChild in interface GenericInterface

getChildren

public java.util.Enumeration getChildren(java.lang.Object type)
Description copied from interface: GenericInterface
Get an enumeration of our children.

Specified by:
getChildren in interface GenericInterface

addParent

public void addParent(GenericInterface parent)
Description copied from interface: GenericInterface
Add a parent.

Specified by:
addParent in interface GenericInterface

removeParent

public void removeParent(GenericInterface parent)
Description copied from interface: GenericInterface
Remove a parent.

Specified by:
removeParent in interface GenericInterface

getParents

public java.util.Enumeration getParents(java.lang.Object type)
Description copied from interface: GenericInterface
Get an Enumeration of our parents.

Specified by:
getParents in interface GenericInterface

addListener

public void addListener(GenericEventInterface gei)
Description copied from interface: GenericInterface
Add a listener.

Specified by:
addListener in interface GenericInterface

removeListener

public void removeListener(GenericEventInterface gei)
Description copied from interface: GenericInterface
Remove a listener.

Specified by:
removeListener in interface GenericInterface

main

public static void main(java.lang.String[] args)

getDouble

public double getDouble(java.lang.Object property,
                        double def)
Get a double.


getInteger

public int getInteger(java.lang.Object property,
                      int def)
Get an int.


getString

public java.lang.String getString(java.lang.Object property,
                                  java.lang.String def)
Get a String.


getBoolean

public boolean getBoolean(java.lang.Object property,
                          boolean def)
Get a boolean.


setDouble

public void setDouble(java.lang.Object property,
                      double val)
Set a double.


setInteger

public void setInteger(java.lang.Object property,
                       int val)
Set an int.


setString

public void setString(java.lang.Object property,
                      java.lang.String val)
Set a String.


setBoolean

public void setBoolean(java.lang.Object property,
                       boolean val)
Set a Boolean.