Class PropertyRegistry.PropertyDescriptor

  • Enclosing class:
    PropertyRegistry

    private class PropertyRegistry.PropertyDescriptor
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String name
      The name of the property.
      (package private) boolean readonly
      A flag indicating whether the property is read-only or read-write.
      (package private) PropertyValidator validator
      A validator to ensure the property's values are correct.
      (package private) java.lang.Object value
      The current value of the property.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyDescriptor​(java.lang.String name, PropertyValidator validator, java.lang.Object initialValue, boolean readonly)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue()  
      void setValue​(java.lang.Object newValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        java.lang.String name
        The name of the property.
      • value

        java.lang.Object value
        The current value of the property.
      • readonly

        boolean readonly
        A flag indicating whether the property is read-only or read-write.
      • validator

        PropertyValidator validator
        A validator to ensure the property's values are correct.
    • Constructor Detail

      • PropertyDescriptor

        PropertyDescriptor​(java.lang.String name,
                           PropertyValidator validator,
                           java.lang.Object initialValue,
                           boolean readonly)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
      • setValue

        public void setValue​(java.lang.Object newValue)