edu.mssm.crover.domain2d.rbdg.xml
Class Define

java.lang.Object
  |
  +--edu.mssm.crover.domain2d.rbdg.xml.Define
All Implemented Interfaces:
java.io.Serializable

public class Define
extends java.lang.Object
implements java.io.Serializable

Define a new color. Defined colors can be referenced by name throughout the input file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Define()
           
 
Method Summary
 int getBlue()
           
 java.lang.String getColor()
           
 int getGreen()
           
 int getRed()
           
 boolean hasBlue()
           
 boolean hasGreen()
           
 boolean hasRed()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setBlue(int blue)
           
 void setColor(java.lang.String color)
           
 void setGreen(int green)
           
 void setRed(int red)
           
static Define unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Define

public Define()
Method Detail

getBlue

public int getBlue()

getColor

public java.lang.String getColor()

getGreen

public int getGreen()

getRed

public int getRed()

hasBlue

public boolean hasBlue()

hasGreen

public boolean hasGreen()

hasRed

public boolean hasRed()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setBlue

public void setBlue(int blue)
Parameters:
blue -

setColor

public void setColor(java.lang.String color)
Parameters:
color -

setGreen

public void setGreen(int green)
Parameters:
green -

setRed

public void setRed(int red)
Parameters:
red -

unmarshal

public static Define unmarshal(java.io.Reader reader)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException
Parameters:
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.