public class PathConstraint extends AbstractConstraint implements Constraint
PathConstraintType
enum.Constructor and Description |
---|
PathConstraint(String path,
PathConstraintType pathConstraintType)
Creates a new instance of PathConstraint with the given path, path constraint and an AND operator.
|
PathConstraint(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.
|
String |
getPath()
Gets the path for this constraint.
|
PathConstraintType |
getPathConstraintType()
Gets the type of constraint being placed on the path.
|
void |
setPath(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(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(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 String getPath()
public void setPath(String path)
public void accept(ConstraintVisitor constraintVisitor)
accept
in interface Constraint
constraintVisitor
- ConstraintVisitor to accept."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"