1 12 package org.openbravo.xmlEngine; 13 14 18 19 class StackElement { 20 String strName; 21 boolean isSection; 22 boolean skipCharacters; 23 SectionTemplate previousSection; 24 boolean printEnabled = true; 25 26 public StackElement(String strName) { 27 this.strName = strName; 28 this.isSection = false; 29 this.skipCharacters = false; 30 } 31 32 public void setSection (SectionTemplate previousSection) { 33 isSection = true; 34 this.previousSection = previousSection; 35 } 36 37 public boolean isSection () { 38 return isSection; 39 } 40 41 public String name () { 42 return strName; 43 } 44 45 public SectionTemplate section () { 46 return previousSection; 47 } 48 49 public void setSkipCharacters() { 50 this.skipCharacters = true; 51 } 52 53 public boolean skipCharacters() { 54 return skipCharacters; 55 } 56 57 public void setPrintEnabled(boolean printEnabled) { 58 this.printEnabled = printEnabled; 59 } 60 61 public boolean printEnabled() { 62 return printEnabled; 63 } 64 65 } 66 | Popular Tags |