nbi.xmlsec.biocase.protocol
Class Diagnostic

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.Diagnostic
Direct Known Subclasses:
SecurityDiagnostic

public class Diagnostic
extends ProtocolType

This class wraps the BioCASE protocol element Diagnostic.

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

Field Summary
private  String code
          Diagnostic code
(package private) static Logger logger
           
private  String severity
          Diagnostic severity
static String SEVERITY_DEBUG
          Prefefined severity value debug
static String SEVERITY_ERROR
          Prefefined severity value error
static String SEVERITY_FATAL
          Prefefined severity value fatal
static String SEVERITY_INFO
          Prefefined severity value info
static String SEVERITY_WARN
          Prefefined severity value warn
private  String value
          Diagnostic value
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Diagnostic(String protocolURI)
          Inits this instance.
Diagnostic(String protocolURI, String code, String severity, String value)
          Inits this instance.
 
Method Summary
 String getCode()
          Gets the code.
 String getSeverity()
          Gets the severity.
 String getValue()
          Gets the value.
 void setCode(String code)
          Sets the code.
 void setSeverity(String severity)
          Sets the severity.
 void setValue(String value)
          Sets the value.
 String toString()
           
 void write(ContentHandler out)
          Writes the capabilities 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

SEVERITY_DEBUG

public static final String SEVERITY_DEBUG
Prefefined severity value debug

See Also:
Constant Field Values

SEVERITY_INFO

public static final String SEVERITY_INFO
Prefefined severity value info

See Also:
Constant Field Values

SEVERITY_WARN

public static final String SEVERITY_WARN
Prefefined severity value warn

See Also:
Constant Field Values

SEVERITY_ERROR

public static final String SEVERITY_ERROR
Prefefined severity value error

See Also:
Constant Field Values

SEVERITY_FATAL

public static final String SEVERITY_FATAL
Prefefined severity value fatal

See Also:
Constant Field Values

value

private String value
Diagnostic value


code

private String code
Diagnostic code


severity

private String severity
Diagnostic severity

Constructor Detail

Diagnostic

public Diagnostic(String protocolURI)
Inits this instance.

Parameters:
protocolURI - The protocol version of this instance.

Diagnostic

public Diagnostic(String protocolURI,
                  String code,
                  String severity,
                  String value)
Inits this instance.

Parameters:
protocolURI - The protocol version of this instance.
code - The code attribute of this diagnostic.
severity - The severityattribute of this diagnostic.
value - The value of this diagnostic.
Method Detail

write

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

Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

toString

public String toString()

getCode

public String getCode()
Gets the code.

Returns:
code or null.

setCode

public void setCode(String code)
Sets the code.

Parameters:
code - code to set.

getSeverity

public String getSeverity()
Gets the severity.

Returns:
severity or null.

setSeverity

public void setSeverity(String severity)
Sets the severity. Severity must be one of "debug", "error", "fatal", "info" or "warn".

Parameters:
severity - severity to set.

getValue

public String getValue()
Gets the value.

Returns:
value or null.

setValue

public void setValue(String value)
Sets the value.

Parameters:
value - value to set.


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