public class Property extends PrefixedName implements SparqlElement
| Constructor and Description |
|---|
Property(java.lang.String name,
java.lang.Object value,
java.util.List<? extends java.lang.Object> values,
boolean optional) |
Property(VariableOrIRI var,
java.lang.Object value,
java.util.List<? extends java.lang.Object> values,
boolean optional) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComment()
Return the comment.
|
IRI |
getIRI()
Return the IRI associated with the property (or null if this is not a IRI).
|
java.lang.Object |
getValue() |
java.lang.String |
getValueAsString() |
java.util.List<? extends java.lang.Object> |
getValues()
Return the values of the property.
|
java.lang.Object |
getValueType() |
Variable |
getVariable()
Return the variable associated with the property (or null if this is not a variable).
|
VariableOrIRI |
getVariableOrIRI()
Return the variable or IRI associated with the property.
|
boolean |
hasComment()
Return true if there is a comment.
|
boolean |
hasName() |
boolean |
hasRefVariable() |
boolean |
hasValueType() |
boolean |
hasVariable() |
boolean |
isIRI() |
boolean |
isIRIType() |
boolean |
isLiteralValueProperty()
Return true if the property has one single value declaration.
|
boolean |
isOptional() |
boolean |
isQNameType() |
boolean |
isSingleValue()
Return true if the property has one single value declaration.
|
boolean |
isValuesDeclaration()
Return true if the property has multiple values declaration.
|
void |
setComment(java.lang.String comment)
Set the comment.
|
void |
setIsIRI(boolean isIRI) |
boolean |
setValueType(java.lang.Object valueType) |
asPrefixedName, compareTo, equals, getName, getPrefix, getPrefixedName, hashCode, setName, setName, setName, setName, toStringpublic Property(VariableOrIRI var, java.lang.Object value, java.util.List<? extends java.lang.Object> values, boolean optional)
public Property(java.lang.String name,
java.lang.Object value,
java.util.List<? extends java.lang.Object> values,
boolean optional)
public void setComment(java.lang.String comment)
setComment in interface SparqlElementcomment - the commentpublic java.lang.String getComment()
getComment in interface SparqlElementpublic boolean hasComment()
hasComment in interface SparqlElementpublic boolean hasVariable()
public boolean hasRefVariable()
public VariableOrIRI getVariableOrIRI()
public Variable getVariable()
public IRI getIRI()
public void setIsIRI(boolean isIRI)
public boolean isIRI()
public boolean setValueType(java.lang.Object valueType)
public boolean isQNameType()
public boolean isIRIType()
public java.lang.Object getValueType()
public boolean hasValueType()
public boolean hasName()
public boolean isValuesDeclaration()
public boolean isSingleValue()
public boolean isLiteralValueProperty()
isSingleValue().public boolean isOptional()
public java.lang.Object getValue()
public java.lang.String getValueAsString()
public java.util.List<? extends java.lang.Object> getValues()
Copyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence