SigPath

org.sigpath.bioimport.reaction2
Class ExternalReference

java.lang.Object
  extended by org.sigpath.bioimport.reaction2.ExternalReference
All Implemented Interfaces:
Serializable

public class ExternalReference
extends Object
implements Serializable

Annotates external references. For example, a chemical may have an accession code within another database, such as SWISS-PROT.

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

Constructor Summary
ExternalReference()
           
 
Method Summary
 String getAc()
          Returns the value of field 'ac'.
 String getDatabase()
          Returns the value of field 'database'.
 boolean isValid()
          Method isValid
 void marshal(ContentHandler handler)
          Method marshal
 void marshal(Writer out)
          Method marshal
 void setAc(String ac)
          Sets the value of field 'ac'.
 void setDatabase(String database)
          Sets the value of field 'database'.
static ExternalReference unmarshal(Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalReference

public ExternalReference()
Method Detail

getAc

public String getAc()
Returns the value of field 'ac'. The field 'ac' has the following description: Identifies a molecule by accession code

Returns:
String

getDatabase

public String getDatabase()
Returns the value of field 'database'. The field 'database' has the following description: Specifies the database from which an accession number for a molecule has been acquired

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Method marshal

Parameters:
handler -
Throws:
IOException
MarshalException
ValidationException

setAc

public void setAc(String ac)
Sets the value of field 'ac'. The field 'ac' has the following description: Identifies a molecule by accession code

Parameters:
ac - the value of field 'ac'.

setDatabase

public void setDatabase(String database)
Sets the value of field 'database'. The field 'database' has the following description: Specifies the database from which an accession number for a molecule has been acquired

Parameters:
database - the value of field 'database'.

unmarshal

public static ExternalReference unmarshal(Reader reader)
                                   throws MarshalException,
                                          ValidationException
Method unmarshal

Parameters:
reader -
Returns:
ExternalReference
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException

SigPath

Copyright © 2002-2005 Institute for Computational Biomedicine, All Rights Reserved.