Class ElementStyleSheetObjectDescription

    • Constructor Detail

      • ElementStyleSheetObjectDescription

        public ElementStyleSheetObjectDescription()
    • Method Detail

      • configure

        public void configure​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends.

        The configuration contents may change during the reporting.

        Specified by:
        configure in interface ObjectDescription
        Parameters:
        config - the configuration, never null
      • init

        public void init​(org.pentaho.reporting.libraries.xmlns.parser.RootXmlReadHandler rootHandler,
                         ElementStyleSheet styleSheet)
      • getInstance

        public ObjectDescription getInstance()
        Returns a cloned instance of the object description. The contents of the parameter objects collection are cloned too, so that any already defined parameter value is copied to the new instance.

        Parameter definitions are not cloned, as they are considered read-only.

        Specified by:
        getInstance in interface ObjectDescription
        Returns:
        A cloned instance.
      • getParameter

        public Object getParameter​(String name)
        Returns the value of a parameter.
        Specified by:
        getParameter in interface ObjectDescription
        Parameters:
        name - the parameter name.
        Returns:
        The value.
      • getParameterDefinition

        public Class getParameterDefinition​(String name)
        Returns a parameter definition. If the parameter is invalid, this function returns null.
        Specified by:
        getParameterDefinition in interface ObjectDescription
        Parameters:
        name - the definition name.
        Returns:
        The parameter class or null, if the parameter is not defined.
      • getParameterNames

        public Iterator getParameterNames()
        Returns an iterator the provides access to the parameter names. This returns all _known_ parameter names, the object description may accept additional parameters.
        Specified by:
        getParameterNames in interface ObjectDescription
        Returns:
        The iterator.
      • getUnconfiguredInstance

        public ObjectDescription getUnconfiguredInstance()
        Returns a cloned instance of the object description. The contents of the parameter objects collection are cloned too, so that any already defined parameter value is copied to the new instance.

        Parameter definitions are not cloned, as they are considered read-only.

        The newly instantiated object description is not configured. If it need to be configured, then you have to call configure on it.

        Specified by:
        getUnconfiguredInstance in interface ObjectDescription
        Returns:
        A cloned instance.
      • setParameter

        public void setParameter​(String name,
                                 Object value)
        Sets the value of a parameter.
        Specified by:
        setParameter in interface ObjectDescription
        Parameters:
        name - the parameter name.
        value - the parameter value.