Class RootPropertyResolver

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.Object> map  
      private boolean readOnly  
      • Fields inherited from class javax.el.ELResolver

        RESOLVABLE_AT_DESIGN_TIME, TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getCommonPropertyType​(javax.el.ELContext context, java.lang.Object base)  
      java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors​(javax.el.ELContext context, java.lang.Object base)  
      java.lang.Object getProperty​(java.lang.String property)
      Get property value
      java.lang.Class<?> getType​(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)  
      java.lang.Object getValue​(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)  
      java.lang.Object invoke​(javax.el.ELContext context, java.lang.Object base, java.lang.Object method, java.lang.Class<?>[] paramTypes, java.lang.Object[] params)  
      boolean isProperty​(java.lang.String property)
      Test property
      boolean isReadOnly​(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)  
      private boolean isResolvable​(java.lang.Object base)  
      java.lang.Iterable<java.lang.String> properties()
      Get properties
      private boolean resolve​(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)  
      void setProperty​(java.lang.String property, java.lang.Object value)
      Set property value
      void setValue​(javax.el.ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)  
      • Methods inherited from class javax.el.ELResolver

        convertToType
      • Methods inherited from class java.lang.Object

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

      • map

        private final java.util.Map<java.lang.String,​java.lang.Object> map
      • readOnly

        private final boolean readOnly
    • Constructor Detail

      • RootPropertyResolver

        public RootPropertyResolver()
        Create a read/write root property resolver
      • RootPropertyResolver

        public RootPropertyResolver​(boolean readOnly)
        Create a root property resolver
        Parameters:
        readOnly -
    • Method Detail

      • isResolvable

        private boolean isResolvable​(java.lang.Object base)
      • resolve

        private boolean resolve​(javax.el.ELContext context,
                                java.lang.Object base,
                                java.lang.Object property)
      • getCommonPropertyType

        public java.lang.Class<?> getCommonPropertyType​(javax.el.ELContext context,
                                                        java.lang.Object base)
        Specified by:
        getCommonPropertyType in class javax.el.ELResolver
      • getFeatureDescriptors

        public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors​(javax.el.ELContext context,
                                                                                      java.lang.Object base)
        Specified by:
        getFeatureDescriptors in class javax.el.ELResolver
      • getType

        public java.lang.Class<?> getType​(javax.el.ELContext context,
                                          java.lang.Object base,
                                          java.lang.Object property)
        Specified by:
        getType in class javax.el.ELResolver
      • getValue

        public java.lang.Object getValue​(javax.el.ELContext context,
                                         java.lang.Object base,
                                         java.lang.Object property)
        Specified by:
        getValue in class javax.el.ELResolver
      • isReadOnly

        public boolean isReadOnly​(javax.el.ELContext context,
                                  java.lang.Object base,
                                  java.lang.Object property)
        Specified by:
        isReadOnly in class javax.el.ELResolver
      • setValue

        public void setValue​(javax.el.ELContext context,
                             java.lang.Object base,
                             java.lang.Object property,
                             java.lang.Object value)
                      throws javax.el.PropertyNotWritableException
        Specified by:
        setValue in class javax.el.ELResolver
        Throws:
        javax.el.PropertyNotWritableException
      • invoke

        public java.lang.Object invoke​(javax.el.ELContext context,
                                       java.lang.Object base,
                                       java.lang.Object method,
                                       java.lang.Class<?>[] paramTypes,
                                       java.lang.Object[] params)
        Overrides:
        invoke in class javax.el.ELResolver
      • getProperty

        public java.lang.Object getProperty​(java.lang.String property)
        Get property value
        Parameters:
        property - property name
        Returns:
        value associated with the given property
      • setProperty

        public void setProperty​(java.lang.String property,
                                java.lang.Object value)
        Set property value
        Parameters:
        property - property name
        value - property value
      • isProperty

        public boolean isProperty​(java.lang.String property)
        Test property
        Parameters:
        property - property name
        Returns:
        true if the given property is associated with a value
      • properties

        public java.lang.Iterable<java.lang.String> properties()
        Get properties
        Returns:
        all property names (in no particular order)