Class WebBeanProperty

    • Field Detail

      • ATT_TYPE

        public static final java.lang.String ATT_TYPE
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_FEATURE_ID

        public static final java.lang.String ATT_FEATURE_ID
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_COMPARE

        public static final java.lang.String ATT_COMPARE
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_SOURCE

        public static final java.lang.String ATT_SOURCE
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_VALUE

        public static final java.lang.String ATT_VALUE
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
      • ATT_NAME

        public static final java.lang.String ATT_NAME
        Since:
        MicroStrategy Web 9.0.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebBeanProperty

        public WebBeanProperty()
        Class constructor. Initializes a new -empty- instance of the WebBeanProperty class.
      • WebBeanProperty

        public WebBeanProperty​(java.lang.String name,
                               int source,
                               java.lang.String value)
        Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters
        Parameters:
        name - String name of the WebBeanProperty.
        source - int source of the WebBeanProperty.
        value - String value of the WebBeanProperty.
      • WebBeanProperty

        public WebBeanProperty​(java.lang.String name,
                               java.lang.String source,
                               java.lang.String value)
        Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters
        Parameters:
        name - String name of the WebBeanProperty.
        source - String source of the WebBeanProperty.
        value - String value of the WebBeanProperty.
      • WebBeanProperty

        public WebBeanProperty​(org.w3c.dom.Node root)
        Class constructor. Initializes a WebBeanProperty instance based on the information included on the XML Node
        Parameters:
        root - Node instance representing the web bean list information.
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod​(java.lang.Class target)
        Returns the method that should get invoked to apply this property to an instance of an object of class target
        Parameters:
        target - the class which is target of this property
        Returns:
        the method that should get invoked
      • getArguments

        public java.lang.Object[] getArguments​(AppContext appContext)
        Returns an array of Object with all the arguments this property needs to set in order to invoke the object method to set the property.
        Parameters:
        appContext - The application context to retrieve the context value of the property
        Returns:
        an array of Object with all the arguments this property needs
      • getArguments

        public java.lang.Object[] getArguments​(AppContext appContext,
                                               java.lang.Class target,
                                               java.lang.Object objectInstance)
      • getContextValue

        public java.lang.Object getContextValue​(AppContext appContext)
        Returns an object with the value that this property should receive at runtime. The value depends on the source of the property:
      • If the source is enumeration, it will try to retrieve the value of the field in that enumeration.
      • If the source is the request, it will try to retrieve the value from the request keys of the appContext object.
      • If the source is the preferences, it will look for a preference with the given name in the preferences object of the appContext and return the value of that preference
      • If the value is an application object, it will return that object from the appContext
      • In every other case, it just return the value of the property.
Parameters:
appContext - the AppContext object from where to retrieve the property value.
Returns:
an object with the value that this property should receive at runtime.