Package cdc.issues.rules
Class RuleDescription
- java.lang.Object
-
- cdc.issues.StructuredDescription
-
- cdc.issues.rules.RuleDescription
-
public class RuleDescription extends StructuredDescription
Specialization ofStructuredDescriptionthat can be used to describe aRule.It supports the following sections:
- Remarks that can be used to add remarks.
- Sources that can be used to refer to related sources.
- Applies to that can be used to designate things to which the rule can be applied.
- Related to that can be used to create link with other rules.
- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuleDescription.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringAstatic StringALLstatic StringANstatic StringANYstatic StringSECTION_APPLIES_TOstatic StringSECTION_RELATED_TOstatic StringSECTION_REMARKSstatic StringSECTION_SOURCESstatic StringSOMEstatic StringTHE
-
Constructor Summary
Constructors Modifier Constructor Description protectedRuleDescription(RuleDescription.Builder builder)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuleDescription.Builderbuilder()static Stringformat(String format, Object... args)static Stringwrap(String item)static Stringwrap(String article, boolean capital, String item)-
Methods inherited from class cdc.issues.StructuredDescription
getHeader, getSectionContent, getSectionItems, getSections, getText, hasSection, toString
-
-
-
-
Field Detail
-
SECTION_APPLIES_TO
public static final String SECTION_APPLIES_TO
- See Also:
- Constant Field Values
-
SECTION_REMARKS
public static final String SECTION_REMARKS
- See Also:
- Constant Field Values
-
SECTION_RELATED_TO
public static final String SECTION_RELATED_TO
- See Also:
- Constant Field Values
-
SECTION_SOURCES
public static final String SECTION_SOURCES
- See Also:
- Constant Field Values
-
A
public static final String A
- See Also:
- Constant Field Values
-
AN
public static final String AN
- See Also:
- Constant Field Values
-
ANY
public static final String ANY
- See Also:
- Constant Field Values
-
SOME
public static final String SOME
- See Also:
- Constant Field Values
-
THE
public static final String THE
- See Also:
- Constant Field Values
-
ALL
public static final String ALL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RuleDescription
protected RuleDescription(RuleDescription.Builder builder)
-
-