public class UsageFinder extends Object
| Constructor and Description |
|---|
UsageFinder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReferenceClosure(AnnotatedBase comp)
Add usage counts for the reference closure of a definition.
|
void |
addReferenceClosure(List list)
Add usage counts for the reference closure of a supplied list of components.
|
void |
countSchemaTree(SchemaElement schema)
Add usage counts for a schema tree.
|
Set |
getNonSingletonSet()
Get the set of definitions referenced as optional or repeating.
|
ReferenceCountMap |
getUsageMap()
Get map of reference counts per component.
|
void |
reset()
Clear the accumulated usage counts.
|
void |
setNameRegister(NameRegister reg)
Set the register to be used for resolving name references.
|
public ReferenceCountMap getUsageMap()
public Set getNonSingletonSet()
public void countSchemaTree(SchemaElement schema)
schema - public void addReferenceClosure(AnnotatedBase comp)
comp - definition to be processedpublic void addReferenceClosure(List list)
list - starting schema componentspublic void setNameRegister(NameRegister reg)
countSchemaTree(SchemaElement), which always sets the register associated with the
supplied schema.reg - public void reset()
Copyright © 2005-2013 jibx.org. All Rights Reserved.