Class JRBaseGenericPrintElement

    • Method Detail

      • setGenericType

        public void setGenericType​(JRGenericElementType genericType)
        Sets the type of this element.
        Parameters:
        genericType - the type of the element
        See Also:
        getGenericType()
      • getParameterNames

        public java.util.Set<java.lang.String> getParameterNames()
        Description copied from interface: JRGenericPrintElement
        Returns the set of parameter names for this element.
        Specified by:
        getParameterNames in interface JRGenericPrintElement
        Returns:
        the set of parameter names (as Strings).
      • getParameterValue

        public java.lang.Object getParameterValue​(java.lang.String name)
        Description copied from interface: JRGenericPrintElement
        Returns the value of a parameter.
        Specified by:
        getParameterValue in interface JRGenericPrintElement
        Parameters:
        name - the parameter name
        Returns:
        the parameter value, or null if a parameter by the specified name does not exist.
      • hasParameter

        public boolean hasParameter​(java.lang.String name)
        Description copied from interface: JRGenericPrintElement
        Determines whether the element includes a parameter having a given name.
        Specified by:
        hasParameter in interface JRGenericPrintElement
        Parameters:
        name - the parameter name
        Returns:
        whether a parameter having the specified name exists in the element
      • setParameterValue

        public void setParameterValue​(java.lang.String name,
                                      java.lang.Object value)
        Description copied from interface: JRGenericPrintElement
        Sets a parameter value.
        Specified by:
        setParameterValue in interface JRGenericPrintElement
        Parameters:
        name - the parameter name
        value - the parameter value
      • accept

        public <T> void accept​(PrintElementVisitor<T> visitor,
                               T arg)
        Description copied from interface: JRPrintElement
        Accepts a print element visitor.

        The element calls the method that corresponds to the element type on the visitor.

        Specified by:
        accept in interface JRPrintElement
        Overrides:
        accept in class JRBasePrintElement
        Type Parameters:
        T - the type of the argument passed to the visit operation
        Parameters:
        visitor - the visitor objects
        arg - the argument passed to the visit operation