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: IFormatDefinition.java 3614 2006-12-11 22:36:52Z mpreston $
23: *
24: */
25: package com.bostechcorp.cbesb.common.mdl;
26:
27: /**
28: * Base interface to hold the format definition attributes. Provides a common
29: * method to get/set the name identifying the type of format. Each format
30: * supported by MDL will extend from this interface to create a more specific
31: * Format Definition interface.
32: *
33: */
34: public interface IFormatDefinition {
35:
36: /**
37: * An element or message defined as fixed.
38: */
39: public static final String FORMAT_FIXED = "fixed";
40:
41: /**
42: * An element or message defined as variable.
43: */
44: public static final String FORMAT_VARIABLE = "variable";
45:
46: /**
47: * Get the value of format attribute.
48: *
49: * @return String The value of format attribute.
50: */
51: public String getName();
52:
53: /**
54: * Set the value of format attribute.
55: *
56: * @param name The value of format attribute.
57: */
58: public void setName(String name);
59: }
|