|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.storage.types.XMLDatastreamProcessor
public class XMLDatastreamProcessor
Wrapper class for a datastream that has XML metadata. Allows managed content and inline xml datastreams to be treated generically as datastreams having XML metadata content, eg for DC, RELS-EXT and RELS-INT which may be stored either inline or as managed content.
| Field Summary | |
|---|---|
protected Datastream |
m_ds
|
protected org.fcrepo.server.storage.types.XMLDatastreamProcessor.DS_TYPE |
m_dsType
|
| Constructor Summary | |
|---|---|
XMLDatastreamProcessor(Datastream ds)
Construct an XML Datastream Processor by wrapping an existing datastream |
|
XMLDatastreamProcessor(String dsId)
Construct a new XML datastream processor and the associated datastream using the datastream ID to determine the type (M or X) of datastream to construct (see fedora.fcfg for configuring the default types) |
|
| Method Summary | |
|---|---|
Datastream |
getDatastream()
Get the datastream wrapped by this class |
int |
getDSMDClass()
Get the DSMDClass of the datastream wrapped by this class |
byte[] |
getXMLContent()
Get the XML content of the datastream wrapped by this class |
byte[] |
getXMLContent(Context ctx)
|
XMLDatastreamProcessor |
newVersion()
Return a new XML Datastream processor wrapping a new datastream. |
void |
setDSMDClass(int DSMDClass)
Set the DSMDClass of the datastream wrapped by this class |
void |
setXMLContent(byte[] xmlContent)
Update the XML content of the datastream wrapped by this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Datastream m_ds
protected org.fcrepo.server.storage.types.XMLDatastreamProcessor.DS_TYPE m_dsType
| Constructor Detail |
|---|
public XMLDatastreamProcessor(String dsId)
dsId - public XMLDatastreamProcessor(Datastream ds)
ds - - datastream to wrap| Method Detail |
|---|
public XMLDatastreamProcessor newVersion()
throws ServerInitializationException,
ModuleInitializationException
ServerInitializationException
ModuleInitializationExceptionpublic byte[] getXMLContent()
public byte[] getXMLContent(Context ctx)
public Datastream getDatastream()
public void setXMLContent(byte[] xmlContent)
xmlContent - public void setDSMDClass(int DSMDClass)
DSMDClass - public int getDSMDClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||