public class JSONPropertyInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAXTYPE_ALN |
static java.lang.String |
MAXTYPE_BIGINT |
static java.lang.String |
MAXTYPE_BLOB |
static java.lang.String |
MAXTYPE_DATE |
static java.lang.String |
MAXTYPE_DATETIME |
static java.lang.String |
MAXTYPE_DECIMAL |
static java.lang.String |
MAXTYPE_FLOAT |
static java.lang.String |
MAXTYPE_INTEGER |
static java.lang.String |
MAXTYPE_TIME |
static java.lang.String |
MAXTYPE_YORN |
static int |
TYPE_ALN |
static int |
TYPE_BIGINT |
static int |
TYPE_BLOB |
static int |
TYPE_BOOLEAN |
static int |
TYPE_DATETIME |
static int |
TYPE_DECIMAL |
static int |
TYPE_FLOAT |
static int |
TYPE_INT |
static int |
TYPE_LONG |
Constructor and Description |
---|
JSONPropertyInfo(java.lang.String name,
int type,
long suggestedLength,
java.lang.String title)
Constructor will be called on Resource generation
|
JSONPropertyInfo(java.lang.String name,
java.lang.String attributeName,
int type,
java.lang.Object defaultValue,
long suggestedLength,
java.lang.String title,
java.lang.String dateFormatType,
java.lang.String dateFormat)
Constructor will be called when processing of the resource
|
JSONPropertyInfo(java.lang.String attributeName,
java.lang.String propName,
java.lang.String dateFormatType,
java.lang.String dateFormat)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Get attribute name
|
java.lang.String |
getDateFormat()
Return date format for custom type.
|
java.lang.String |
getDateFormatType()
Return date format type.
|
java.lang.Object |
getDefaultValue()
Get default value
|
java.util.Map<java.lang.Object,java.lang.String> |
getDomainMap()
Get domain map
|
java.lang.String |
getDomainName()
Get domain name
|
java.lang.String |
getMaxType()
Get Maximo type
|
java.lang.String |
getMaxType(int type)
Get Maximo type
|
java.lang.String |
getName()
Get property name
|
int |
getScale()
Get scale
|
long |
getSuggestedLength() |
java.lang.String |
getTitle()
Get title
|
int |
getType()
Get attribute type
|
boolean |
isEditable()
Is property editable
|
boolean |
isRequired()
Is property required
|
void |
setAttributeName(java.lang.String attr)
Set attribute name
|
void |
setConstraints(PropertyConstraints pc)
Set constraints
|
java.lang.String |
setDateFormat(java.lang.String df)
Return date format for custom type.
|
java.lang.String |
setDateFormatType(java.lang.String dt)
Return date format type.
|
void |
setDefaultValue(java.lang.String t)
Set default value
|
void |
setDomainMap(java.util.Map<java.lang.Object,java.lang.String> domainMap)
Set map with domain values
|
void |
setDomainName(java.lang.String domainName)
Set domain name
|
void |
setEditable(boolean editable)
Set property editable
|
void |
setLength(int l)
Set attribute length
|
void |
setMaxType(java.lang.String t)
Set Maximo type
|
void |
setRequired(boolean required)
Set required indicator
|
void |
setScale(int t)
Set scale
|
void |
setTitle(java.lang.String t)
Set attribute title
|
public static final int TYPE_ALN
public static final int TYPE_DATETIME
public static final int TYPE_DECIMAL
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_BOOLEAN
public static final int TYPE_FLOAT
public static final int TYPE_BIGINT
public static final int TYPE_BLOB
public static final java.lang.String MAXTYPE_YORN
public static final java.lang.String MAXTYPE_BLOB
public static final java.lang.String MAXTYPE_DATETIME
public static final java.lang.String MAXTYPE_FLOAT
public static final java.lang.String MAXTYPE_DATE
public static final java.lang.String MAXTYPE_TIME
public static final java.lang.String MAXTYPE_ALN
public static final java.lang.String MAXTYPE_INTEGER
public static final java.lang.String MAXTYPE_BIGINT
public static final java.lang.String MAXTYPE_DECIMAL
public JSONPropertyInfo(java.lang.String name, int type, long suggestedLength, java.lang.String title)
name
- property nametype
- property typesuggestedLength
- suggested calculated Lengthtitle
- attribute titlepublic JSONPropertyInfo(java.lang.String name, java.lang.String attributeName, int type, java.lang.Object defaultValue, long suggestedLength, java.lang.String title, java.lang.String dateFormatType, java.lang.String dateFormat)
name
- property nameattributeName
- attribute nametype
- property typedefaultValue
- default valuesuggestedLength
- suggested calculated Lengthtitle
- attribute titlepublic JSONPropertyInfo(java.lang.String attributeName, java.lang.String propName, java.lang.String dateFormatType, java.lang.String dateFormat)
attributeName
- -
attribute namepropName
- -
property namedateFormatType
- -
date format typedateFormat
- -
date format for custom formatpublic void setEditable(boolean editable)
editable
- is editable indicatorpublic void setDomainName(java.lang.String domainName)
domainName
- domain namepublic java.lang.String getDomainName()
public void setRequired(boolean required)
required
- property requiredpublic boolean isEditable()
public boolean isRequired()
public long getSuggestedLength()
public void setLength(int l)
l
- lengthpublic java.lang.String getName()
public java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attr)
attr
- attribute namepublic int getType()
public int getScale()
public void setScale(int t)
t
- scalepublic java.lang.String getTitle()
public void setTitle(java.lang.String t)
t
- titlepublic void setDefaultValue(java.lang.String t)
t
- default valuepublic java.lang.Object getDefaultValue()
public java.lang.String getMaxType()
public java.lang.String getMaxType(int type)
type
- Maximo type as integerpublic void setMaxType(java.lang.String t)
t
- Maximo typepublic java.lang.String setDateFormatType(java.lang.String dt)
public java.lang.String setDateFormat(java.lang.String df)
public java.util.Map<java.lang.Object,java.lang.String> getDomainMap()
public java.lang.String getDateFormatType()
public java.lang.String getDateFormat()
public void setDomainMap(java.util.Map<java.lang.Object,java.lang.String> domainMap)
domainMap
- domain value mappublic void setConstraints(PropertyConstraints pc)
pc
- constraints property