com.hfg.bio.seq.format.feature.FeatureQualifierImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
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();
}
}