|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.biocase.protocol.ProtocolType nbi.xmlsec.biocase.protocol.Header
This class wraps the BioCASE protocol element Header.
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 |
static Logger logger
private ArrayList version
private ArrayList versionSoftware
private String sendTime
private ArrayList source
private ArrayList sourceResource
private ArrayList destination
private ArrayList destinationResource
private String type
Constructor Detail |
public Header(String protocolURI)
protocolURI
- The protocol version of this instance.Method Detail |
public void writeStringLists(ContentHandler out, List values, List attributes, String localNameValue, String localNameAttr) throws SAXException
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.
out
- ContentHandler
to write to.values
- List of valuesattributes
- List of attributeslocalNameValue
- Local name of all valueslocalNameAttr
- Local name of all attributes.
SAXException
public void write(ContentHandler out) throws SAXException
out
- ContentHandler
to write to.
SAXException
public String toString()
public ArrayList getDestination()
public ArrayList getDestinationResource()
public String getSendTime()
public String getSource()
public String getSourceResource()
public String getType()
public ArrayList getVersion()
public ArrayList getVersionSoftware()
public void addVersion(String version, String versionSoftware)
public void addSource(String source, String sourceResource)
public void addDestination(String destination, String destinationResource)
public void setSendTime(String sendTime)
public void setType(String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |