Package io.vertx.ext.dropwizard
Class Match
- java.lang.Object
-
- io.vertx.ext.dropwizard.Match
-
public class Match extends Object
A match for a value.- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static MatchTypeDEFAULT_TYPEThe default value :MatchType.EQUALS
-
Constructor Summary
Constructors Constructor Description Match()Default constructorMatch(JsonObject json)Create an instance from aJsonObjectMatch(Match other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()MatchTypegetType()StringgetValue()MatchsetAlias(String alias)Set the alias the human readable name that will be used as a part of registry entry name when the value matches.MatchsetType(MatchType type)Set the type of matching to apply.MatchsetValue(String value)Set the matched value.JsonObjecttoJson()
-
-
-
Field Detail
-
DEFAULT_TYPE
public static final MatchType DEFAULT_TYPE
The default value :MatchType.EQUALS
-
-
Constructor Detail
-
Match
public Match()
Default constructor
-
Match
public Match(Match other)
Copy constructor- Parameters:
other- The otherMatchto copy when creating this
-
Match
public Match(JsonObject json)
Create an instance from aJsonObject- Parameters:
json- the JsonObject to create it from
-
-
Method Detail
-
getValue
public String getValue()
- Returns:
- the matched value
-
setValue
public Match setValue(String value)
Set the matched value.- Parameters:
value- the value to match- Returns:
- a reference to this, so the API can be used fluently
-
getType
public MatchType getType()
- Returns:
- the matcher type
-
setType
public Match setType(MatchType type)
Set the type of matching to apply.- Parameters:
type- the matcher type- Returns:
- a reference to this, so the API can be used fluently
-
getAlias
public String getAlias()
- Returns:
- the matcher alias
-
setAlias
public Match setAlias(String alias)
Set the alias the human readable name that will be used as a part of registry entry name when the value matches.- Parameters:
alias- the matcher alias- Returns:
- a reference to this, so the API can be used fluently
-
toJson
public JsonObject toJson()
-
-