public class Property extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Property.DataTypeEnum
属性数据类型,枚举值大小写敏感;number格式为数字,范围±1.0 x 10^-28 to ±7.9228 x 10^28;sting为字符串;integer为整数;datetime为时间,格式为yyyyMMddTHHmmss;json为自定义json格式
|
static class |
Property.RequiredEnum
是否必填 0-非必填 1-必填
|
| Constructor and Description |
|---|
Property() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Property.DataTypeEnum |
getDataType()
属性数据类型,枚举值大小写敏感;number格式为数字,范围±1.0 x 10^-28 to ±7.9228 x 10^28;sting为字符串;integer为整数;datetime为时间,格式为yyyyMMddTHHmmss;json为自定义json格式
|
String |
getDescription()
属性描述,长度0-200
|
String |
getEnumList()
string的枚举值数组,使用逗号分隔
|
String |
getMax()
最大值,当data_type为integer或number时有效
|
Integer |
getMaxLength()
字符串最大长度,当data_type为string, datetime, json时有效
minimum: 1
maximum: 99999999
|
String |
getMin()
最小值,当data_type为integer或number时有效
|
Integer |
getPropertyId()
属性ID
minimum: 1
maximum: 999999999999999999
|
String |
getPropertyName()
属性名称,首位必须为字母,支持大小写字母,数字,中划线及下划线,长度2-50
|
Property.RequiredEnum |
getRequired()
是否必填 0-非必填 1-必填
minimum: 0
maximum: 10
|
String |
getStep()
步长,当data_type为integer或number时有效
|
String |
getUnit()
属性单位
|
int |
hashCode() |
void |
setDataType(Property.DataTypeEnum dataType) |
void |
setDescription(String description) |
void |
setEnumList(String enumList) |
void |
setMax(String max) |
void |
setMaxLength(Integer maxLength) |
void |
setMin(String min) |
void |
setPropertyId(Integer propertyId) |
void |
setPropertyName(String propertyName) |
void |
setRequired(Property.RequiredEnum required) |
void |
setStep(String step) |
void |
setUnit(String unit) |
String |
toString() |
Property |
withDataType(Property.DataTypeEnum dataType) |
Property |
withDescription(String description) |
Property |
withEnumList(String enumList) |
Property |
withMax(String max) |
Property |
withMaxLength(Integer maxLength) |
Property |
withMin(String min) |
Property |
withPropertyId(Integer propertyId) |
Property |
withPropertyName(String propertyName) |
Property |
withRequired(Property.RequiredEnum required) |
Property |
withStep(String step) |
Property |
withUnit(String unit) |
public Integer getPropertyId()
public void setPropertyId(Integer propertyId)
public String getPropertyName()
public void setPropertyName(String propertyName)
public String getDescription()
public void setDescription(String description)
public Property withDataType(Property.DataTypeEnum dataType)
public Property.DataTypeEnum getDataType()
public void setDataType(Property.DataTypeEnum dataType)
public Property withRequired(Property.RequiredEnum required)
public Property.RequiredEnum getRequired()
public void setRequired(Property.RequiredEnum required)
public String getMin()
public void setMin(String min)
public String getMax()
public void setMax(String max)
public String getStep()
public void setStep(String step)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public String getUnit()
public void setUnit(String unit)
public String getEnumList()
public void setEnumList(String enumList)
Copyright © 2022. All rights reserved.