public class PropertyConstraint extends Object
| Constructor and Description |
|---|
PropertyConstraint() |
PropertyConstraint(org.openrdf.model.Resource id,
org.openrdf.model.URI predicate) |
PropertyConstraint(org.openrdf.model.URI predicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllowedValue(org.openrdf.model.Value value) |
void |
addHasValue(org.openrdf.model.Value value) |
void |
addKnownValue(org.openrdf.model.Value value) |
PropertyConstraint |
clone() |
List<org.openrdf.model.Value> |
getAllowedValues()
Get read-only list of allowed-values for this property constraint.
|
org.openrdf.model.URI |
getDatatype() |
org.openrdf.model.URI |
getDimensionTerm() |
org.openrdf.model.URI |
getDirectValueType() |
String |
getDocumentation() |
Set<org.openrdf.model.Value> |
getHasValue() |
org.openrdf.model.Resource |
getId() |
List<org.openrdf.model.Value> |
getKnownValue() |
Integer |
getMaxCount() |
Double |
getMaxExclusive() |
Double |
getMaxInclusive() |
Integer |
getMaxLength() |
Integer |
getMinCount() |
Double |
getMinExclusive() |
Double |
getMinInclusive() |
Integer |
getMinLength() |
NodeKind |
getNodeKind() |
String |
getPattern() |
org.openrdf.model.URI |
getPredicate() |
Term |
getTerm()
Get the default JSON-LD term for the predicate
|
org.openrdf.model.Resource |
getValueClass() |
Shape |
getValueShape() |
org.openrdf.model.Resource |
getValueShapeId() |
boolean |
isTimeParam() |
boolean |
isUniqueCountKey() |
void |
setAllowedValue(List<org.openrdf.model.Value> list) |
void |
setDatatype(org.openrdf.model.URI datatype) |
void |
setDimensionTerm(org.openrdf.model.URI dimensionTerm) |
void |
setDirectValueType(org.openrdf.model.URI directType) |
void |
setDocumentation(String documentation) |
void |
setHasValue(Set<org.openrdf.model.Value> set) |
void |
setId(org.openrdf.model.Resource id) |
void |
setMaxCount(Integer maxCount) |
void |
setMaxExclusive(Double maxExclusive) |
void |
setMaxInclusive(Double maxInclusive) |
void |
setMaxLength(Integer maxLength) |
void |
setMinCount(Integer minCount) |
void |
setMinExclusive(Double minExclusive) |
void |
setMinInclusive(Double minInclusive) |
void |
setMinLength(Integer minLength) |
void |
setNodeKind(NodeKind nodeKind) |
void |
setPattern(String pattern) |
void |
setPredicate(org.openrdf.model.URI predicate) |
void |
setTerm(Term term)
Set the default JSON-LD term for the predicate
|
void |
setTimeParam(boolean timeParam) |
void |
setUniqueCountKey(boolean uniqueCountKey) |
void |
setValueClass(org.openrdf.model.Resource valueClass) |
void |
setValueShape(Shape valueShape) |
void |
setValueShapeId(org.openrdf.model.URI valueShape) |
void |
toJson(com.fasterxml.jackson.core.JsonGenerator json) |
String |
toString() |
public PropertyConstraint(org.openrdf.model.URI predicate)
public PropertyConstraint(org.openrdf.model.Resource id,
org.openrdf.model.URI predicate)
public PropertyConstraint()
public void setId(org.openrdf.model.Resource id)
public PropertyConstraint clone()
public org.openrdf.model.Resource getId()
public String getDocumentation()
public void setDocumentation(String documentation)
public Integer getMinLength()
public void setMinLength(Integer minLength)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public Double getMinExclusive()
public void setMinExclusive(Double minExclusive)
public Double getMaxExclusive()
public void setMaxExclusive(Double maxExclusive)
public Term getTerm()
public void setTerm(Term term)
term - The default JSON-LD term for the predicatepublic Double getMinInclusive()
public void setMinInclusive(Double minInclusive)
public Double getMaxInclusive()
public void setMaxInclusive(Double maxInclusive)
public org.openrdf.model.URI getPredicate()
public void setPredicate(org.openrdf.model.URI predicate)
public NodeKind getNodeKind()
public void setNodeKind(NodeKind nodeKind)
public void addAllowedValue(org.openrdf.model.Value value)
public void setAllowedValue(List<org.openrdf.model.Value> list)
public void addKnownValue(org.openrdf.model.Value value)
public List<org.openrdf.model.Value> getKnownValue()
public void addHasValue(org.openrdf.model.Value value)
public Set<org.openrdf.model.Value> getHasValue()
public void setHasValue(Set<org.openrdf.model.Value> set)
public List<org.openrdf.model.Value> getAllowedValues()
public Integer getMinCount()
public void setMinCount(Integer minCount)
public Integer getMaxCount()
public void setMaxCount(Integer maxCount)
public org.openrdf.model.URI getDatatype()
public void setDatatype(org.openrdf.model.URI datatype)
public org.openrdf.model.URI getDirectValueType()
public void setDirectValueType(org.openrdf.model.URI directType)
public org.openrdf.model.Resource getValueShapeId()
public void setValueShapeId(org.openrdf.model.URI valueShape)
public Shape getValueShape()
public void setValueShape(Shape valueShape)
public void toJson(com.fasterxml.jackson.core.JsonGenerator json)
throws IOException
IOExceptionpublic String getPattern()
public void setPattern(String pattern)
public org.openrdf.model.Resource getValueClass()
public void setValueClass(org.openrdf.model.Resource valueClass)
public boolean isUniqueCountKey()
public void setUniqueCountKey(boolean uniqueCountKey)
public org.openrdf.model.URI getDimensionTerm()
public void setDimensionTerm(org.openrdf.model.URI dimensionTerm)
public boolean isTimeParam()
public void setTimeParam(boolean timeParam)
Copyright © 2016. All rights reserved.