Class OrgPolicyReport.Entry
- java.lang.Object
-
- de.aristaflow.adept2.model.orgmodel.OrgPolicyReport.Entry
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- OrgPolicyReport
public static class OrgPolicyReport.Entry extends Object implements Serializable
AnOrgPolicyReport.Entry
is what the name implies: an entry in aOrgPolicyReport
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.Range
s 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)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Entry(OrgPolicyReport.ResultType resultType, String description, int beginColumn, int endColumn)
Constructs an entry for the given values.Entry(OrgPolicyReport.ResultType resultType, String description, OrgPolicyReport.Range... ranges)
Creates an entry for the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
toString()
-
-
-
Constructor Detail
-
Entry
public Entry(OrgPolicyReport.ResultType resultType, String description, int beginColumn, int endColumn)
Constructs an entry for the given values.- Parameters:
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 range
-
Entry
public Entry(OrgPolicyReport.ResultType resultType, String description, OrgPolicyReport.Range... ranges)
Creates an entry for the given values.- Parameters:
resultType
- the result type of the new entrydescription
- the description of the new entryranges
- the affected ranges
-
-
Method Detail
-
getResultType
public OrgPolicyReport.ResultType getResultType()
Returns the (result) type of this entry.- Returns:
- the (result) type of this entry
-
getDescription
public String getDescription()
Returns the description of this entry.- Returns:
- the description of this entry
-
getRanges
public OrgPolicyReport.Range[] getRanges()
Returns the policy ranges this entry relates to. The array may be empty but it's nevernull
.- Returns:
- the policy ranges this entry relates to
-
-