Skip to content

Package: PruefskriptConstants

PruefskriptConstants

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 130
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 43
100%
M: 0 C: 1
100%

Coverage

1: package basic;
2:
3: /**
4: * A Class for the String and Integer Constants.
5: *
6: * @author HFW410LE - Lisa Leitloff
7: *
8: */
9: public final class PruefskriptConstants {
10:
11:         /**
12:          * DefaultConstructor.
13:          */
14:         private PruefskriptConstants() {
15:         }
16:
17:         /**
18:          * This is the error message for the non-stringarray value.
19:          */
20:         public static final String UNEXPECTED_STRINGARRAY =
21:                         "Unexpected value! Expected a stringarray value!";
22:         /**
23:          * This is the error message for the non-numarray value.
24:          */
25:         public static final String UNEXPECTED_NUMARRAY =
26:                         "Unexpected value! Expected a numarray value!";
27:         /**
28:          *
29:          */
30:         public static final String UNEXPECTED_ARRAY = "Unexpected value! Expected a array value!";
31:         /**
32:          * This is the error message for the non-string value.
33:          */
34:         public static final String UNEXPECTED_STRING = "Unexpected value! Expected a string value!";
35:
36:         /**
37:          * This is the error message for the non-numeric value.
38:          */
39:         public static final String UNEXPECTED_NUMERIC = "Unexpected value! Expected a numeric value!";
40:
41:         /**
42:          * This is the error message for the non-boolean value.
43:          */
44:         public static final String UNEXPECTED_BOOLEAN = "Unexpected value! Expected a boolean value!";
45:
46:         /**
47:          * This is the error message for the non-version value.
48:          */
49:         public static final String UNEXPECTED_VERSION = "Unexpected value! Expected a version value!";
50:
51:         /**
52:          * This is the error message for the non-version value.
53:          */
54:         public static final String UNEXPECTED_VOID = "Unexpected value! Expected a void value!";
55:
56:         /**
57:          * This is the error message for the non-id value.
58:          */
59:         public static final String UNEXPECTED_ID = "Unexpected value! Expected a id value!";
60:         /**
61:          * This is the error message for the non-idset value.
62:          */
63:         public static final String UNEXPECTED_IDSET = "Unexpected value! Expected a idset value!";
64:         /**
65:          * This is the error message if the interprete Funktion of a OperationNode is called with false
66:          * Nodes as operands.
67:          */
68:         public static final String UNEXPECTED_NUM_OPERATION =
69:                         "Unexpected node! Expected a node which interprete-function returns a numeric value!";
70:
71:         /**
72:          * This is the error message if the interprete Funktion of a OperationNode is called with false
73:          * Nodes as operands.
74:          */
75:         public static final String UNEXPECTED_BOOL_OPERATION =
76:                         "Unexpected node! Expected a node which interprete-function returns a boolean value!";
77:
78:         /**
79:          * This is the error message if the interprete Funktion of a OperationNode is called with false
80:          * Nodes as operands.
81:          */
82:         public static final String UNEXPECTED_ID_OPERATION =
83:                         "Unexpected node! Expected a node which interprete-function returns a id value!";
84:
85:         /**
86:          * This is the error message if the interprete Funktion of a OperationNode is called with false
87:          * Nodes as operands.
88:          */
89:         public static final String UNEXPECTED_VOID_OPERATION =
90:                         "Unexpected node! Expected a node which interprete-function returns a void value!";
91:
92:         /**
93:          * This is the error message if the interprete Funktion of a OperationNode is called with false
94:          * Nodes as operands.
95:          */
96:         public static final String UNEXPECTED_STRING_OPERATION =
97:                         "Unexpected node! Expected a node which interprete-function returns a string value!";
98:         /**
99:          * This is the error message if the interprete Funktion of a OperationNode is called with false
100:          * Nodes as operands.
101:          */
102:         public static final String UNEXPECTED_MATCH_OPERATION =
103:                         "Unexpected node! Expected first a node which interprete-function returns a id value and then a node, which interpret-function returns a string node!";
104:
105:         /**
106:          * This is the error message if the interprete Funktion of a OperationNode is called with false
107:          * Nodes as operands.
108:          */
109:         public static final String UNEXPECTED_VOID_VALUE = "Unexpected voidvalue!";
110:
111:         /**
112:          * This is the error message if the interprete Funktion of a OperationNode is called with false
113:          * Nodes as operands.
114:          */
115:         public static final String UNEXPECTED_FOR_EACH =
116:                         "The parameters of foreach didn't match the expected parameters!";
117:
118:         /**
119:          * This is the error message if the interprete Funktion of a OperationNode is called with false
120:          * Nodes as operands.
121:          */
122:         public static final String NO_NUM_VER_STRING_TYP =
123:                         "The type the ID was no numeric, version or string value!";
124:
125:         /**
126:          * This is the error message if the interprete Funktion of a OperationNode is called with false
127:          * Nodes as operands.
128:          */
129:         public static final String NO_NUM_VER_STRING_BOOL_TYP =
130:                         "The type the ID was no numeric, version, boolean or string value!";
131:
132:         /**
133:          * This is the hashCode for AddNode.
134:          */
135:         public static final Integer ADDNODE_HASHCODE = 10;
136:
137:         /**
138:          * This is the hashCode for SubNode.
139:          */
140:         public static final Integer SUBNODE_HASHCODE = 20;
141:
142:         /**
143:          * This is the hashCode for ModNode.
144:          */
145:         public static final Integer MODNODE_HASHCODE = 30;
146:
147:         /**
148:          * This is the hashCode for MultNode.
149:          */
150:         public static final Integer MULTNODE_HASHCODE = 40;
151:
152:         /**
153:          * This is the hashCode for DivNode.
154:          */
155:         public static final Integer DIVNODE_HASHCODE = 50;
156:
157:         /**
158:          * This is the hashCode for AndNode.
159:          */
160:         public static final Integer ANDNODE_HASHCODE = 60;
161:
162:         /**
163:          * This is the hashCode for OrNode.
164:          */
165:         public static final Integer ORNODE_HASHCODE = 70;
166:
167:         /**
168:          * This is the hashCode for CopyPendingNode.
169:          */
170:         public static final Integer COPY_PENDINGNODE_HASHCODE = 80;
171:
172:         /**
173:          * This is the hashCode for SubnetNode.
174:          */
175:         public static final Integer SUBNETNODE_HASHCODE = 90;
176:
177:         /**
178:          * This is the hashCode for SamenetNode.
179:          */
180:         public static final Integer SAMENETNODE_HASHCODE = 100;
181:
182:         /**
183:          * This is the hashCode for NotNode.
184:          */
185:         public static final Integer NOTNODE_HASHCODE = 110;
186:
187:         /**
188:          * This is the hashCode for EqualNode.
189:          */
190:         public static final Integer EQUALNODE_HASHCODE = 120;
191:
192:         /**
193:          * This is the hashCode for NotEqualNode.
194:          */
195:         public static final Integer NOTEQUALNODE_HASHCODE = 130;
196:
197:         /**
198:          * This is the hashCode for LessNode.
199:          */
200:         public static final Integer LESSNODE_HASHCODE = 140;
201:
202:         /**
203:          * This is the hashCode for GreaterNode.
204:          */
205:         public static final Integer GREATERNODE_HASHCODE = 150;
206:
207:         /**
208:          * This is the hashCode for LENode.
209:          */
210:         public static final Integer LENODE_HASHCODE = 160;
211:
212:         /**
213:          * This is the hashCode for GENode.
214:          */
215:         public static final Integer GENODE_HASHCODE = 170;
216:
217:         /**
218:          * This is the hashCode for MatchNode.
219:          */
220:         public static final Integer MATCHNODE_HASHCODE = 180;
221:
222:         /**
223:          * This is the hashCode for AddToOptNode.
224:          */
225:         public static final Integer ADD_TO_OPTNODE_HASHCODE = 190;
226:
227:         /**
228:          * This is the hashCode for WarningNode.
229:          */
230:         public static final Integer WARNINGNODE_HASHCODE = 200;
231:
232:         /**
233:          * This is the hashCode for ErrorNode.
234:          */
235:         public static final Integer ERRORNODE_HASHCODE = 210;
236:
237:         /**
238:          * This is the hashCode for FatalErrorNode.
239:          */
240:         public static final Integer FATAL_ERRORNODE_HASHCODE = 220;
241:
242:         /**
243:          * This is the hashCode for ProvidesNode.
244:          */
245:         public static final Integer PROVIDESNODE_HASHCODE = 230;
246:
247:         /**
248:          * This is the hashCode for DependsNode.
249:          */
250:         public static final Integer DEPENDSNODE_HASHCODE = 240;
251:
252:         /**
253:          * This is the hashCode for DefinedNode.
254:          */
255:         public static final Integer DEFINEDNODE_HASHCODE = 250;
256:
257:         /**
258:          * This is the hashCode for AssignNode.
259:          */
260:         public static final Integer ASSIGNNODE_HASHCODE = 260;
261:
262:         /**
263:          * This is the hashCode for SplitNode.
264:          */
265:         public static final Integer SPLITNODE_HASHCODE = 270;
266:
267:         /**
268:          * This is the hashCode for FGrepNode.
269:          */
270:         public static final Integer FGREPNODE_HASHCODE = 280;
271:
272:         /**
273:          * This is the hashCode for StatNode.
274:          */
275:         public static final Integer STATNODE_HASHCODE = 290;
276:
277:         /**
278:          * This is the hashCode for UniqueNode.
279:          */
280:         public static final Integer UNIQUENODE_HASHCODE = 300;
281:
282:         /**
283:          * This is the hashCode for ConditionNode.
284:          */
285:         public static final Integer CONDITIONNODE_HASHCODE = 310;
286:
287:         /**
288:          * This is the hashCode for LineNode.
289:          */
290:         public static final Integer LINENODE_HASHCODE = 320;
291:
292:         /**
293:          * This is the hashCode for CryptNode.
294:          */
295:         public static final Integer CRYPTNODE_HASHCODE = 330;
296:
297:         /**
298:          * This is the hashCode for ForEachNode.
299:          */
300:         public static final Integer FOR_EACHNODE_HASHCODE = 340;
301:
302:         /**
303:          * This is the hashCode for IfNode.
304:          */
305:         public static final Integer IFNODE_HASHCODE = 350;
306:
307:         /**
308:          * This is the hashCode for InputNode.
309:          */
310:         public static final Integer INPUTNODE_HASHCODE = 360;
311:
312:         /**
313:          * This is the hashCode for ScriptNode.
314:          */
315:         public static final Integer SCRIPTNODE_HASHCODE = 370;
316:
317:         /**
318:          * This is the hashCode for ArrayValue.
319:          */
320:         public static final Integer ARRAYVALUE_HASHCODE = 380;
321:
322:         /**
323:          * This is the hashCode for ScriptNode.
324:          */
325:         public static final Integer NUMERICVALUE_HASHCODE = 390;
326:
327:         /**
328:          * This is the hashCode for ArrayValue.
329:          */
330:         public static final Integer STRINGVALUE_HASHCODE = 400;
331:
332:         /**
333:          * This is the hashCode for ArrayValue.
334:          */
335:         public static final Integer VERSIONVALUE_HASHCODE = 410;
336:
337:         /**
338:          * This is the hashCode for ArrayValue.
339:          */
340:         public static final Integer BOOLEANVALUE_HASHCODE = 420;
341:
342:         /**
343:          * This is the hashCode for IdSetArrayNode.
344:          */
345:         public static final Integer IDSETARRAYNODE_HASHCODE = 430;
346:
347:         /**
348:          * "(" for the toString-Function.
349:          */
350:         public static final String BRACKET_OPEN = "(";
351:
352:         /**
353:          * ")" for the toString-Function.
354:          */
355:         public static final String BRACKET_CLOSE = ")";
356:
357:         /**
358:          * Title of the MultNode for the toString-Function.
359:          */
360:         public static final String MULTNODETITLE = "MultNode";
361:
362:         /**
363:          * Title of the DivNode for the toString-Function.
364:          */
365:         public static final String DIVNODETITLE = "DivNode";
366:
367:         /**
368:          * Title of the ModNode for the toString-Function.
369:          */
370:         public static final String MODNODETITLE = "ModNode";
371:
372:         /**
373:          * Title of the SubNode for the toString-Function.
374:          */
375:         public static final String SUBNODETITLE = "SubNode";
376:
377:         /**
378:          * Title of the SubNode for the toString-Function.
379:          */
380:         public static final String STRING = " ";
381:
382:         /**
383:          * Title of the SubNode for the toString-Function.
384:          */
385:         public static final String UNDERLINE = "_";
386:
387:         /**
388:          * Title of the SubNode for the toString-Function.
389:          */
390:         public static final String UNDERLINEMOD = "_%";
391:
392:         /**
393:          * Title of the AddNode for the toString-Function.
394:          */
395:         public static final String ADDNODETITLE = "AddNode";
396:
397:         /**
398:          * Title of the MatchNode for the toString-Function.
399:          */
400:         public static final String MATCHNODETITLE = "MatchNode";
401:
402:         /**
403:          * Title of the LENode for the toString-Function.
404:          */
405:         public static final String LENODETITLE = "LENode";
406:
407:         /**
408:          * Title of the GENode for the toString-Function.
409:          */
410:         public static final String GENODETITLE = "GENode";
411:
412:         /**
413:          * Title of the GreaterNode for the toString-Function.
414:          */
415:         public static final String GREATERNODETITLE = "GreaterNode";
416:
417:         /**
418:          * Title of the LessNode for the toString-Function.
419:          */
420:         public static final String LESSNODETITLE = "LessNode";
421:
422:         /**
423:          * Title of the NotEqualNode for the toString-Function.
424:          */
425:         public static final String NOTEQUALNODETITLE = "NotEqualNode";
426:
427:         /**
428:          * Title of the EqualNode for the toString-Function.
429:          */
430:         public static final String EQUALNODETITLE = "EqualNode";
431:
432:         /**
433:          * Title of the NotNode for the toString-Function.
434:          */
435:         public static final String NOTNODETITLE = "NotNode";
436:
437:         /**
438:          * Title of the SamenetNode for the toString-Function.
439:          */
440:         public static final String SAMENETNODETITLE = "SamenetNode";
441:
442:         /**
443:          * Title of the SubnetNode for the toString-Function.
444:          */
445:         public static final String SUBNETNODETITLE = "SubnetNode";
446:
447:         /**
448:          * Title of the CopyPendingNode for the toString-Function.
449:          */
450:         public static final String COPY_PENDINGNODETITLE = "CopyPendingNode";
451:
452:         /**
453:          * Title of the AndNode for the toString-Function.
454:          */
455:         public static final String ANDNODETITLE = "AndNode";
456:
457:         /**
458:          * Title of the OrNode for the toString-Function.
459:          */
460:         public static final String ORNODETITLE = "OrNode";
461:
462:         /**
463:          * Title of the CryptNode for the toString-Function.
464:          */
465:         public static final String CRYPTNODETITLE = "CryptNode";
466:
467:         /**
468:          * Title of the NumExprNode for the toString-Function.
469:          */
470:         public static final String NUMEXPRNODETITLE = "NumExpNode";
471:
472:         /**
473:          * Title of the StringNode for the toString-Function.
474:          */
475:         public static final String STRINGNODETITLE = "StringNode";
476:
477:         /**
478:          * Title of the VerNode for the toString-Function.
479:          */
480:         public static final String VERNODETITLE = "VerNode";
481:
482:         /**
483:          * Title of the IDNode for the toString-Function.
484:          */
485:         public static final String IDNODETITLE = "IDNode";
486:
487:         /**
488:          * Title of the IdSetNode for the toString-Function.
489:          */
490:         public static final String IDSETNODETITLE = "IdSetNode";
491:
492:         /**
493:          * Title of the MajorVerNode for the toString-Function.
494:          */
495:         public static final String MAJORVERNODETITLE = "MajorVerNode";
496:
497:         /**
498:          * Title of the VerExprNode for the toString-Function.
499:          */
500:         public static final String VEREXPRNODETITLE = "VerExprNode";
501:         /**
502:          * Title of the AssignNode for the toString-Function.
503:          */
504:         public static final String ASSIGNNODETITLE = "AssignNode";
505:         /**
506:          * Title of the InputNode for the toString-Function.
507:          */
508:         public static final String INPUTNODETITLE = "InputNode";
509:         /**
510:          * Title of the Match-Variable.
511:          */
512:         public static final String MATCH_VARIABLE = "match_%";
513:
514:         /**
515:          * .
516:          */
517:         public static final String UNIQUETITLE = "UniqueNode";
518:         /**
519:          *
520:          */
521:         public static final String UNIQUEERROR = "FORBIDDEN UNIQUE FOUND!";
522:         /**
523:          * .
524:          */
525:         public static final String STATTITLE = "StatNode";
526:         /**
527:          * .
528:          */
529:         public static final String STATSIZE = "_size";
530:         /**
531:          * .
532:          */
533:         public static final String STATRES = "_res";
534:         /**
535:          * .
536:          */
537:         public static final String STATRESMESSAGE = "ok";
538:         /**
539:          * .
540:          */
541:         public static final String STATRESMESSAGE_NOTOK = "not ok";
542:         /**
543:          * .
544:          */
545:         public static final String FGREPSIZE = "FGREP_MATCH_N";
546:         /**
547:          * .
548:          */
549:         public static final String FGREPMATCHES = "FGREP_MATCH_";
550:         /**
551:          * .
552:          */
553:         public static final String FGREPTITLE = "FGrepNode";
554:         /**
555:          * .
556:          */
557:         public static final String SPLITTILE = "SplitNode";
558:         /**
559:          * Stellt den Wahrheitswert "true" dar.
560:          */
561:         public static final String TRUEVALUE = "yes";
562:         /**
563:          * Stellt den Wahrheitswert "false" dar.
564:          */
565:         public static final String FALSEVALUE = "no";
566:         /**
567:          * .
568:          */
569:         public static final String DEFINEDTITLE = "DefinedNode";
570:         /**
571:          * .
572:          */
573:         public static final String DEPENDSTITLE = "DependsNode";
574:         /**
575:          * .
576:          */
577:         public static final String PROVIDESTITLE = "ProvidesNode";
578:         /**
579:          * .
580:          */
581:         public static final String FATALERRORTITLE = "FatalErrorNode";
582:         /**
583:          * .
584:          */
585:         public static final String ERRORTITLE = "ErrorNode";
586:         /**
587:          * .
588:          */
589:         public static final String WARNINGTITLE = "WarningNode";
590:         /**
591:          * .
592:          */
593:         public static final String ADDTOOPTTITLE = "AddToOptNode";
594:         /**
595:          * .
596:          */
597:         public static final String FOREACHTITLE = "ForEachNode";
598:         /**
599:          * .
600:          */
601:         public static final String IFTITLE = "IfNode";
602:         /**
603:          * .
604:          */
605:         public static final String CONDITIONTITLE = "ConditionNode";
606:         /**
607:          * .
608:          */
609:         public static final String LINETITLE = "LineNode";
610:         /**
611:          * .
612:          */
613:         public static final String SKRIPTTITLE = "SkriptNode";
614:         /**
615:          * .
616:          */
617:         public static final String WARNINGTEXT = "Warning: ";
618:         /**
619:          * .
620:          */
621:         public static final String ERRORTEXT = "Error: ";
622:         /**
623:          * .
624:          */
625:         public static final String DOLLARMARKEDSIGN = "marked\\{\\$\\}marked";
626:         /**
627:          * .
628:          */
629:         public static final String PROZMARKEDSIGN = "marked\\{\\%\\}marked";
630:         /**
631:          *
632:          */
633:         public static final String IDSETARRAYNODETITLE = "IdSetArrayNode";
634:
635:         /**
636:          *
637:          */
638:         public static final String ARRAYVALUETITLE = "ArrayValue ";
639:
640:         /**
641:          *
642:          */
643:         public static final String NUMERICVALUETITLE = "NumericValue ";
644:
645:         /**
646:          *
647:          */
648:         public static final String STRINGVALUETITLE = "StringValue ";
649:
650:         /**
651:          *
652:          */
653:         public static final String VERSIONVALUETITLE = "VersionValue ";
654:
655:         /**
656:          *
657:          */
658:         public static final String BOOLEANVALUETITLE = "BooleanValue ";
659:         /**
660:          *
661:          */
662:         public static final String LOCALPACKNAME = "";
663:         /**
664:          *
665:          */
666:         public static final String MODELTYPEVERSION = "DOT_NUMERIC";
667:         /**
668:          *
669:          */
670:         public static final String MODELTYPESTRING = "none";
671:         /**
672:          *
673:          */
674:         public static final String MODELTYPENUMERIC = "numeric";
675:         /**
676:          *
677:          */
678:         public static final String MODELTYPEBOOL = "YESNO";
679: }