Ignore:
Timestamp:
2004-02-05T12:06:43+13:00 (20 years ago)
Author:
cs025
Message:

Added remove function, or tidied as appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSDescriptive.java

    r6348 r6738  
    121121    }
    122122    namespaceData.setMetadata(label, value);
     123  }
     124
     125  /**
     126   *  Remove the metadata for a particular label.
     127   *
     128   *  @param <code>String</code> the namespace in which the metadata occurs
     129   *  @param <code>String</code> the label of the metadata
     130   */
     131  public void removeMetadata(String namespace, String label)
     132  { METSNamespace namespaceData = this.getOpenNamespace(namespace);
     133
     134    if (namespaceData != null && namespaceData.isEditable() == true)
     135    { namespaceData.removeMetadata(label);
     136    }
    123137  }
    124138
Note: See TracChangeset for help on using the changeset viewer.