Skip to content

Package: ParserConstants

ParserConstants

Coverage

1: package parser;
2:
3: /**
4: * Constrants for the parser.
5: *
6: * @author Lisa Leitloff
7: *
8: */
9: public final class ParserConstants {
10:         /**
11:          * Konstruktor of ParserConstants. This konstruktor is private, because it is a constant class.
12:          */
13:         private ParserConstants() {
14:         }
15:
16:         /**
17:          * String praefix for rootfs.
18:          */
19:         public static final String ROOTFS_PRAEFIX_1 = "rootfs:";
20:         /**
21:          * String praefix for rootfs.
22:          */
23:         public static final String ROOTFS_PRAEFIX_2 = "rootfs:files/";
24:         /**
25:          * String for the exception in commentstate of PackageDescriptionFileParser.
26:          */
27:         public static final String COMMENT_FEHLER = "after a comment comes no row end.";
28:         /**
29:          * String for the exception in OptionState of PackageDescriptionFileParser.
30:          */
31:         public static final String OPTION_FEHLER = "";
32:         /**
33:          * String for the exception in VariableState of PackageDescriptionFileParser.
34:          */
35:         public static final String VARIBALE_FEHLER = "";
36:         /**
37:          * String for the exception in Value state of PackageDescriptionFileParser.
38:          */
39:         public static final String VALUE_FEHLER = "";
40:         /**
41:          * String for the exception in path state of PackageDescriptionFileParser.
42:          */
43:         public static final String PATH_FEHLER = "";
44:         /**
45:          * String for the exception in inital state of PackageDescriptionFileParser.
46:          */
47:         public static final String INITIAL_FEHLER = "";
48:         /**
49:          * String for the exception if there is no buffer in PackageDescriptionFileParser.
50:          */
51:         public static final String NO_BUFFER = "";
52:         /**
53:          * String, which is expected if a format_version exists.
54:          */
55:         public static final String OPT_FORMAT_VERSION = "opt_format_version";
56:
57:         /**
58:          * String for the exception if there is no equalsign in the option.
59:          */
60:         public static final String NO_EQUALSIGN = "There is no equalsign in the option";
61:
62:         /**
63:          * String for the exception if after a FormatVersion didn't follow a pathSymbol with -.
64:          */
65:         public static final String FORMAT_VERSION_EXCEPTION =
66:                         "The next symbol is no - as Path Symbol";
67:         /**
68:          * String for the exception if after a FormatVersion didn't follow a pathSymbol.
69:          */
70:         public static final String PATH_EXCEPTION = "The next symbol is no Path Symbol";
71:         /**
72:          * String for the exception if the numberformat excetion will be thrown.
73:          */
74:         public static final String NUMBER_FORMAT_EXCEPTION = "Formatversion has to be an Integer";
75:         /**
76:          * String for the exception if the packagedescriptionfileparser receive a symbol, he doesn't
77:          * know.
78:          */
79:         public static final String NO_PACKAGE_SYMBOL =
80:                         "The PackageDescriptionFileParser doesn't know this symbol.";
81:         /**
82:          * String for the exception, if the type is not found.
83:          */
84:         public static final String TYPENOTFOUND = "Type is not extendable";
85: }