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: *
23: * $Id: FixedFormatDefinitionImpl.java 6044 2007-03-18 03:55:52Z mpreston $
24: */
25: package com.bostechcorp.cbesb.common.mdl.impl;
26:
27: import java.io.PrintStream;
28:
29: import org.jdom.Attribute;
30: import org.jdom.Element;
31:
32: import com.bostechcorp.cbesb.common.mdl.IFixedFormatDefinition;
33: import com.bostechcorp.cbesb.common.mdl.MDLDocConstants;
34:
35: public class FixedFormatDefinitionImpl extends FormatDefinitionImpl
36: implements IFixedFormatDefinition {
37:
38: public void debug(PrintStream writer, String tabs) {
39: writer.print(tabs + "Format [fixed]");
40: }
41:
42: public FixedFormatDefinitionImpl() {
43: super ();
44: name = IFixedFormatDefinition.FORMAT_FIXED;
45: }
46:
47: public void populateJDomElementDefAttributes(
48: MDLSerializerUtil serializerUtil, Element elemDef) {
49: Attribute attrFormat = serializerUtil.createAttribute(
50: MDLDocConstants.MDL_FORMAT, name);
51: elemDef.setAttribute(attrFormat);
52: }
53:
54: public void populateJDomContentAttributes(
55: MDLSerializerUtil serializerUtil, Element elemContent) {
56: //No attributes to set on the content element
57: }
58: }
|