KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > migrate > BaseConfigUpdate


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.config.schema.migrate;
6
7 import org.apache.xmlbeans.XmlOptions;
8
9 public abstract class BaseConfigUpdate implements ConfigUpdate {
10
11   public XmlOptions createDefaultXmlOptions() {
12     XmlOptions opts = new XmlOptions();
13     opts.setLoadLineNumbers();
14     opts.setValidateOnSet();
15     opts.setSavePrettyPrint();
16     opts.setSavePrettyPrintIndent(3);
17     opts.remove(XmlOptions.LOAD_STRIP_WHITESPACE);
18     opts.remove(XmlOptions.LOAD_STRIP_COMMENTS);
19     return opts;
20   }
21 }
22
Popular Tags