import jalview.datamodel.AlignmentI;
import jalview.datamodel.DBRefSource;
-import jalview.util.Platform;
import com.stevesoft.pat.Regex;
public class EmblCdsSource extends EmblXmlSource
{
- private Regex ACCESSION_REGEX = null;
-
public EmblCdsSource()
{
super();
@Override
public Regex getAccessionValidator()
{
- if (ACCESSION_REGEX == null)
- {
- ACCESSION_REGEX = Platform.newRegex("^[A-Z]+[0-9]+", null);
- }
- return ACCESSION_REGEX;
+ return new Regex("^[A-Z]+[0-9]+");
}
@Override