@XmlSchema(prefix="cognos", namespace="http://developer.cognos.com/schemas/xmldata/1/")
See: Description
Class | Description |
---|---|
Column |
Represents a meta-data column in a Cognos dataset.
|
DataSet |
Represents a Cognos dataset.
|
DataSet.Row |
Represents a row of data.
|
Cognos Data Transfer Objects
The DataSet
class is a DTO used to convert POJO models directly to Cognos-XML.
Because of the nature of the Cognos XML syntax, only 2-dimensional POJO data structures can be serialized to Cognos-XML.
For example...
Collection<Bean>
Collection<Map>
MyBean[]
HashMap[]
The following example shows how to generate Cognos-XML from a POJO.
The example uses the AddressBook sample POJO.
It should be noted that since the AddressBook
class is a subclass of LinkedList
, it fulfills
the requirement of being a tabular data structure.
When run, this code produces the following XML...
The following shows examples of what this data structure looks like when serialized to other formats:
The DataSet
class can be reconstructed from Cognos/XML using one of the standard XML parsers.
Copyright © 2018 Apache. All rights reserved.