|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.ndr.reader.NdrObjectReader org.dlese.dpc.ndr.reader.MetadataReader
public class MetadataReader
Extension of NdrObjectReader for accessing properties, dataStreams, and relationships of NDR Metadata Objects.
More Info:
Field Summary |
---|
Fields inherited from class org.dlese.dpc.ndr.reader.NdrObjectReader |
---|
createdDate, doc, dsFormats, handle, lastModifiedDate, nativeDataStreamFormat, nsContext, objectType |
Constructor Summary | |
---|---|
MetadataReader(Document response)
Constructor for the MetadataReader object |
|
MetadataReader(Document response,
String nativeDataStreamFormat)
Constructor for the MetadataReader object |
|
MetadataReader(String handle)
Constructor for the MetadataReader object |
|
MetadataReader(String handle,
String nativeDataStreamFormat)
Constructor for the MetadataReader object with nativeFormat specified |
Method Summary | |
---|---|
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. |
String |
getItemId()
Gets the nsdl:itemId property of the Metadata object |
Document |
getItemRecord()
Gets the native datastream as a dom4j.Document (using the nativeDataStream attribute of this reader). |
String |
getRecordId()
Gets the ncs:recordId property of the Metadata object, which is defined only if this object is managed by the NCS. |
String |
getStatus()
Gets the ncs:status property of the Metadata object, which is defined only if this object is managed by the NCS |
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(Node node)
|
Methods inherited from class org.dlese.dpc.ndr.reader.NdrObjectReader |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataReader(String handle) throws Exception
handle
- handle to MetadataObject in the NDR
Exception
- if handle does not correspond to existing Metatadata
objectpublic MetadataReader(String handle, String nativeDataStreamFormat) throws Exception
handle
- handle to MetadataObject in the NDRnativeDataStreamFormat
- nativeFormat of the collection to which this
metata belongs
Exception
- if handle does not correspond to existing
Metatadata objectpublic MetadataReader(Document response) throws Exception
response
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic MetadataReader(Document response, String nativeDataStreamFormat) throws Exception
response
- NOT YET DOCUMENTEDnativeDataStreamFormat
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDMethod Detail |
---|
public String getRecordId()
public String getUniqueID()
public String getItemId()
public String getStatus()
public boolean getIsValid()
public boolean getIsFinal()
public boolean isNcsMetadata()
public Document getItemRecord() throws Exception
Exception
- if the native datastream could not be read or
processedpublic Document getCanonicalNsdlDcItemRecord() throws Exception
Exception
- NOT YET DOCUMENTEDprotected static void pp(Node node)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |