nbi.xmlsec.biocase.protocol
Class Header

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

public class Header
extends ProtocolType

This class wraps the BioCASE protocol element Header.

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

Field Summary
private  ArrayList destination
          List of Header destination treeElements
private  ArrayList destinationResource
          List of Header destination treeElements Resource attributes
(package private) static Logger logger
           
private  String sendTime
          Header sendtime element
private  ArrayList source
          List of Header source treeElements
private  ArrayList sourceResource
          List of Header source treeElements Resource attributes
private  String type
          Header type element
private  ArrayList version
          List of Header version treeElements
private  ArrayList versionSoftware
          List of Header version treeElements Software attributes
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Header(String protocolURI)
          Inits this instance.
 
Method Summary
 void addDestination(String destination, String destinationResource)
           
 void addSource(String source, String sourceResource)
           
 void addVersion(String version, String versionSoftware)
           
 ArrayList getDestination()
           
 ArrayList getDestinationResource()
           
 String getSendTime()
           
 String getSource()
           
 String getSourceResource()
           
 String getType()
           
 ArrayList getVersion()
           
 ArrayList getVersionSoftware()
           
 void setSendTime(String sendTime)
           
 void setType(String type)
           
 String toString()
           
 void write(ContentHandler out)
          Writes the header to a SAX Stream.
 void writeStringLists(ContentHandler out, List values, List attributes, String localNameValue, String localNameAttr)
          Writes single value/attribute pairs of two lists to a SAX ContentHandler.
 
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

version

private ArrayList version
List of Header version treeElements


versionSoftware

private ArrayList versionSoftware
List of Header version treeElements Software attributes


sendTime

private String sendTime
Header sendtime element


source

private ArrayList source
List of Header source treeElements


sourceResource

private ArrayList sourceResource
List of Header source treeElements Resource attributes


destination

private ArrayList destination
List of Header destination treeElements


destinationResource

private ArrayList destinationResource
List of Header destination treeElements Resource attributes


type

private String type
Header type element

Constructor Detail

Header

public Header(String protocolURI)
Inits this instance.

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

writeStringLists

public void writeStringLists(ContentHandler out,
                             List values,
                             List attributes,
                             String localNameValue,
                             String localNameAttr)
                      throws SAXException
Writes single value/attribute pairs of two lists to a SAX ContentHandler. Value and attribute type is set to String(xsd:string). The value/attribute pairs are determined by the index in the lists. Local name and qualified name are set to the same value.

Parameters:
out - ContentHandlerto write to.
values - List of values
attributes - List of attributes
localNameValue - Local name of all values
localNameAttr - Local name of all attributes.
Throws:
SAXException

write

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

Parameters:
out - ContentHandlerto write to.
Throws:
SAXException

toString

public String toString()

getDestination

public ArrayList getDestination()

getDestinationResource

public ArrayList getDestinationResource()

getSendTime

public String getSendTime()

getSource

public String getSource()

getSourceResource

public String getSourceResource()

getType

public String getType()

getVersion

public ArrayList getVersion()

getVersionSoftware

public ArrayList getVersionSoftware()

addVersion

public void addVersion(String version,
                       String versionSoftware)

addSource

public void addSource(String source,
                      String sourceResource)

addDestination

public void addDestination(String destination,
                           String destinationResource)

setSendTime

public void setSendTime(String sendTime)

setType

public void setType(String type)


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