public class Match extends Object
Modifier and Type | Field and Description |
---|---|
static MatchType |
DEFAULT_TYPE
The default value :
MatchType.EQUALS |
Constructor and Description |
---|
Match()
Default constructor
|
Match(JsonObject json)
Create an instance from a
JsonObject |
Match(Match other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
MatchType |
getType() |
String |
getValue() |
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.
|
Match |
setType(MatchType type)
Set the type of matching to apply.
|
Match |
setValue(String value)
Set the matched value.
|
JsonObject |
toJson() |
public static final MatchType DEFAULT_TYPE
MatchType.EQUALS
public Match()
public Match(Match other)
other
- The other Match
to copy when creating thispublic Match(JsonObject json)
JsonObject
json
- the JsonObject to create it frompublic String getValue()
public Match setValue(String value)
value
- the value to matchpublic MatchType getType()
public Match setType(MatchType type)
type
- the matcher typepublic String getAlias()
public Match setAlias(String alias)
alias
- the matcher aliaspublic JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.