01: /*
02: * $Id: XML.java,v 1.4 2004/12/09 12:34:48 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: package bexee.ecs;
10:
11: /**
12: * This class is used to override the default constructor of the
13: * <code>org.apache.ecs.xml.XML</code> in order to set some properties. These
14: * properties are common for all usages of <code>org.apache.ecs.xml.XML</code>
15: * in bexee.
16: *
17: * @version $Revision: 1.4 $, $Date: 2004/12/09 12:34:48 $
18: * @author Patric Fornasier
19: * @author Pawel Kowalski
20: */
21: public class XML extends org.apache.ecs.xml.XML {
22:
23: private final static boolean MUST_CLOSE_ELEMENT = true;
24:
25: private final static boolean PRETTY_PRINT_ENABLED = false;
26:
27: private final static int TAB_LEVEL = 1;
28:
29: /**
30: * Create a new <code>XML</code> instance with the given
31: * <code>elementName</code>.
32: */
33: public XML(String elementName) {
34: super(elementName, MUST_CLOSE_ELEMENT);
35: setTabLevel(TAB_LEVEL);
36: setPrettyPrint(PRETTY_PRINT_ENABLED);
37: }
38:
39: }
|