1 /* 2 * Copyright (C) 2002-2003,2017-2023 Dipl.-Inform. Kai Hofmann. All rights reserved! 3 */ 4 package de.powerstat.phplib.templateengine; 5 6 7 /** 8 * Enum for handling of undefined variables. 9 */ 10 public enum HandleUndefined 11 { 12 /** 13 * Remove variables. 14 */ 15 REMOVE(0), 16 17 /** 18 * Keep variables. 19 */ 20 KEEP(1), 21 22 /** 23 * Change to XML comments. 24 */ 25 COMMENT(2); 26 27 28 /** 29 * Action number. 30 */ 31 private final int action; 32 33 34 /** 35 * Ordinal constructor. 36 * 37 * @param action Action number 38 */ 39 HandleUndefined(final int action) 40 { 41 this.action = action; 42 } 43 44 45 /** 46 * Get action number. 47 * 48 * @return Action number 49 */ 50 public int getAction() 51 { 52 return this.action; 53 } 54 55 }