Package de.xima.fc.form.common.models
Class AXItemPropertiesData
java.lang.Object
de.xima.fc.form.common.models.AXItemPropertiesData
- All Implemented Interfaces:
IXItemPropertiesData
,Serializable
- Direct Known Subclasses:
XItem
,XItemRenderData
Stores all the properties (
XPropertyEnum
) of a form item and offers methods to access these properties.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Map<String,
XPropertyValue> protected com.alibaba.fastjson.JSONObject
-
Constructor Summary
ConstructorsConstructorDescriptionAXItemPropertiesData
(Map<String, XPropertyValue> propertyMap) Deprecated.AXItemPropertiesData
(Map<String, XPropertyValue> propertyMap, com.alibaba.fastjson.JSONObject version) Deprecated.This is an internal method meant only for sub classes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(XPropertyEnum xPropertyEnum) boolean
get
(XPropertyEnum xPropertyEnum) getAlias()
com.alibaba.fastjson.JSONArray
getId()
getName()
com.alibaba.fastjson.JSONArray
boolean
com.vdurmont.semver4j.Semver
com.alibaba.fastjson.JSONObject
getVrule()
boolean
boolean
boolean
boolean
boolean
void
put
(String property, XPropertyValue xProperty) stores a property in the propertyMapvoid
set
(XPropertyEnum xPropertyEnum, Object value) sets a property by XPropertyEnumvoid
sets a property by namevoid
setClassName
(String className) Deprecated.Set the class name when creating an instance, don't mutate existing instances.
-
Field Details
-
className
-
propertyMap
-
version
protected com.alibaba.fastjson.JSONObject version
-
-
Constructor Details
-
AXItemPropertiesData
@Deprecated public AXItemPropertiesData(Map<String, XPropertyValue> propertyMap, com.alibaba.fastjson.JSONObject version) Deprecated.This is an internal method meant only for sub classes. This will be changed toprotected
.Creates a new item properties wrapper for the given property map.- Parameters:
propertyMap
- map of propertiesversion
- Version data of the form to which this item belongs.
-
AXItemPropertiesData
Deprecated.Creates a new item properties wrapper for the given property map.- Parameters:
propertyMap
- Map of properties
-
-
Method Details
-
getPropertyMap
- Specified by:
getPropertyMap
in interfaceIXItemPropertiesData
-
getClassName
- Specified by:
getClassName
in interfaceIXItemPropertiesData
- Returns:
- the className of an item XTextField, XPage etc.
-
setClassName
Deprecated.Set the class name when creating an instance, don't mutate existing instances.- Parameters:
className
- of the renderer to be for an item XTextField, XPage etc.
-
put
stores a property in the propertyMap- Parameters:
property
- - name of the PropertyxProperty
- - value of the Property
-
get
- Specified by:
get
in interfaceIXItemPropertiesData
- Parameters:
xPropertyEnum
- - get a property by XPropertyEnum- Returns:
- - a new XProperty if not exist
-
get
- Specified by:
get
in interfaceIXItemPropertiesData
- Parameters:
property
- - get a property by name- Returns:
- - a new XProperty if not exist
-
set
sets a property by XPropertyEnum- Parameters:
xPropertyEnum
- the enum of the propertyvalue
- the value of the property
-
set
sets a property by name- Parameters:
xPropertyName
- the name of the propertyvalue
- the value of the property
-
getVersion
public com.alibaba.fastjson.JSONObject getVersion()- Returns:
- The version object of the form to which this item belongs.
-
getSemver
public com.vdurmont.semver4j.Semver getSemver()- Returns:
- The parsed sem-version of the form to which this item belongs. May not exist for old forms, in which case
0.0.0
is returned.
-
contains
- Specified by:
contains
in interfaceIXItemPropertiesData
- Parameters:
property
- the name of the property- Returns:
- true if property exist
-
contains
- Specified by:
contains
in interfaceIXItemPropertiesData
- Parameters:
xPropertyEnum
- the enum of the property- Returns:
- true if property exist
-
getId
- Specified by:
getId
in interfaceIXItemPropertiesData
- Returns:
- the string value for the property id
-
getName
- Specified by:
getName
in interfaceIXItemPropertiesData
- Returns:
- The
name
of this item.
-
getAlias
- Specified by:
getAlias
in interfaceIXItemPropertiesData
- Returns:
- The
alias
of this item.
-
getResolvedAlias
- Specified by:
getResolvedAlias
in interfaceIXItemPropertiesData
- Returns:
- The effective alias of this item, either the alias when not empty, or the name otherwise.
-
getAttributes
public com.alibaba.fastjson.JSONArray getAttributes()- Specified by:
getAttributes
in interfaceIXItemPropertiesData
- Returns:
- liste of attributes
-
getParentId
- Specified by:
getParentId
in interfaceIXItemPropertiesData
- Returns:
- id of parent element
-
getOptions
public com.alibaba.fastjson.JSONArray getOptions()- Specified by:
getOptions
in interfaceIXItemPropertiesData
- Returns:
- JSONArray of property Option
-
getRequiredgroup
- Specified by:
getRequiredgroup
in interfaceIXItemPropertiesData
-
getDatatype
- Specified by:
getDatatype
in interfaceIXItemPropertiesData
-
getMinvalue
- Specified by:
getMinvalue
in interfaceIXItemPropertiesData
-
getMaxvalue
- Specified by:
getMaxvalue
in interfaceIXItemPropertiesData
-
getVrule
- Specified by:
getVrule
in interfaceIXItemPropertiesData
-
getMaxfilesize
- Specified by:
getMaxfilesize
in interfaceIXItemPropertiesData
-
getFileextension
- Specified by:
getFileextension
in interfaceIXItemPropertiesData
-
getEquals
- Specified by:
getEquals
in interfaceIXItemPropertiesData
-
getRequiredif
- Specified by:
getRequiredif
in interfaceIXItemPropertiesData
-
getReadonlyif
- Specified by:
getReadonlyif
in interfaceIXItemPropertiesData
-
getHiddenif
- Specified by:
getHiddenif
in interfaceIXItemPropertiesData
-
getRequiredifcomp
- Specified by:
getRequiredifcomp
in interfaceIXItemPropertiesData
-
getRequiredifvalue
- Specified by:
getRequiredifvalue
in interfaceIXItemPropertiesData
-
getReadonlyifcomp
- Specified by:
getReadonlyifcomp
in interfaceIXItemPropertiesData
-
getReadonlyifvalue
- Specified by:
getReadonlyifvalue
in interfaceIXItemPropertiesData
-
getHiddenifcomp
- Specified by:
getHiddenifcomp
in interfaceIXItemPropertiesData
-
getHiddenifclear
- Specified by:
getHiddenifclear
in interfaceIXItemPropertiesData
-
getReadonlyifclear
- Specified by:
getReadonlyifclear
in interfaceIXItemPropertiesData
-
getHiddenifvalue
- Specified by:
getHiddenifvalue
in interfaceIXItemPropertiesData
-
getRequired
public boolean getRequired()- Specified by:
getRequired
in interfaceIXItemPropertiesData
- Returns:
- true required equals 1
-
isValidateOnServerSide
public boolean isValidateOnServerSide()- Specified by:
isValidateOnServerSide
in interfaceIXItemPropertiesData
- Returns:
true
ifXPropertyEnum.servervalidate
is set to1
.
-
isStatusdependent
public boolean isStatusdependent()- Specified by:
isStatusdependent
in interfaceIXItemPropertiesData
- Returns:
- the statusdependent
-
isUsergrouppendent
public boolean isUsergrouppendent()- Specified by:
isUsergrouppendent
in interfaceIXItemPropertiesData
- Returns:
- the usergrouppendent
-
isReadonlyStatusdependent
public boolean isReadonlyStatusdependent()- Specified by:
isReadonlyStatusdependent
in interfaceIXItemPropertiesData
- Returns:
- the readonly statusdependent
-
isReadonlyUsergrouppendant
public boolean isReadonlyUsergrouppendant()- Specified by:
isReadonlyUsergrouppendant
in interfaceIXItemPropertiesData
- Returns:
- the readonly usergrouppendant
-
AXItemPropertiesData(Map, JSONObject)