|
||||||||||
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.Content
This class wraps the BioCASE protocol element Content. BioCASE content objects are stored in the vector contentObjects
.
Field Summary | |
private Vector |
contentObjects
List of content objects |
(package private) static Logger |
logger
|
private Integer |
recordCount
Content attribute recordCount |
private Integer |
recordDropped
Content attribute recordDropped |
private Integer |
recordStart
Content attribute recordStart |
private Integer |
totalSearchHits
Content attribute totalSearchHits |
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType |
protocolURI |
Constructor Summary | |
Content(String protocolURI)
Inits this instance. |
Method Summary | |
void |
addContentObject(ContentObject content)
Appends the specified content object to the contents vector. |
ContentObject |
getContentObject(int index)
Gets the content object at the specified position |
Vector |
getContentObjects()
Gets the contentObjects |
Integer |
getRecordCount()
Gets the recordCount |
Integer |
getRecordDropped()
Gets the recordDropped |
Integer |
getRecordStart()
Gets the recordStart |
Integer |
getTotalSearchHits()
Gets the totalSearchHits |
boolean |
removeContentObject(ContentObject content)
Removes the specified content object from the content objects vector. |
void |
setContentObjects(Vector contentObjects)
Sets contentObjects |
void |
setRecordCount(Integer recordCount)
Sets recordCount |
void |
setRecordDropped(Integer recordDropped)
Sets recordDropped |
void |
setRecordStart(Integer recordStart)
Sets recordStart |
void |
setTotalSearchHits(Integer totalSearchHits)
Sets totalSearchHits |
String |
toString()
|
void |
write(ContentHandler out)
Writes the content 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 |
static Logger logger
private Integer recordStart
recordStart
private Integer recordCount
recordCount
private Integer recordDropped
recordDropped
private Integer totalSearchHits
totalSearchHits
private Vector contentObjects
Constructor Detail |
public Content(String protocolURI)
protocolURI
- The protocol version of this instance.Method Detail |
public String toString()
public void write(ContentHandler out) throws SAXException
out
- ContentHandler
to write to.
SAXException
public void addContentObject(ContentObject content)
content
- content object to be appended.
public boolean removeContentObject(ContentObject content)
content
- content object to be removed.
public ContentObject getContentObject(int index)
index
- index of the content object to return
public Vector getContentObjects()
public void setContentObjects(Vector contentObjects)
contentObjects
- The contentObjects to set.public Integer getRecordCount()
public void setRecordCount(Integer recordCount)
recordCount
- The recordCount to set.public Integer getRecordDropped()
public void setRecordDropped(Integer recordDropped)
recordDropped
- The recordDropped to set or null.public Integer getRecordStart()
public void setRecordStart(Integer recordStart)
recordStart
- The recordStart to set.public Integer getTotalSearchHits()
public void setTotalSearchHits(Integer totalSearchHits)
totalSearchHits
- The totalSearchHits to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |