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

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

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

Each subunit is located on the page according to the location and spacer of the subunit that preceeds it. The location of the first subunit is determined so that the complete diagram is visible. At the time of writing, the following types of subunits are available (all types should be entered starting with edu.mssm.crover.domain2d): FreeLoop, ExtremityDomain (for N-terms), CtermDomain, HelicalDomain, BetaStrandDomain, ProteinSegmentDomain

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

Constructor Summary
Subunit()
           
 
Method Summary
 ControlPoints getControlPoints()
           
 Direction getDirection()
           
 java.lang.String getId()
           
 Spacer getSpacer()
           
 java.lang.String getType()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setControlPoints(ControlPoints controlPoints)
           
 void setDirection(Direction direction)
           
 void setId(java.lang.String id)
           
 void setSpacer(Spacer spacer)
           
 void setType(java.lang.String type)
           
static Subunit 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

Subunit

public Subunit()
Method Detail

getControlPoints

public ControlPoints getControlPoints()

getDirection

public Direction getDirection()

getId

public java.lang.String getId()

getSpacer

public Spacer getSpacer()

getType

public java.lang.String getType()

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

setControlPoints

public void setControlPoints(ControlPoints controlPoints)
Parameters:
controlPoints -

setDirection

public void setDirection(Direction direction)
Parameters:
direction -

setId

public void setId(java.lang.String id)
Parameters:
id -

setSpacer

public void setSpacer(Spacer spacer)
Parameters:
spacer -

setType

public void setType(java.lang.String type)
Parameters:
type -

unmarshal

public static Subunit 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.