public class PathConstraint extends AbstractConstraint implements Constraint
PathConstraintType
enum.Constructor and Description |
---|
PathConstraint(java.lang.String path,
PathConstraintType pathConstraintType)
Creates a new instance of PathConstraint with the given path, path constraint and an AND operator.
|
PathConstraint(java.lang.String path,
PathConstraintType pathConstraintType,
Operator operator)
Creates a new instance of PathConstraint.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ConstraintVisitor constraintVisitor)
Accepts a ConstraintVisitor so that it may travers a constraint hierarchy.
|
java.lang.String |
getPath()
Gets the path for this constraint.
|
PathConstraintType |
getPathConstraintType()
Gets the type of constraint being placed on the path.
|
void |
setPath(java.lang.String path)
Sets the path for this constraint.
|
getOperator, isNegated, negate, setOperator
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperator, isNegated, negate, setOperator
public PathConstraint(java.lang.String path, PathConstraintType pathConstraintType)
path
- String containing the path for this constraint.pathConstraintType
- PathConstraintType defining the type of constraint being based on the path.public PathConstraint(java.lang.String path, PathConstraintType pathConstraintType, Operator operator)
path
- String containing the path for this constraint.pathConstraintType
- PathConstraintType defining the type of constraint being based on the path.operator
- Operator defining how this constraint is joined with other constraints.public PathConstraintType getPathConstraintType()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- pathpublic void accept(ConstraintVisitor constraintVisitor)
accept
in interface Constraint
constraintVisitor
- ConstraintVisitor to accept."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"