|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kb.oai.pmh.ResponseBase
se.kb.oai.pmh.Record
public class Record
The Record
class represents the data returned for a
GetRecord
or ListRecords
request. It
holds the actual metadata content.
Field Summary |
---|
Fields inherited from class se.kb.oai.pmh.ResponseBase |
---|
OAI_NS_PREFIX, OAI_NS_URI, response, responseDate, resumptionToken, xpath |
Constructor Summary | |
---|---|
Record(Document document)
Creates a Record from the response from a
GetRecord request. |
|
Record(Document document,
Node record)
Creates a Record from from a ListRecords
response and a specific <record> element in that
response. |
Method Summary | |
---|---|
Element |
getAbout()
Get the information about this Record . |
Header |
getHeader()
Get the Header with the information
about this Record . |
Element |
getMetadata()
Get the metadata contained in the metadata element
of this Record . |
String |
getMetadataAsString()
Get the xml representation of the metadata as a String . |
Methods inherited from class se.kb.oai.pmh.ResponseBase |
---|
getResponse, getResponseDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Record(Document document) throws ErrorResponseException
Record
from the response from a
GetRecord
request.
document
- the response
ErrorResponseException
public Record(Document document, Node record) throws ErrorResponseException
Record
from from a ListRecords
response and a specific <record>
element in that
response.
document
- the responserecord
- a <record>
element
ErrorResponseException
Method Detail |
---|
public Header getHeader()
Header
with the information
about this Record
.
Header
public Element getMetadata()
metadata
element
of this Record
.
public String getMetadataAsString() throws IOException
String
.
String
IOException
public Element getAbout()
Record
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |