public final class TableResourceMap
extends java.lang.Object
writeContent(Writer, String)
method is used to write any remaining, unreferenced
resources into a lightly-formatted text stream.Modifier and Type | Field and Description |
---|---|
private java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> |
byTable
Map of qualified table names to sets of resource names within that table
|
Constructor and Description |
---|
TableResourceMap()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String table,
java.lang.String resource)
Add a single resource to the map.
|
boolean |
isEmpty()
Indicate whether the resource map is empty.
|
boolean |
remove(java.lang.String table,
java.lang.String resource)
Remove a single resource from the map.
|
void |
writeContent(java.io.Writer writer,
java.lang.String heading)
Write content for the remaining information, if any, in this resource map, once all
individual referenced resources have been removed.
|
private final java.util.SortedMap<java.lang.String,java.util.SortedSet<java.lang.String>> byTable
public void add(java.lang.String table, java.lang.String resource)
table
- Qualified, normalized table name.resource
- Resource name.public boolean remove(java.lang.String table, java.lang.String resource)
table
- Qualified, normalized table name.resource
- Resource namepublic boolean isEmpty()
true
if empty, else false
.public void writeContent(java.io.Writer writer, java.lang.String heading) throws java.io.IOException
writer
- Writer output stream.heading
- Heading for this resource map's section of the report.java.io.IOException
- if there is an error writing to the stream.