org.dspace.app.itemupdate
Class UpdateMetadataAction

java.lang.Object
  extended by org.dspace.app.itemupdate.UpdateMetadataAction
All Implemented Interfaces:
UpdateAction
Direct Known Subclasses:
AddMetadataAction, DeleteMetadataAction

public abstract class UpdateMetadataAction
extends Object
implements UpdateAction

This abstract subclass for metadata actions maintains a collection for the target metadata fields expressed as a string in the compound notation ( .. ) on which to apply the action when the method execute is called. Implemented as a Set to avoid problems with duplicates


Field Summary
protected  Set<String> targetFields
           
 
Constructor Summary
UpdateMetadataAction()
           
 
Method Summary
 void addTargetField(String targetField)
          Add single field to update
 void addTargetFields(Set<String> targetFields)
          Set target fields
 void addTargetFields(String[] targetFields)
          Add array of target fields to update
 Set<String> getTargetFields()
          Get target fields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dspace.app.itemupdate.UpdateAction
execute
 

Field Detail

targetFields

protected Set<String> targetFields
Constructor Detail

UpdateMetadataAction

public UpdateMetadataAction()
Method Detail

getTargetFields

public Set<String> getTargetFields()
Get target fields

Returns:
set of fields to update

addTargetFields

public void addTargetFields(Set<String> targetFields)
Set target fields

Parameters:
targetFields -

addTargetFields

public void addTargetFields(String[] targetFields)
Add array of target fields to update

Parameters:
targetFields -

addTargetField

public void addTargetField(String targetField)
Add single field to update

Parameters:
targetField -


Copyright © 2010 DuraSpace. All Rights Reserved.