Class AbstractNameList

  • Direct Known Subclasses:
    YaspStabilityList

    public abstract class AbstractNameList
    extends java.lang.Object
    this class represents a file which contains a list of names. It provides some simple methods to easily access these names.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractNameList​(java.io.File file)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.String getAllowedFileName()
      has to be overwritten by subclass to check for a valid Name.
      java.util.List<java.lang.String> getNames()  
      void parse()
      parses the file given in the Constructor and interprets each line as name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractNameList

        public AbstractNameList​(java.io.File file)
        Parameters:
        file - the filename of the list
    • Method Detail

      • getAllowedFileName

        protected abstract java.lang.String getAllowedFileName()
        has to be overwritten by subclass to check for a valid Name.
        Returns:
        the name which is valid for this list.
      • parse

        public void parse()
                   throws NameListException
        parses the file given in the Constructor and interprets each line as name. Correct naming convention is not verified!
        Throws:
        NameListException
      • getNames

        public java.util.List<java.lang.String> getNames()
        Returns:
        a list of names.