|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnbi.xmlsec.biocase.protocol.ProtocolType
nbi.xmlsec.biocase.protocol.Operator
nbi.xmlsec.biocase.protocol.LOP
This class wraps the BioCASE protocol operators LOP.
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 |
static Logger logger
protected String syntax
protected List operators
Constructor Detail |
public LOP(String protocolURI, String type)
protocolURI
- The protocol version of this instance.Method Detail |
public void write(ContentHandler out) throws SAXException
write
in class Operator
out
- ContentHandler
to write to.
SAXException
public void setSyntax(String syntax)
syntax
- The syntax to set.public String getSyntax()
public List getOperators()
public Operator getOperator()
public Operator getOperator(int index)
public void setOperators(List operators)
operators
- The operators to set.public void setOperator(int index, Operator operator)
index
- index to set the operatoroperator
- the operator with the given index.public void addOperator(Operator operator)
operator
- the operator to append to the list.public void removeOperator(Operator operator)
operator
- the operator to remove from the list.public void removeOperator(int index)
index
- index of the operator to be removed from the list.public String toString()
toString
in class Operator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |