DLESE Tools
v1.6.0

org.dlese.dpc.ndr.request
Class AddMetadataRequest

java.lang.Object
  extended by org.dlese.dpc.ndr.request.SimpleNdrRequest
      extended by org.dlese.dpc.ndr.request.NdrRequest
          extended by org.dlese.dpc.ndr.request.SignedNdrRequest
              extended by org.dlese.dpc.ndr.request.AddMetadataRequest

public class AddMetadataRequest
extends SignedNdrRequest

Convenience class for creating NdrRequests to add metadata

Version:
$Id: AddMetadataRequest.java,v 1.6 2009/03/20 23:33:53 jweather Exp $
Author:
Jonathan Ostwald

Field Summary
 
Fields inherited from class org.dlese.dpc.ndr.request.SignedNdrRequest
inputXML, objectType
 
Fields inherited from class org.dlese.dpc.ndr.request.SimpleNdrRequest
handle, requestAgent, verb, verbose
 
Constructor Summary
AddMetadataRequest()
          Constructor for the AddMetadataRequest object
AddMetadataRequest(String resourceHandle)
          Constructor that sets "metadataFor" relationship with provided resourceHandle;
 
Method Summary
 void setDataStream(String format, Element element)
          Sets the dataStream attribute of the AddMetadataRequest object
 void setMetadataFor(String resourceHandle)
          Sets the metadataFor attribute of the AddMetadataRequest object
 void setMetadataProvidedBy(String mdpHandle)
          Sets the metadataProvidedBy attribute of the AddMetadataRequest object
 void setUniqueId(String id)
          Sets the uniqueId attribute of the AddMetadataRequest object
 
Methods inherited from class org.dlese.dpc.ndr.request.SignedNdrRequest
authorizeToChange, authorizeToChange, getNDRConnection, report
 
Methods inherited from class org.dlese.dpc.ndr.request.NdrRequest
addCommand, addCommand, addCommand, addCommand, addDataStreamCmd, addDataStreamCmd, addDCStreamCmd, addDleseCommand, addDleseCommand, addNativeDataStreamCmd, addNativeDataStreamCmd, addNcsPropertyCmd, addNcsPropertyCmd, addNcsRelationshipCmd, addNcsRelationshipCmd, addOaiVisibilityCmd, addOaiVisibilityCmd, addQualifiedCommand, addQualifiedCommand, addServiceDescriptionCmd, addServiceDescriptionCmd, addStateCmd, addStateCmd, getComponent, getInputXML, getObjectType, getPayload, setDataInfoStream, setObjectType, submit, submit
 
Methods inherited from class org.dlese.dpc.ndr.request.SimpleNdrRequest
getDebug, getHandle, getNDRConnection, getRequestAgent, getVerb, getVerbose, makePath, pp, prtln, prtlnErr, report, setDebug, setHandle, setRequestAgent, setVerb, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMetadataRequest

public AddMetadataRequest()
Constructor for the AddMetadataRequest object


AddMetadataRequest

public AddMetadataRequest(String resourceHandle)
Constructor that sets "metadataFor" relationship with provided resourceHandle;

Parameters:
resourceHandle - NOT YET DOCUMENTED
Method Detail

setUniqueId

public void setUniqueId(String id)
Sets the uniqueId attribute of the AddMetadataRequest object

Parameters:
id - The new uniqueId value

setMetadataFor

public void setMetadataFor(String resourceHandle)
Sets the metadataFor attribute of the AddMetadataRequest object

Parameters:
resourceHandle - The new metadataFor value

setDataStream

public void setDataStream(String format,
                          Element element)
                   throws Exception
Sets the dataStream attribute of the AddMetadataRequest object

Parameters:
format - The new dataStream value
element - The new dataStream value
Throws:
Exception - if inputXML is null, or if element is null

setMetadataProvidedBy

public void setMetadataProvidedBy(String mdpHandle)
Sets the metadataProvidedBy attribute of the AddMetadataRequest object

Parameters:
mdpHandle - The new metadataProvidedBy value

DLESE Tools
v1.6.0