public static class PlacementConstraint.TargetExpression extends Object implements PlacementConstraint.Visitable
Modifier and Type | Class and Description |
---|---|
static class |
PlacementConstraint.TargetExpression.TargetType
Enum specifying the type of the target expression.
|
Constructor and Description |
---|
TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType) |
TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType,
String targetKey,
Set<String> targetValues) |
TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType,
String targetKey,
String... targetValues) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(PlacementConstraint.Visitor<T> visitor)
Visitor pattern.
|
boolean |
equals(Object o) |
String |
getTargetKey()
Get the key of the target expression.
|
PlacementConstraint.TargetExpression.TargetType |
getTargetType()
Get the type of the target expression.
|
Set<String> |
getTargetValues()
Get the set of values of the target expression.
|
int |
hashCode() |
String |
toString() |
public TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType, String targetKey, Set<String> targetValues)
public TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType)
public TargetExpression(PlacementConstraint.TargetExpression.TargetType targetType, String targetKey, String... targetValues)
public PlacementConstraint.TargetExpression.TargetType getTargetType()
public String getTargetKey()
public Set<String> getTargetValues()
public <T> T accept(PlacementConstraint.Visitor<T> visitor)
PlacementConstraint.Visitable
accept
in interface PlacementConstraint.Visitable
T
- defines the type that the visitor will use and the return type
of the accept.visitor
- visitor to be usedCopyright © 2008–2021 Apache Software Foundation. All rights reserved.