- java.lang.Object
-
- org.fissore.jrecordbind.RecordDefinition.Property
-
- Enclosing class:
- RecordDefinition
public static class RecordDefinition.Property extends Object
A single "element" in the fixed-length file definition
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConverter()
The fully qualified class name of the converter used to marshall and unmarshall this propertyString
getFixedValue()
The fixed value of this property, usually used to identify different lines in a single fileint
getLength()
The length of the propertyString
getName()
The name of the propertyString
getPadder()
The padder used to pad this property value.int
getRow()
The row this property is at.String
getType()
The class name of the type of this property.boolean
isEnum()
void
setConverter(String converter)
void
setFixedValue(String value)
void
setLength(int end)
void
setPadder(String padder)
void
setRow(int row)
void
setType(String type)
-
-
-
Method Detail
-
getConverter
public String getConverter()
The fully qualified class name of the converter used to marshall and unmarshall this property- Returns:
- a fully qualified class name
-
getFixedValue
public String getFixedValue()
The fixed value of this property, usually used to identify different lines in a single file- Returns:
- the value
-
getLength
public int getLength()
The length of the property- Returns:
- the length of the property
-
getPadder
public String getPadder()
The padder used to pad this property value. If missing (null
) the default padder will be used- Returns:
- a fully qualified class name or
null
if none specified
-
getRow
public int getRow()
The row this property is at. If this is the first property at row 2, every subsequent property must be at least at row 2. Consistency is up to the definition writer (developer)- Returns:
- the row
-
getType
public String getType()
The class name of the type of this property. Internally supported type names are not fully qualified (String, Integer...)- Returns:
- the class name of this property type
-
setConverter
public void setConverter(String converter)
-
setFixedValue
public void setFixedValue(String value)
-
setLength
public void setLength(int end)
-
setRow
public void setRow(int row)
-
isEnum
public boolean isEnum()
-
-