Class ObjectWriter

    • Constructor Detail

      • ObjectWriter

        public ObjectWriter​(ReportWriterContext reportWriter,
                            Object baseObject,
                            ObjectDescription objectDescription,
                            org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
                     throws ReportWriterException
        Creates a new writer.
        Parameters:
        reportWriter - the report writer.
        baseObject - the base object (null not permitted).
        objectDescription - the object description (null not permitted) for the to be written object. The base object will be used to fill the object description parameters.
        indentLevel - the current indention level.
        Throws:
        ReportWriterException - if no writer could be found for the given baseObject.
      • ObjectWriter

        public ObjectWriter​(ReportWriterContext reportWriter,
                            ObjectDescription objectDescription,
                            org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel)
        Creates a new object writer for the given object description.
        Parameters:
        reportWriter - the report writer used to write the generated description.
        objectDescription - the object description that should be written. It is assumed, that the object description is completly initialized for writing.
        indentLevel - the current code indention level
    • Method Detail

      • getObjectDescription

        public ObjectDescription getObjectDescription()
        Returns the object description.
        Returns:
        The object description.
      • getClassFactoryCollector

        public ClassFactoryCollector getClassFactoryCollector()
        Returns the object factory.
        Returns:
        The object factory.
      • getParameterDescription

        protected ObjectDescription getParameterDescription​(String name)
        Returns a description of a parameter.
        Parameters:
        name - the parameter name.
        Returns:
        The description.
      • isBasicObject

        protected static boolean isBasicObject​(List parameters,
                                               ObjectDescription od)
        Returns true if this is a basic object, and false otherwise.
        Parameters:
        parameters - the parameter.
        od - the descriptions.
        Returns:
        A boolean.
      • getParameterNames

        protected static ArrayList getParameterNames​(ObjectDescription d)
        Returns a list of parameter names.
        Parameters:
        d - the description.
        Returns:
        The list.