public class OrConstraint extends Object implements Constraint, ShapeConsumer
| Constructor and Description |
|---|
OrConstraint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Vertex v)
Test whether a given vertex satisfies this constraint
|
OrConstraint |
add(Shape shape) |
Shape |
findShapeByTargetClass(org.openrdf.model.URI targetClass) |
Shape |
getDeclaringShape() |
List<Shape> |
getShapes() |
boolean |
hasPropertyConstraint(org.openrdf.model.URI predicate) |
void |
setDeclaringShape(Shape s) |
public List<Shape> getShapes()
getShapes in interface Constraintpublic OrConstraint add(Shape shape)
add in interface ShapeConsumerpublic boolean accept(Vertex v)
Constraintaccept in interface Constraintv - The vertex to be testedpublic boolean hasPropertyConstraint(org.openrdf.model.URI predicate)
hasPropertyConstraint in interface Constraintpublic Shape findShapeByTargetClass(org.openrdf.model.URI targetClass)
findShapeByTargetClass in interface Constraintpublic Shape getDeclaringShape()
getDeclaringShape in interface Constraintpublic void setDeclaringShape(Shape s)
Copyright © 2019. All rights reserved.