Package de.xima.fc.form.common.models
Class XPropertyValue
- java.lang.Object
-
- de.xima.fc.form.common.models.XPropertyValue
-
- All Implemented Interfaces:
Serializable
public class XPropertyValue extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XPropertyValue(XPropertyEnum xProperty, Object value)XPropertyValue(String xPropertyName, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XPropertyValueclone()booleanequals(Object o)Objectget()BooleangetBoolean()booleangetDefaultBoolean()booleangetDefaultBoolean(boolean defaultValue)doublegetDefaultDouble()doublegetDefaultDouble(double defaultValue)intgetDefaultInt()intgetDefaultInt(int defaultValue)com.alibaba.fastjson.JSONArraygetDefaultJSONArray()com.alibaba.fastjson.JSONObjectgetDefaultJSONObject()StringgetDefaultString()Similar togetString(), but returns an empty string if the value is null.StringgetDefaultString(String defaultValue)Similar togetString(), but returns the default value if the value is null.StringgetDefaultStringIfBlank(String defaultValue)Similar togetString(), but returns the default value if the value is null or blank.StringgetDefaultStringIfEmpty(String defaultValue)Similar togetString(), but returns the default value if the value is null or empty.DoublegetDouble()IntegergetInt()com.alibaba.fastjson.JSONArraygetJSONArray()com.alibaba.fastjson.JSONObjectgetJSONObject()StringgetPropertyName()StringgetString()UUIDgetUUID()XPropertyEnumgetXPropertyEnum()inthashCode()voidsetValue(Object value)
-
-
-
Constructor Detail
-
XPropertyValue
public XPropertyValue(XPropertyEnum xProperty, Object value)
-
-
Method Detail
-
getXPropertyEnum
public XPropertyEnum getXPropertyEnum()
-
getPropertyName
public String getPropertyName()
-
get
public Object get()
-
getInt
public Integer getInt()
-
getDouble
public Double getDouble()
-
getString
public String getString()
-
getUUID
public UUID getUUID()
-
getBoolean
public Boolean getBoolean()
-
getJSONArray
public com.alibaba.fastjson.JSONArray getJSONArray()
-
getJSONObject
public com.alibaba.fastjson.JSONObject getJSONObject()
-
setValue
public void setValue(Object value)
-
clone
protected XPropertyValue clone()
-
getDefaultBoolean
public boolean getDefaultBoolean()
-
getDefaultBoolean
public boolean getDefaultBoolean(boolean defaultValue)
-
getDefaultString
public String getDefaultString()
Similar togetString(), but returns an empty string if the value is null.- Returns:
- The value as a string, or an empty string if the value is null.
-
getDefaultString
public String getDefaultString(String defaultValue)
Similar togetString(), but returns the default value if the value is null.- Parameters:
defaultValue- The default value to return if the value is null.- Returns:
- The value as a string, or the default value if the value is null.
-
getDefaultStringIfEmpty
public String getDefaultStringIfEmpty(String defaultValue)
Similar togetString(), but returns the default value if the value is null or empty.- Parameters:
defaultValue- The default value to return if the value is null or empty.- Returns:
- The value as a string, or the default value if the value is null or empty.
-
getDefaultStringIfBlank
public String getDefaultStringIfBlank(String defaultValue)
Similar togetString(), but returns the default value if the value is null or blank.- Parameters:
defaultValue- The default value to return if the value is null or blank.- Returns:
- The value as a string, or the default value if the value is null or blank.
-
getDefaultInt
public int getDefaultInt()
-
getDefaultInt
public int getDefaultInt(int defaultValue)
-
getDefaultDouble
public double getDefaultDouble()
-
getDefaultDouble
public double getDefaultDouble(double defaultValue)
-
getDefaultJSONArray
public com.alibaba.fastjson.JSONArray getDefaultJSONArray()
-
getDefaultJSONObject
public com.alibaba.fastjson.JSONObject getDefaultJSONObject()
-
-