Package jmri.beans

Class UnboundArbitraryBean

  • All Implemented Interfaces:
    BeanInterface

    public abstract class UnboundArbitraryBean
    extends UnboundBean
    Generic implementation of BeanInterface that supports arbitrary properties defined at runtime.

    NOTE This class does not implement PropertyChangeSupport. Subclass Bean if you need to support property change listeners.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getIndexedProperty​(java.lang.String key, int index)
      Get value of element at index of property array key.
      java.lang.Object getProperty​(java.lang.String key)
      Get the value of property key.
      java.util.Set<java.lang.String> getPropertyNames()
      Return a list of property names.
      boolean hasIndexedProperty​(java.lang.String key)
      Test that a property exists and is indexed.
      boolean hasProperty​(java.lang.String key)
      Test if a property exists.
      void setIndexedProperty​(java.lang.String key, int index, java.lang.Object value)
      Set element at index of property array key to value.
      void setProperty​(java.lang.String key, java.lang.Object value)
      Set property key to value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait