public class OrgPolicyReport
extends java.lang.Object
implements java.io.Serializable
OrgPolicyReport is used to store entries for problems
and other issues encountered while parsing an OrgPolicy.| Modifier and Type | Class and Description |
|---|---|
static class |
OrgPolicyReport.Entry
An
OrgPolicyReport.Entry is what the name implies: an entry in a
OrgPolicyReport and contains data about one error, warning or other
information about the parsed OrgPolicy. |
static class |
OrgPolicyReport.Range
Represents a range within an OrgPolicy.
|
static class |
OrgPolicyReport.ResultType
The
ResultType is used for the overall result |
| Constructor and Description |
|---|
OrgPolicyReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(OrgPolicyReport.Entry entry)
Adds the given entry to this report's list of entries.
|
void |
addEntry(OrgPolicyReport.ResultType resultType,
java.lang.String description,
int beginColumn,
int endColumn)
Creates an entry for the given values and adds it to this report's list of entries.
|
void |
addEntry(OrgPolicyReport.ResultType resultType,
java.lang.String description,
OrgPolicyReport.Range... ranges)
Creates an entry for the given values and adds it to this report's list of entries.
|
OrgPolicyReport.Entry[] |
getEntries()
Returns an array containing all entries of this report.
|
OrgPolicyReport.Entry |
getEntryAt(int index)
Returns the entry at the given index.
|
int |
getEntryCount()
Returns the current number of entries in this report.
|
OrgPolicyReport.ResultType |
getOverallResult()
Returns the overall result type of this report.
|
public OrgPolicyReport.ResultType getOverallResult()
public int getEntryCount()
public OrgPolicyReport.Entry getEntryAt(int index)
index - the index of the entry to be returnedpublic OrgPolicyReport.Entry[] getEntries()
public void addEntry(OrgPolicyReport.Entry entry)
entry - the entry to be added to this report's list of entriespublic void addEntry(OrgPolicyReport.ResultType resultType, java.lang.String description, int beginColumn, int endColumn)
resultType - the result type of the new entrydescription - the description of the new entrybeginColumn - the begin column of the affected rangeendColumn - the end column of the affected rangepublic void addEntry(OrgPolicyReport.ResultType resultType, java.lang.String description, OrgPolicyReport.Range... ranges)
resultType - the result type of the new entrydescription - the description of the new entryranges - the affected ranges