Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix QuickfixModel - missing @TypeValue (#1015)
- Loading branch information
1 parent
5d0b208
commit 20689da
Showing
2 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
package org.jboss.windup.reporting.model; | ||
|
||
import com.tinkerpop.frames.Property; | ||
import com.tinkerpop.frames.modules.typedgraph.TypeValue; | ||
import org.jboss.windup.graph.model.WindupVertexFrame; | ||
import static org.jboss.windup.reporting.model.QuickfixModel.TYPE_VALUE; | ||
|
||
/** | ||
* Represents a {@link QuickfixModel} within the graph. | ||
* | ||
* @author <a href="mailto:hotmana76@gmail.com">Marek Novotny</a> | ||
*/ | ||
@TypeValue(TYPE_VALUE) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
public interface QuickfixModel extends WindupVertexFrame | ||
{ | ||
String TYPE = "QuickfixModel"; | ||
String PROPERTY_TYPE = "type"; | ||
String PROPERTY_NAME = "name"; | ||
String PROPERTY_SEARCH_STRING = "search"; | ||
String PROPERTY_REPLACEMENT_STRING = "replacement"; | ||
String PROPERTY_NEWLINE_STRING = "newline"; | ||
String TYPE_VALUE = "Quickfix"; | ||
String PROPERTY_TYPE = TYPE_VALUE + "-type"; | ||
String PROPERTY_DESCRIPTION = TYPE_VALUE + "-description"; | ||
String PROPERTY_SEARCH_STRING = TYPE_VALUE + "-search"; | ||
String PROPERTY_REPLACEMENT_STRING = TYPE_VALUE + "-replacement"; | ||
String PROPERTY_INSERTED_LINE = TYPE_VALUE + "-insertedLine"; | ||
|
||
/** | ||
* Contains the Quickfix type {@link QuickfixType} | ||
*/ | ||
@Property(TYPE) | ||
@Property(PROPERTY_TYPE) | ||
void setQuickfixType(QuickfixType type); | ||
|
||
/** | ||
* Contains the Quickfix type {@link QuickfixType} | ||
*/ | ||
@Property(TYPE) | ||
@Property(PROPERTY_TYPE) | ||
QuickfixType getQuickfixType(); | ||
|
||
/** | ||
* Contains a human readable description of the quick fix. | ||
*/ | ||
@Property(PROPERTY_NAME) | ||
@Property(PROPERTY_DESCRIPTION) | ||
This comment has been minimized.
Sorry, something went wrong.
mareknovotny
Contributor
|
||
void setName(String name); | ||
|
||
/** | ||
* Contains a human readable description of the quick fix. | ||
*/ | ||
@Property(PROPERTY_NAME) | ||
@Property(PROPERTY_DESCRIPTION) | ||
String getName(); | ||
|
||
/** | ||
|
@@ -68,12 +71,12 @@ public interface QuickfixModel extends WindupVertexFrame | |
/** | ||
* Contains the new line to be inserted (if this is a line insertion). | ||
*/ | ||
@Property(PROPERTY_NEWLINE_STRING) | ||
@Property(PROPERTY_INSERTED_LINE) | ||
void setNewline(String newlineStr); | ||
|
||
/** | ||
* Contains the new line to be inserted (if this is a line insertion). | ||
*/ | ||
@Property(PROPERTY_NEWLINE_STRING) | ||
@Property(PROPERTY_INSERTED_LINE) | ||
This comment has been minimized.
Sorry, something went wrong.
mareknovotny
Contributor
|
||
String getNewline(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OndraZizka good catch!