public class SchemaAttribute
extends java.lang.Object
| Constructor and Description |
|---|
SchemaAttribute(java.lang.String name,
java.lang.String type,
java.lang.String targetType,
java.lang.Integer len,
java.lang.Integer precision,
boolean required,
java.lang.String desc)
Represent an attribute in a schema
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Get the description of the attribute
|
java.lang.Integer |
getLength()
Get the length of the attribute
|
java.lang.String |
getName()
Get the name of the attribute
|
java.lang.Integer |
getPrecision()
Get the precision of the attribute
|
java.lang.String |
getTargetType()
Get the attribute's data type in the target system
|
java.lang.String |
getType()
Get the attribute's matching data type in entity manager
|
boolean |
isRequired()
Get whether the attribute is required
|
void |
setDescription(java.lang.String desc)
Set the description of the attribute
|
void |
setLength(int len)
Set the length of the attribute
|
void |
setName(java.lang.String name)
Set the name of the attribute
|
void |
setPrecision(int precision)
Set the precision of the attribute
|
void |
setRequired(boolean required)
Set whether the attribute is required
|
void |
setTargetType(java.lang.String targetType)
Set the attribute's data type in the target system
|
void |
setType(java.lang.String type)
Set the attribute's matching data type in entity manager
|
public SchemaAttribute(java.lang.String name,
java.lang.String type,
java.lang.String targetType,
java.lang.Integer len,
java.lang.Integer precision,
boolean required,
java.lang.String desc)
name - attribute nametype - matching data type in entity managertargetType - data type in the target systemlen - length, null if it is not applicableprecision - precision, null if it is not applicablerequired - if it is requireddesc - descriptionpublic java.lang.String getName()
public void setName(java.lang.String name)
name - attribute namepublic java.lang.String getType()
public void setType(java.lang.String type)
type - attribute's matching data type in entity managerpublic java.lang.String getTargetType()
public void setTargetType(java.lang.String targetType)
targetType - attribute's data type in the target systempublic java.lang.Integer getLength()
public void setLength(int len)
len - lengthpublic java.lang.Integer getPrecision()
public void setPrecision(int precision)
precision - precisionpublic boolean isRequired()
public void setRequired(boolean required)
required - if the attribute is requiredpublic java.lang.String getDescription()
public void setDescription(java.lang.String desc)
desc - description