Class BaseMetadata

java.lang.Object
org.pharmgkb.parser.vcf.model.BaseMetadata
Direct Known Subclasses:
IdMetadata

public class BaseMetadata extends Object
VCF metadata in the format XXX=<key=value,key=value,...>. The properties are case-sensitive.
  • Constructor Details

    • BaseMetadata

      public BaseMetadata(@Nonnull Map<String,String> properties)
  • Method Details

    • getPropertyUnquoted

      @Nullable public String getPropertyUnquoted(@Nonnull String key)
    • getPropertyRaw

      @Nullable public String getPropertyRaw(@Nonnull String key)
    • getPropertiesUnquoted

      @Nonnull public Map<String,String> getPropertiesUnquoted()
    • getPropertiesRaw

      @Nonnull public Map<String,String> getPropertiesRaw()
    • getPropertyKeys

      @Nonnull public Set<String> getPropertyKeys()
    • putAndQuoteProperty

      public void putAndQuoteProperty(@Nonnull String key, @Nullable String value)
    • putPropertyRaw

      public void putPropertyRaw(@Nonnull String key, @Nullable String value)
    • ensureNoExtras

      protected void ensureNoExtras(@Nonnull String... names)
      Should be used only for base classes. Logs a warning if this metadata contains a property key not in the array passed.
      Parameters:
      names - An array of permitted property keys