Class 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 ( <schema>.<element>.<qualifier> ) on which to apply the action when the method execute is called. Implemented as a Set to avoid problems with duplicates
    • 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 - Set of target fields to update
      • addTargetFields

        public void addTargetFields​(String[] targetFields)
        Add array of target fields to update
        Parameters:
        targetFields - array of target fields to update
      • addTargetField

        public void addTargetField​(String targetField)
        Add single field to update
        Parameters:
        targetField - target field to update