nbi.xmlsec.biocase.protocol
Class Diagnostics

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.Diagnostics

public class Diagnostics
extends ProtocolType

This class wraps the BioCASE protocol element Diagnostic.

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

Field Summary
(package private)  Vector diagnostics
          Diagnostic vector
(package private) static Logger logger
           
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Diagnostics(String protocolURI)
          Inits this instance.
 
Method Summary
 void addDiagnostic(Diagnostic diagnostic)
          Appends the specified diagnostic to the diagnostics vector.
 void addDiagnostics(Diagnostics diagnostics)
          Appends the specified diagnostics to the diagnostics vector.
 Diagnostic getDiagnostic(int index)
          Gets the diagnostic at the specified position
 Vector getDiagnostics()
          Gets the diagnostics
 boolean removeDiagnostic(Diagnostic diagnostic)
          Removes the specified supported schema from the schema vector.
 void setDiagnostics(Vector diagnostics)
          Sets diagnostics
 String toString()
           
 void write(ContentHandler out)
          Writes the diagnostics 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

diagnostics

Vector diagnostics
Diagnostic vector

Constructor Detail

Diagnostics

public Diagnostics(String protocolURI)
Inits this instance.

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

write

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

Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

toString

public String toString()

addDiagnostic

public void addDiagnostic(Diagnostic diagnostic)
Appends the specified diagnostic to the diagnostics vector. If no diagnostics exists, a new Vector will be created.

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

addDiagnostics

public void addDiagnostics(Diagnostics diagnostics)
Appends the specified diagnostics to the diagnostics vector. If no diagnostics exists, a new Vector will be created.

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

removeDiagnostic

public boolean removeDiagnostic(Diagnostic diagnostic)
Removes the specified supported schema from the schema vector.

Parameters:
diagnostic - diagnostic to be removed.
Returns:
true if the diagnostics vector contained the specified schema.

getDiagnostic

public Diagnostic getDiagnostic(int index)
Gets the diagnostic at the specified position

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

getDiagnostics

public Vector getDiagnostics()
Gets the diagnostics

Returns:
Returns the diagnostics.

setDiagnostics

public void setDiagnostics(Vector diagnostics)
Sets diagnostics

Parameters:
diagnostics - The diagnostics to set.


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