public final class ReportContextRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
DynReportContext |
getContextByName(java.lang.String name)
Use this method to get the report context if all you have is the name of the context.
|
static ReportContextRegistry |
getInstance() |
DynReportContext[] |
getValidatedContexts()
Returns all the contexts registered by validated modules.
|
DynReportContext |
register(int type,
java.lang.String name,
java.lang.String label)
Use this method to register a new report context into the system.
|
DynReportContext |
register(java.lang.String name,
java.lang.String label)
Use this method to register a new report context if you are an unvalidated open automation
developer.
|
public static ReportContextRegistry getInstance()
public DynReportContext register(int type, java.lang.String name, java.lang.String label) throws java.lang.Exception
type
- A unique integer to identify this report context.name
- A unique string to identify this report context.label
- A user friendly readable string to describe this context.java.lang.Exception
- Throws an exception if the type and name are not unique.public DynReportContext register(java.lang.String name, java.lang.String label) throws java.lang.Exception
name
- A unique string to identify this report context.label
- A user friendly readable string to describe this context.java.lang.Exception
- Throws exception if auto generation of value fails.public DynReportContext[] getValidatedContexts()
public DynReportContext getContextByName(java.lang.String name)
name
- The name of the context you registered with.