Class XPropertyValue

    • Constructor Detail

      • XPropertyValue

        public XPropertyValue​(String xPropertyName,
                              Object value)
    • Method Detail

      • getPropertyName

        public String getPropertyName()
      • 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)
      • getDefaultBoolean

        public boolean getDefaultBoolean()
      • getDefaultBoolean

        public boolean getDefaultBoolean​(boolean defaultValue)
      • getDefaultString

        public String getDefaultString()
        Similar to getString(), 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 to getString(), 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 to getString(), 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 to getString(), 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object