nbi.xmlsec.biocase.protocol
Class SupportedSchema

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

public class SupportedSchema
extends ProtocolType

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

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

Field Summary
private  Vector concepts
          Vector of concepts
static String LN_ROOT
          Local name of the root element SupportedSchemas
static String LN_SUPPORTEDSCHEMA_NAMESPACE
          Local name of the attribute namespace of the root element SupportedSchemas
static String LN_SUPPORTEDSCHEMA_REQUEST
          Local name of the attribute request of the root element SupportedSchemas
static String LN_SUPPORTEDSCHEMA_RESPONSE
          Local name of the attribute responses of the root element SupportedSchemas
(package private) static Logger logger
           
private  String namespace
          The attribute namespace of this element
private  Boolean request
          The attribute request of this element
private  Boolean response
          The attribute response of this element
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
SupportedSchema(String protocolURI)
          Inits this instance.
 
Method Summary
 boolean addConcept(String concept)
          Appends the specified concept to the concept vector.
 String getConcept(int index)
          Gets the concept at the specified position
 Vector getConcepts()
          Gets the concepts
 String getNamespace()
          Gets the namespace
 Boolean getRequest()
          Gets the request
 Boolean getResponse()
          Gets the response
 boolean removeConcept(String concept)
          Removes the specified concept from the concept vector.
 void setConcepts(Vector concepts)
          Sets concepts
 void setNamespace(String namespace)
          Sets namespace
 void setRequest(Boolean request)
          Sets request
 void setResponse(Boolean response)
          Sets response
 String toString()
           
 void write(ContentHandler out)
          Writes the supported schema 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

LN_ROOT

public static final String LN_ROOT
Local name of the root element SupportedSchemas

See Also:
Constant Field Values

LN_SUPPORTEDSCHEMA_NAMESPACE

public static final String LN_SUPPORTEDSCHEMA_NAMESPACE
Local name of the attribute namespace of the root element SupportedSchemas

See Also:
Constant Field Values

LN_SUPPORTEDSCHEMA_REQUEST

public static final String LN_SUPPORTEDSCHEMA_REQUEST
Local name of the attribute request of the root element SupportedSchemas

See Also:
Constant Field Values

LN_SUPPORTEDSCHEMA_RESPONSE

public static final String LN_SUPPORTEDSCHEMA_RESPONSE
Local name of the attribute responses of the root element SupportedSchemas

See Also:
Constant Field Values

concepts

private Vector concepts
Vector of concepts


namespace

private String namespace
The attribute namespace of this element


request

private Boolean request
The attribute request of this element


response

private Boolean response
The attribute response of this element

Constructor Detail

SupportedSchema

public SupportedSchema(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 supported schema to a SAX Stream.

Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

toString

public String toString()

getConcept

public String getConcept(int index)
Gets the concept at the specified position

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

addConcept

public boolean addConcept(String concept)
Appends the specified concept to the concept vector. If no concepts exists, a new Vector will be created.

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

removeConcept

public boolean removeConcept(String concept)
Removes the specified concept from the concept vector.

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

getConcepts

public Vector getConcepts()
Gets the concepts

Returns:
Returns the concepts.

setConcepts

public void setConcepts(Vector concepts)
Sets concepts

Parameters:
concepts - The concepts to set.

getNamespace

public String getNamespace()
Gets the namespace

Returns:
Returns the namespace.

setNamespace

public void setNamespace(String namespace)
Sets namespace

Parameters:
namespace - The namespace to set.

getRequest

public Boolean getRequest()
Gets the request

Returns:
Returns the request.

setRequest

public void setRequest(Boolean request)
Sets request

Parameters:
request - The request to set.

getResponse

public Boolean getResponse()
Gets the response

Returns:
Returns the response.

setResponse

public void setResponse(Boolean response)
Sets response

Parameters:
response - The response to set.


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