nbi.xmlsec.biocase.protocol
Class LOP

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

public class LOP
extends Operator

This class wraps the BioCASE protocol operators LOP.

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

Field Summary
(package private) static Logger logger
           
protected  List operators
          The LOP list of operators
protected  String syntax
          The LOP attribute syntax
 
Fields inherited from class nbi.xmlsec.biocase.protocol.Operator
type
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
LOP(String protocolURI, String type)
          Inits this instance.
 
Method Summary
 void addOperator(Operator operator)
          Appends the operator to the operator list.
 Operator getOperator()
          Gets the first operator (for unary mode).
 Operator getOperator(int index)
          Gets the operator with the given index in the operator list.
 List getOperators()
          Gets the values
 String getSyntax()
          Gets the path
 void removeOperator(int index)
          Removes the operator at the specified index from the operator list.
 void removeOperator(Operator operator)
          Removes an operator from the operator list.
 void setOperator(int index, Operator operator)
          Sets the operator with the given index in the operator list.
 void setOperators(List operators)
          Sets the operators
 void setSyntax(String syntax)
          Sets the syntax
 String toString()
           
 void write(ContentHandler out)
          Writes the LOP 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

syntax

protected String syntax
The LOP attribute syntax


operators

protected List operators
The LOP list of operators

Constructor Detail

LOP

public LOP(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 LOP to a SAX Stream.

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

setSyntax

public void setSyntax(String syntax)
Sets the syntax

Parameters:
syntax - The syntax to set.

getSyntax

public String getSyntax()
Gets the path

Returns:
Returns the path.

getOperators

public List getOperators()
Gets the values

Returns:
Returns the values.

getOperator

public Operator getOperator()
Gets the first operator (for unary mode).

Returns:
Returns the first operator.

getOperator

public Operator getOperator(int index)
Gets the operator with the given index in the operator list.

Returns:
Returns the operator with the given index.

setOperators

public void setOperators(List operators)
Sets the operators

Parameters:
operators - The operators to set.

setOperator

public void setOperator(int index,
                        Operator operator)
Sets the operator with the given index in the operator list.

Parameters:
index - index to set the operator
operator - the operator with the given index.

addOperator

public void addOperator(Operator operator)
Appends the operator to the operator list.

Parameters:
operator - the operator to append to the list.

removeOperator

public void removeOperator(Operator operator)
Removes an operator from the operator list.

Parameters:
operator - the operator to remove from the list.

removeOperator

public void removeOperator(int index)
Removes the operator at the specified index from the operator list.

Parameters:
index - index of the operator to be removed from the list.

toString

public String toString()
Overrides:
toString in class Operator


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