Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.report
Class TreeReportWriter

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.TreeSet
              extended by oracle.apps.fnd.applseed.report.TreeReportWriter
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.NavigableSet, java.util.Set, java.util.SortedSet, TreeReportRenderer

public class TreeReportWriter
extends java.util.TreeSet
implements TreeReportRenderer

Class renders Report Items on the Log Page. The rendering is done by grouping the Report Items by context and hierarchy.

See Also:
Serialized Form

Constructor Summary
TreeReportWriter(java.util.Collection c)
          Constructor based on collection of Report Items.
TreeReportWriter(java.util.Comparator c)
          Constructor based on comparator.
TreeReportWriter(oracle.jbo.dt.objects.JboAppModule pam, java.lang.String ptitle)
          Constructor based on Application Module and title.
TreeReportWriter(java.util.SortedSet s)
          Constructor based on SortedSet.
 
Method Summary
 java.lang.StringBuilder buildMessage(java.lang.String pcontext, java.lang.String pname)
          Method builds String representation of the error items.
 void clear()
          
 void clear(java.lang.String context, java.lang.String name)
          Method clears Report Items from collection.
 void clear(java.lang.String context, java.lang.String name, ReportManager.ReportType type)
          Method clears Report Items from collection.
 java.util.Set getActionSet()
          Method returns set of actions in the Report Item collection.
 java.util.Map getReportTypes()
          Method returns map of report types.
 boolean isEmpty(java.lang.String context, java.lang.String name)
          Method tests if collection is empty for the context.
 void render(javax.swing.JTree tree)
          Constructor based on the tree.
 void setAppModule(oracle.jbo.dt.objects.JboAppModule pam)
          Constructor based on Application Module.
 void setTitle(java.lang.String ptitle)
          Method returns title.
 
Methods inherited from class java.util.TreeSet
add, addAll, ceiling, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

TreeReportWriter

public TreeReportWriter(oracle.jbo.dt.objects.JboAppModule pam,
                        java.lang.String ptitle)
Constructor based on Application Module and title.

Parameters:
pam - Application Module being reported on
ptitle - Title of the report

TreeReportWriter

public TreeReportWriter(java.util.Collection c)
Constructor based on collection of Report Items.

Parameters:
c - collection of Report Items

TreeReportWriter

public TreeReportWriter(java.util.Comparator c)
Constructor based on comparator.

Parameters:
c - comparator for the colleciton of Report Items

TreeReportWriter

public TreeReportWriter(java.util.SortedSet s)
Constructor based on SortedSet.

Parameters:
s - SortedSet of Report Items
Method Detail

setAppModule

public void setAppModule(oracle.jbo.dt.objects.JboAppModule pam)
Constructor based on Application Module.

Parameters:
pam - Application Module being reported on

setTitle

public void setTitle(java.lang.String ptitle)
Method returns title.

Parameters:
ptitle - returns title

render

public void render(javax.swing.JTree tree)
Constructor based on the tree.

Specified by:
render in interface TreeReportRenderer
Parameters:
tree - tree to be rendered.

clear

public void clear()

Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.Set
Overrides:
clear in class java.util.TreeSet

getActionSet

public java.util.Set getActionSet()
Method returns set of actions in the Report Item collection.

Returns:
Set of actions

getReportTypes

public java.util.Map getReportTypes()
Method returns map of report types. The map values contain the count of Report Items in each Map item.

Returns:
Map of report Types

buildMessage

public java.lang.StringBuilder buildMessage(java.lang.String pcontext,
                                            java.lang.String pname)
Method builds String representation of the error items.

Parameters:
pcontext - context of items
pname - name of the context
Returns:
returns String builder representing Report Items

clear

public void clear(java.lang.String context,
                  java.lang.String name,
                  ReportManager.ReportType type)
Method clears Report Items from collection.

Parameters:
context - Context of items cleared
name - Context name of items cleared
type - Report Type of items cleared

clear

public void clear(java.lang.String context,
                  java.lang.String name)
Method clears Report Items from collection.

Parameters:
context - Context of items cleared
name - Context name of items cleared

isEmpty

public boolean isEmpty(java.lang.String context,
                       java.lang.String name)
Method tests if collection is empty for the context.

Parameters:
context - Context of items
name - name of context
Returns:
return true if items exist

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.