All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.bio.seq.format.feature.FeatureQualifierImpl Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
package com.hfg.bio.seq.format.feature;


import com.hfg.util.StringBuilderPlus;

public abstract class FeatureQualifierImpl implements FeatureQualifier
{
   private String mName;
   private StringBuilderPlus mValue = new StringBuilderPlus().setDelimiter(" ");

   //###########################################################################
   // CONSTRUCTORS
   //###########################################################################

   //---------------------------------------------------------------------------
   public FeatureQualifierImpl(String inName)
   {
      mName = inName;
   }

   //---------------------------------------------------------------------------
   public FeatureQualifierImpl(String inName, String inValue)
   {
      this(inName);
      setValue(inValue);
   }

   //###########################################################################
   // PUBLIC METHODS
   //###########################################################################

   //---------------------------------------------------------------------------
   public String name()
   {
      return mName;
   }

   //---------------------------------------------------------------------------
   public FeatureQualifierImpl setValue(String inValue)
   {
      mValue.setLength(0);
      return appendToValue(inValue);
   }

   //---------------------------------------------------------------------------
   public FeatureQualifierImpl appendToValue(String inValue)
   {
      mValue.delimitedAppend(inValue);

      return this;
   }

   //---------------------------------------------------------------------------
   public String getValue()
   {
      return mValue.toString();
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy