Class OriginalMetadataAnnotation

All Implemented Interfaces:
OMEModelObject

public class OriginalMetadataAnnotation extends XMLAnnotation
  • Field Details

    • ORIGINAL_METADATA_NS

      public static final String ORIGINAL_METADATA_NS
  • Constructor Details

    • OriginalMetadataAnnotation

      public OriginalMetadataAnnotation()
  • Method Details

    • setKeyValue

      public void setKeyValue(String key, String value)
      Set the key/value metadata pair for this annotation.
      Parameters:
      key - the original metadata key
      value - the original metadata value
    • getKey

      public String getKey()
      Returns:
      the original metadata key
    • getValueForKey

      public String getValueForKey()
      Return just the value (i.e. v in k=v) as opposed to the XML value which contains the entire block (e.g. <originalmetadata>...)
    • makeOriginalMetadata

      protected Element makeOriginalMetadata(Document document)
      Create a DOM element for this annotation with the given document as the parent.
      Parameters:
      document - the parent document for this annotation
      Returns:
      the DOM element corresponding to this annotation