nbi.xmlsec.biocase.protocol
Class Capabilities

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.ContentObject
          extended bynbi.xmlsec.biocase.protocol.Capabilities

public class Capabilities
extends ContentObject

This class wraps the BioCASE protocol content object of type Capabilities.

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

Field Summary
(package private)  Vector supportedSchemas
          Vector of supported schemas
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ContentObject
logger
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Capabilities(String protocolURI)
          Inits this instance.
 
Method Summary
 boolean addSupportedSchema(SupportedSchema schema)
          Appends the specified schema to the schema vector.
 SupportedSchema getSupportedSchema(int index)
          Gets the supported schema at the specified position
 Vector getSupportedSchemas()
          Gets the supportedSchemas
 boolean removeSupportedSchema(SupportedSchema schema)
          Removes the specified supported schema from the schema vector.
 void setSupportedSchemas(Vector supportedSchemas)
          Sets supportedSchemas
 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

supportedSchemas

Vector supportedSchemas
Vector of supported schemas

Constructor Detail

Capabilities

public Capabilities(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 capabilities content object to a SAX Stream.

Overrides:
write in class ContentObject
Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

getSupportedSchema

public SupportedSchema getSupportedSchema(int index)
Gets the supported schema at the specified position

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

addSupportedSchema

public boolean addSupportedSchema(SupportedSchema schema)
Appends the specified schema to the schema vector. If no schemas exists, a new Vector will be created.

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

removeSupportedSchema

public boolean removeSupportedSchema(SupportedSchema schema)
Removes the specified supported schema from the schema vector.

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

toString

public String toString()

getSupportedSchemas

public Vector getSupportedSchemas()
Gets the supportedSchemas

Returns:
Returns the supportedSchemas.

setSupportedSchemas

public void setSupportedSchemas(Vector supportedSchemas)
Sets supportedSchemas

Parameters:
supportedSchemas - The supportedSchemas to set.


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