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: IFixedChildAttributes.java 3614 2006-12-11 22:36:52Z mpreston $
23: *
24: */
25: package com.bostechcorp.cbesb.common.mdl;
26:
27: /**
28: * This interface extends FormatChildAttributes and represents the child level
29: * attributes specific to fixed format. Some of the functionality provided:
30: * 1. Get/Set length
31: * 2. Get/Set justification
32: * 3. Get/Set fill character
33: *
34: */
35: public interface IFixedChildAttributes extends IFormatChildAttributes {
36:
37: /**
38: * "0" is meaning the value of justification is "left". The default value is "left".
39: */
40: public static final byte JUSTIFICATION_LEFT = 0;
41:
42: /**
43: * "1" is meaning the value of justification is "right".
44: */
45: public static final byte JUSTIFICATION_RIGHT = 1;
46:
47: /**
48: * Get length
49: *
50: * @return int
51: */
52: public int getLength();
53:
54: /**
55: * Set length
56: *
57: * @param length
58: */
59: public void setLength(int length);
60:
61: /**
62: * Get fillChar
63: *
64: * @return char
65: */
66: public char getFillChar();
67:
68: /**
69: * Set fillChar
70: *
71: * @param fillChar
72: */
73: public void setFillChar(char fillChar);
74:
75: /**
76: * Get justification
77: *
78: * @return byte
79: */
80: public byte getJustification();
81:
82: /**
83: * Set justification
84: *
85: * @param justification
86: */
87: public void setJustification(byte justification);
88: }
|