Class ListProperty

    • Constructor Detail

      • ListProperty

        public ListProperty()
        Creates and initializes a new ListProperty object. ID of the property will be empty string and value - null.
      • ListProperty

        public ListProperty​(java.lang.String id,
                            java.lang.Object[] value)
        Creates and initializes a new ListProperty object from specified parameters.
        Parameters:
        id - - id of the property.
        value - - value of the property.
    • Method Detail

      • setValue

        public void setValue​(@CheckForNull
                             java.lang.Object value)
        Sets a value of the property.
        Overrides:
        setValue in class Property
        Parameters:
        value - a value.
        Throws:
        java.lang.IllegalArgumentException - if specified value is not an array. null is legal value.
      • getValueStringRepresentation

        public java.lang.String getValueStringRepresentation()
        Description copied from class: Property
        Returns value's string representation.
        Overrides:
        getValueStringRepresentation in class Property
        Returns:
        string "null" if property does not have value; value. toString() if property has value.
      • getValue

        public java.lang.Object[] getValue()
        Description copied from class: Property
        Returns properties value.
        Overrides:
        getValue in class Property
        Returns:
        value of the property.
      • clone

        public ListProperty clone()
        Description copied from class: Property
        Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.
        Overrides:
        clone in class Property
        Returns:
        the cloned property.