Class AbstractNameList
- java.lang.Object
-
- cern.accsoft.steering.aloha.util.io.AbstractNameList
-
- Direct Known Subclasses:
YaspStabilityList
public abstract class AbstractNameList extends java.lang.Objectthis 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.StringgetAllowedFileName()has to be overwritten by subclass to check for a valid Name.java.util.List<java.lang.String>getNames()voidparse()parses the file given in the Constructor and interprets each line as name.
-
-
-
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 NameListExceptionparses 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.
-
-