public class MetadataReader extends NdrObjectReader
More Info:
createdDate, doc, dsFormats, handle, lastModifiedDate, nativeDataStreamFormat, nsContext, objectType
Constructor and Description |
---|
MetadataReader(org.dom4j.Document response)
Constructor for the MetadataReader object
|
MetadataReader(org.dom4j.Document response,
java.lang.String nativeDataStreamFormat)
Constructor for the MetadataReader object
|
MetadataReader(java.lang.String handle)
Constructor for the MetadataReader object
|
MetadataReader(java.lang.String handle,
java.lang.String nativeDataStreamFormat)
Constructor for the MetadataReader object with nativeFormat specified
|
Modifier and Type | Method and Description |
---|---|
org.dom4j.Document |
getCanonicalNsdlDcItemRecord()
Gets the "nsdl_dc" datastream as a dom4j.Document
|
boolean |
getIsFinal()
Returns true if the ncs:status property of the Metadata object (which is
only present if this object is managed by the NCS) is NCS_FINAL_STATUS.
|
boolean |
getIsValid()
Returns true if the ncs:isValid property of the Metadata object, which is
defined only if this object is managed by the NCS, is "true", and false
otherwise.
|
java.lang.String |
getItemId()
Gets the nsdl:itemId property of the Metadata object
|
org.dom4j.Document |
getItemRecord()
Gets the native datastream as a dom4j.Document (using the nativeDataStream
attribute of this reader).
|
java.lang.String |
getRecordId()
Gets the ncs:recordId property of the Metadata object, which is defined
only if this object is managed by the NCS.
|
java.lang.String |
getStatus()
Gets the ncs:status property of the Metadata object, which is defined only
if this object is managed by the NCS
|
java.lang.String |
getUniqueID()
Gets the nsdl:uniqueID property of the Metadata object.
|
boolean |
isNcsMetadata()
Returns true if this Metadata object is managed by the NCS.
|
protected static void |
pp(org.dom4j.Node node) |
getCanonicalNsdlDcDataStream, getCreated, getCreatedDate, getDataStream, getDataStream, getDocument, getFormats, getHandle, getLastModified, getLastModifiedDate, getNativeDataStream, getNativeDataStream, getNode, getNodes, getNodeText, getNsContext, getObjectType, getProperty, getPropertyValues, getRelationship, getRelationshipValues, getState, getXPath, initDataStreams, setDebug
public MetadataReader(java.lang.String handle) throws java.lang.Exception
handle
- handle to MetadataObject in the NDRjava.lang.Exception
- if handle does not correspond to existing Metatadata
objectpublic MetadataReader(java.lang.String handle, java.lang.String nativeDataStreamFormat) throws java.lang.Exception
handle
- handle to MetadataObject in the NDRnativeDataStreamFormat
- nativeFormat of the collection to which this
metata belongsjava.lang.Exception
- if handle does not correspond to existing
Metatadata objectpublic MetadataReader(org.dom4j.Document response) throws java.lang.Exception
response
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic MetadataReader(org.dom4j.Document response, java.lang.String nativeDataStreamFormat) throws java.lang.Exception
response
- NOT YET DOCUMENTEDnativeDataStreamFormat
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String getRecordId()
public java.lang.String getUniqueID()
public java.lang.String getItemId()
public java.lang.String getStatus()
public boolean getIsValid()
public boolean getIsFinal()
public boolean isNcsMetadata()
public org.dom4j.Document getItemRecord() throws java.lang.Exception
java.lang.Exception
- if the native datastream could not be read or
processedpublic org.dom4j.Document getCanonicalNsdlDcItemRecord() throws java.lang.Exception
java.lang.Exception
- NOT YET DOCUMENTEDprotected static void pp(org.dom4j.Node node)