01: /*
02: * $Id: ModelField.java,v 1.1 2003/08/19 00:27:10 jonesde Exp $
03: *
04: * Copyright (c) 2001-2003 The Open For Business Project - www.ofbiz.org
05: *
06: * Permission is hereby granted, free of charge, to any person obtaining a
07: * copy of this software and associated documentation files (the "Software"),
08: * to deal in the Software without restriction, including without limitation
09: * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10: * and/or sell copies of the Software, and to permit persons to whom the
11: * Software is furnished to do so, subject to the following conditions:
12: *
13: * The above copyright notice and this permission notice shall be included
14: * in all copies or substantial portions of the Software.
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17: * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
21: * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22: * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23: *
24: */
25: package org.ofbiz.datafile;
26:
27: /**
28: * ModelField
29: *
30: * @author <a href="mailto:jonesde@ofbiz.org">David E. Jones</a>
31: * @version $Revision: 1.1 $
32: * @since 2.0
33: */
34: public class ModelField {
35:
36: /** The name of the Field */
37: public String name = "";
38:
39: /** The position of the field in the record - byte number for fixed-length, or field number for delimited */
40: public int position = -1;
41:
42: /** The length of the Field in bytes, if applicable (mostly for fixed-length) */
43: public int length = -1;
44:
45: /** The type of the Field */
46: public String type = "";
47:
48: /** The format of the Field */
49: public String format = "";
50:
51: /** The valid-exp of the Field */
52: public String validExp = "";
53:
54: /** Free form description of the Field */
55: public String description = "";
56:
57: /** boolean which specifies whether or not the Field is a Primary Key */
58: public boolean isPk = false;
59: }
|