public class Classification extends ParameterizedIterationOperation<FileModel> implements ClassificationAs, ClassificationEffort, ClassificationDescription, ClassificationLink, ClassificationTags, ClassificationWithIssueCategory, ClassificationQuickfix, ClassificationWithIssueDisplayMode
| Modifier and Type | Method and Description |
|---|---|
static ClassificationAs |
as(String classification)
Classify the current
FileModel as the given text. |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getClassificationPattern() |
org.ocpsoft.rewrite.param.RegexParameterizedPatternParser |
getDescriptionPattern() |
int |
getEffort() |
IssueCategory |
getIssueCategory()
Gets the configured
IssueCategory level. |
List<Link> |
getLinks() |
List<Quickfix> |
getQuickfixes() |
Set<String> |
getRequiredParameterNames() |
static ClassificationBuilderOf |
of(String variable)
Create a new classification for the given ref.
|
void |
performParameterized(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
FileModel payload) |
FileModel |
resolvePayload(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
WindupVertexFrame payload)
Set the payload to the fileModel of the given instance even though the variable is not directly referencing it.
|
protected void |
setClassificationText(String classification) |
void |
setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store) |
String |
toString() |
ClassificationLink |
with(Link link)
Add a
Link to this Classification. |
ClassificationDescription |
withDescription(String description)
Set the description of this
Classification. |
Classification |
withEffort(int effort)
Specify the effort that that represents the level of effort required to fix the object.
|
ClassificationWithIssueCategory |
withIssueCategory(IssueCategory issueCategory)
Sets the
IssueCategory to a non-default level. |
ClassificationWithIssueDisplayMode |
withIssueDisplayMode(IssueDisplayMode issueDisplayMode)
Sets the
IssueDisplayMode. |
ClassificationQuickfix |
withQuickfix(Quickfix fix)
Specify the quickfix describing the topic more precisely.
|
ClassificationTags |
withTags(Set<String> tags)
Add the given tags to this
Classification. |
perform, performcamelCase, checkVariableName, getVariableName, hasVariableNameSet, resolveVariable, setVariableNameperformpublic static ClassificationBuilderOf of(String variable)
public static ClassificationAs as(String classification)
FileModel as the given text.public FileModel resolvePayload(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, WindupVertexFrame payload)
resolvePayload in class AbstractIterationOperation<FileModel>public IssueCategory getIssueCategory()
IssueCategory level.public ClassificationWithIssueCategory withIssueCategory(IssueCategory issueCategory)
IssueCategory to a non-default level.withIssueCategory in interface ClassificationDescriptionpublic ClassificationWithIssueDisplayMode withIssueDisplayMode(IssueDisplayMode issueDisplayMode)
ClassificationWithIssueCategoryIssueDisplayMode.withIssueDisplayMode in interface ClassificationWithIssueCategorypublic ClassificationDescription withDescription(String description)
Classification.withDescription in interface ClassificationAsdescription - description of the classification. If you want to specify description. specify it in this step.Classification definitionpublic ClassificationLink with(Link link)
Link to this Classification.with in interface ClassificationAswith in interface ClassificationDescriptionwith in interface ClassificationLinkwith in interface ClassificationWithIssueCategorywith in interface ClassificationWithIssueDisplayModelink - the Link describing the topic more preciselyClassification definitionClassificationAs.with(Link)public ClassificationQuickfix withQuickfix(Quickfix fix)
ClassificationQuickfixwithQuickfix in interface ClassificationQuickfixClassification definition to specify effortpublic ClassificationTags withTags(Set<String> tags)
Classification.withTags in interface ClassificationLinkwithTags in interface ClassificationTagsClassification definition to specify effortpublic Classification withEffort(int effort)
ClassificationAswithEffort in interface ClassificationAswithEffort in interface ClassificationDescriptionwithEffort in interface ClassificationLinkwithEffort in interface ClassificationQuickfixwithEffort in interface ClassificationTagswithEffort in interface ClassificationWithIssueCategorywithEffort in interface ClassificationWithIssueDisplayModeeffort - Effort needed to be put. Will be used to count story points for the whole application.Classification definitionClassificationAs.withEffort(int)public void performParameterized(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, FileModel payload)
performParameterized in class ParameterizedIterationOperation<FileModel>protected void setClassificationText(String classification)
public String toString()
toString in class AbstractIterationOperation<FileModel>public org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getClassificationPattern()
public org.ocpsoft.rewrite.param.RegexParameterizedPatternParser getDescriptionPattern()
public int getEffort()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface org.ocpsoft.rewrite.param.Parameterizedpublic void setParameterStore(org.ocpsoft.rewrite.param.ParameterStore store)
setParameterStore in interface org.ocpsoft.rewrite.param.ParameterizedCopyright © 2018 JBoss by Red Hat. All rights reserved.