nbi.xmlsec.biocase.protocol
Class Scan

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.ContentObject
          extended bynbi.xmlsec.biocase.protocol.Scan

public class Scan
extends ContentObject

This class wraps the BioCASE protocol content object of type Scan.

Since:
Version:
$Revision: 1.3 $
Author:
Lutz Suhrbier

Field Summary
static String LN_VALUE
          Local name of the sub element value
(package private) static Logger logger
           
(package private)  Vector values
          String Values of the content object Scan
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Scan(String protocolURI)
           
 
Method Summary
 boolean addValue(String value)
          Appends the specified value to the values list.
 String getValue(int index)
          Gets the value at the specified position
 Vector getValues()
          Gets the values
 boolean removeValue(String value)
          Removes the specified value from the values list.
 void setValues(Vector values)
          Sets values
 String toString()
           
 void write(ContentHandler out)
          Writes the scan content object to a SAX Stream.
 
Methods inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
getProtocolURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

static Logger logger

LN_VALUE

public static final String LN_VALUE
Local name of the sub element value

See Also:
Constant Field Values

values

Vector values
String Values of the content object Scan

Constructor Detail

Scan

public Scan(String protocolURI)
Method Detail

write

public void write(ContentHandler out)
           throws SAXException
Writes the scan content object to a SAX Stream.

Overrides:
write in class ContentObject
Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

getValue

public String getValue(int index)
Gets the value at the specified position

Parameters:
index - index of the value to return
Returns:
value at the specified index, or null.

addValue

public boolean addValue(String value)
Appends the specified value to the values list. If no values exists, a new Vector will be created.

Parameters:
value - value to be appended.
Returns:
true

removeValue

public boolean removeValue(String value)
Removes the specified value from the values list.

Parameters:
value - value to be removed.
Returns:
true if the the values list contained specified value.

getValues

public Vector getValues()
Gets the values

Returns:
Returns the values.

setValues

public void setValues(Vector values)
Sets values

Parameters:
values - The values to set.

toString

public String toString()


Copyright © 2006 Lutz Suhrbier, Freie Universitšt Berlin. All Rights Reserved.