Package jadex.commons

Class SimplePropertyObject

    • Field Detail

      • properties

        protected java.util.Map properties
        The properties
    • Constructor Detail

      • SimplePropertyObject

        public SimplePropertyObject()
        Create a new property object.
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Returns a property.
        Specified by:
        getProperty in interface IPropertyObject
        Parameters:
        name - name of the property
        Returns:
        the property
      • getPropertyNames

        public java.util.Set getPropertyNames()
        Returns all of the properties.
        Specified by:
        getPropertyNames in interface IPropertyObject
        Returns:
        the properties
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
        Sets a property
        Specified by:
        setProperty in interface IPropertyObject
        Parameters:
        name - name of the property
        value - value of the property
      • hasProperty

        public boolean hasProperty​(java.lang.String name)
        Description copied from interface: IPropertyObject
        Tests if the given property name exists If an property is null it exists
        Specified by:
        hasProperty in interface IPropertyObject
        Parameters:
        name - the name of the property to test
        Returns:
        true if and only if the property exists
      • getProperties

        public java.util.Map getProperties()
        Get the properties (bean accessor).
      • setProperties

        public void setProperties​(java.util.Map properties)
        Set the properties (bean accessor).
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Add a PropertyChangeListener to the listener list. The listener is registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be added.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
        Parameters:
        listener - The PropertyChangeListener to be removed.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object