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 XPropertyValue
clone()
boolean
equals(Object o)
Object
get()
Boolean
getBoolean()
boolean
getDefaultBoolean()
boolean
getDefaultBoolean(boolean defaultValue)
double
getDefaultDouble()
double
getDefaultDouble(double defaultValue)
int
getDefaultInt()
int
getDefaultInt(int defaultValue)
com.alibaba.fastjson.JSONArray
getDefaultJSONArray()
com.alibaba.fastjson.JSONObject
getDefaultJSONObject()
String
getDefaultString()
Similar togetString()
, but returns an empty string if the value is null.String
getDefaultString(String defaultValue)
Similar togetString()
, but returns the default value if the value is null.String
getDefaultStringIfBlank(String defaultValue)
Similar togetString()
, but returns the default value if the value is null or blank.String
getDefaultStringIfEmpty(String defaultValue)
Similar togetString()
, but returns the default value if the value is null or empty.Double
getDouble()
Integer
getInt()
com.alibaba.fastjson.JSONArray
getJSONArray()
com.alibaba.fastjson.JSONObject
getJSONObject()
String
getPropertyName()
String
getString()
UUID
getUUID()
XPropertyEnum
getXPropertyEnum()
int
hashCode()
void
setValue(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()
-
-