Class DecorationContext

    • Field Detail

      • DEFAULT_CONTEXT

        public static final IDecorationContext DEFAULT_CONTEXT
        Constant that defines a default decoration context that has no context ids associated with it.
    • Constructor Detail

      • DecorationContext

        public DecorationContext()
        Create a decoration context.
    • Method Detail

      • getProperty

        public Object getProperty​(String property)
        Description copied from interface: IDecorationContext
        Get the value of the given property or null if the property does not exist in this context.
        Specified by:
        getProperty in interface IDecorationContext
        Parameters:
        property - the property
        Returns:
        the value of the given property or null
      • getProperties

        public String[] getProperties()
        Description copied from interface: IDecorationContext
        Return the properties that exist in this context (i.e. the set of properties that have values associated with them.
        Specified by:
        getProperties in interface IDecorationContext
        Returns:
        the properties that exist in this context
      • putProperty

        public void putProperty​(String property,
                                Object value)
        Set the given property to the given value. Setting the value of a property to null removes the property from the context.
        Parameters:
        property - the property
        value - the value of the property or null if the property is to be removed.