nbi.xmlsec.biocase.protocol
Class COP

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.Operator
          extended bynbi.xmlsec.biocase.protocol.COP

public class COP
extends Operator

This class wraps the BioCASE protocol operators COP.

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

Field Summary
(package private) static Logger logger
           
protected  String path
          Path attribute of COPs
protected  List values
          COP values
 
Fields inherited from class nbi.xmlsec.biocase.protocol.Operator
type
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
COP(String protocolURI, String type)
          Inits this instance.
 
Method Summary
 void addValue(String value)
          Appends the specified value to the values list.
 String getPath()
          Gets the path
 String getValue()
          Gets the value at the first position.
 String getValue(int index)
          Gets the value at the specified position
 List getValues()
          Gets the values
 void removeValue(String value)
          Removes the specified value from the values list.
 void setPath(String path)
          Sets path
 void setValue(String value)
          Sets the value at the first position.
 void setValues(List values)
          Sets values
 String toString()
           
 void write(ContentHandler out)
          Writes the COP to a SAX Stream.
 
Methods inherited from class nbi.xmlsec.biocase.protocol.Operator
getType, setType
 
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

path

protected String path
Path attribute of COPs


values

protected List values
COP values

Constructor Detail

COP

public COP(String protocolURI,
           String type)
Inits this instance.

Parameters:
protocolURI - The protocol version of this instance.
Method Detail

write

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

Specified by:
write in class Operator
Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

setPath

public void setPath(String path)
Sets path

Parameters:
path - The path to set.

getPath

public String getPath()
Gets the path

Returns:
Returns the path.

toString

public String toString()
Overrides:
toString in class Operator

getValues

public List getValues()
Gets the values

Returns:
Returns the values.

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.

getValue

public String getValue()
Gets the value at the first position.

Returns:
value at the index 0, or null.

setValues

public void setValues(List values)
Sets values

Parameters:
values - The values to set.

setValue

public void setValue(String value)
Sets the value at the first position.

Parameters:
value - value at the index 0, or null.

addValue

public void 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 void 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.


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