01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: * $Id: CBRConversion.java 6998 2007-04-24 01:13:00Z jzhang $
23: *
24: */
25: package com.bostechcorp.cbesb.ui.util.version;
26:
27: import org.jdom.Element;
28:
29: /**
30: *
31: */
32: public class CBRConversion {
33:
34: public static void convert(Element element, Element newElement) {
35: Element newProviderCCSL;
36: if (element.getChild("cbrCCSL") == null) {
37: newProviderCCSL = ConversionUtil.convertCCSL(
38: ConversionUtil.PROVIDER, element, "CCSL");
39: } else {
40: newProviderCCSL = ConversionUtil.createCCSL(
41: ConversionUtil.PROVIDER, element
42: .getChild("cbrCCSL"));
43: }
44: newElement.addContent(newProviderCCSL);
45: }
46: }
|