All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsd.DataMappingConfig.xsd Maven / Gradle / Ivy

Go to download

This powerful reporting library aims to simplify producing reports using iText. The most demanding and coding intensive tasks when producing reports with iText are how to get from data to report elements, how to style those blocks and how to evaluate (debug) the resulting report layout. Exactly those three tasks are simplified by this library: xml configuration and/or annotations to transform existing Java data objects into report block, provide styling information (css like, syntax independent) seperate from code, a firebug like debug mode to help evaluate your report.

There is a newer version: 9.2
Show newest version


   
      Schema for configuring how Java classes are to be translated into report parts.
   
   
   
      
         The configuration consists out of one or more data mapping elements, each
            describing the mapping to report parts for specific Java classes. At processing time this configuration is used to translate objects
            into report parts, get hold of the data in the objects and of the styling for the report part.
      
      
         
      
      
         
            
               When true xml configuration is supplemented by annotations on data classes. When container start, element start, element from data
               or container end information is not found in xml configuration it is searched in annotations.
            
         
      
   

   
      
         Each datamappingtype applies to Java classes determined by two attributes, a classname and wether or not the classname is a regular expression.
            Furthermore each datamappingtype holds information on how it is translated into a report part, its datatype and its style classes.
         
      
      
         
         
         
         
      
      
         
            the name (or regular expression) of the class to use this mapping for
         
      
      
         
            is the classname a regular expression
         
      
      
         
            for multiple mappings of the same class, ability to use exactly this mapping.
               When an id is present the mapping will only be used for data added specifying this id, when
               an id is not present the mapping will only be used for data added not specifying an id.
            
         
      
   

   
      
         base type for Java classes holding data, contains information on how to get the data from the Java class, the type of data and style information.
      
      
         
         
            
            
                  
                     method to be called to yield styleclasses
                  
               
         
      
      
         
            which method should be called to get the data from the data object
         
      
   
   
   
      
         information about a container to be started and wether or not to add data to it
      
      
         
            
               
               
                  
                     method to be called to yield the type of container, method must return a container name
                  
               
            
            
               
                  used when the container is a section, denotes the depth of the section
               
            
            
               
                  when true data will be added to this container (useful for example with phrase)
               
            
         
      
   
   
   
      
         possible containers
      
      
         
         
         
         
         
         
         
         
         
         
      
   
   
   
      
         information about an iText element to be added for a Java object
      
      
         
            
               
               
                  
                     method to be called to yield the type of element, method must return a full classname of an iText Element
                  
               
            
         
      
   
   
   
      
         a string which must be the Java classname of an iText Element
      
      
         
         
         
         
         
         
         
      
   
   
   
      
         information on how to turn a Java class into multiple elements of the same type
      
      
         
         
            
               name of the method to be called to yield a java.util.List of data objects
            
         
      
   
   
   
      
         configure the end of a container
      
      
         
      
      
         
            upto which depth should nested containers be ended? By default only the current container on the stack will
               be ended.
         
      
   
   
   
      
         configuration for types of data (numeric, text, date,...)
      
      
      
         optionaly provide your own format pattern (SimpleDateformat, NumberFormat)
      
      
      
   
   
   
      
         the root of the configuration
      
   






© 2015 - 2024 Weber Informatics LLC | Privacy Policy