public static class OrgPolicyReport.Entry
extends java.lang.Object
implements java.io.Serializable
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.
More specifically, it contains a result type, a human readable
description and zero or more OrgPolicyReport.Ranges that tell which sections of
OrgPolicy this entry refers to. The latter could be used e.g. in graphical
support tools to mark concerned segments of the OrgPolicy with wavy red
underlines.
Please note, that the column indexes start at 0! So the first column has
index 0, the second 1 etc.. Also note that a range is the half-open
interval [begin,end). This is in accordance with
String.substring(int, int).
| Constructor and Description |
|---|
Entry(OrgPolicyReport.ResultType resultType,
java.lang.String description,
int beginColumn,
int endColumn)
Constructs an entry for the given values.
|
Entry(OrgPolicyReport.ResultType resultType,
java.lang.String description,
OrgPolicyReport.Range... ranges)
Creates an entry for the given values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the description of this entry.
|
OrgPolicyReport.Range[] |
getRanges()
Returns the policy ranges this entry relates to.
|
OrgPolicyReport.ResultType |
getResultType()
Returns the (result) type of this entry.
|
java.lang.String |
toString() |
public Entry(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 Entry(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 rangespublic OrgPolicyReport.ResultType getResultType()
public java.lang.String getDescription()
public OrgPolicyReport.Range[] getRanges()
null.public java.lang.String toString()
toString in class java.lang.Object