Package org.apache.ofbiz.datafile
Class ModelField
java.lang.Object
org.apache.ofbiz.datafile.ModelField
- All Implemented Interfaces:
Serializable
ModelField
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets default value.Gets format.int
Gets length.getName()
Gets name.int
Gets position.Gets ref field.getType()
Gets type.boolean
Is expression boolean.boolean
Is ignored boolean.void
setDefaultValue
(Object defaultValue) Sets default value.void
setDescription
(String description) Sets description.void
setExpression
(boolean expression) Sets expression.void
Sets format.void
setIgnored
(boolean ignored) Sets ignored.void
setLength
(int length) Sets length.void
Sets name.void
setPk
(boolean pk) Sets pk.void
setPosition
(int position) Sets position.void
setRefField
(String refField) Sets ref field.void
Sets type.void
setValidExp
(String validExp) Sets valid exp.
-
Constructor Details
-
ModelField
public ModelField()
-
-
Method Details
-
getName
Gets name.- Returns:
- the name
-
setName
Sets name.- Parameters:
name
- the name
-
getPosition
public int getPosition()Gets position.- Returns:
- the position
-
getLength
public int getLength()Gets length.- Returns:
- the length
-
setPosition
public void setPosition(int position) Sets position.- Parameters:
position
- the position
-
setLength
public void setLength(int length) Sets length.- Parameters:
length
- the length
-
setType
Sets type.- Parameters:
type
- the type
-
getType
Gets type.- Returns:
- the type
-
setFormat
Sets format.- Parameters:
format
- the format
-
getFormat
Gets format.- Returns:
- the format
-
setValidExp
Sets valid exp.- Parameters:
validExp
- the valid exp
-
setDescription
Sets description.- Parameters:
description
- the description
-
setDefaultValue
Sets default value.- Parameters:
defaultValue
- the default value
-
setPk
public void setPk(boolean pk) Sets pk.- Parameters:
pk
- the pk
-
setIgnored
public void setIgnored(boolean ignored) Sets ignored.- Parameters:
ignored
- the ignored
-
setExpression
public void setExpression(boolean expression) Sets expression.- Parameters:
expression
- the expression
-
setRefField
Sets ref field.- Parameters:
refField
- the ref field
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
isExpression
public boolean isExpression()Is expression boolean.- Returns:
- the boolean
-
getRefField
Gets ref field.- Returns:
- the ref field
-
isIgnored
public boolean isIgnored()Is ignored boolean.- Returns:
- the boolean
-