public class PropertyDecl extends PrefixedName implements TripleElement, SparqlElement
| Constructor and Description |
|---|
PropertyDecl(ISparqlRequestGroup request,
java.lang.String name)
Constructor.
|
PropertyDecl(PrefixedName name)
Constructor.
|
PropertyDecl(java.lang.String name)
Constructor.
|
PropertyDecl(java.lang.String prefix,
java.lang.String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyDecl |
asProperty()
Return this.
|
int |
compareTo(java.lang.Object o) |
java.lang.String |
getComment()
Return the comment.
|
java.lang.String |
getValueType()
Return the value type.
|
boolean |
hasComment()
Return true if there is a comment.
|
boolean |
hasValueType()
Return true if there is a value type.
|
boolean |
isProperty()
Return true.
|
void |
setComment(java.lang.String comment)
Set the comment.
|
void |
setValueType(java.lang.String valueType)
Set the value type.
|
asPrefixedName, equals, getName, getPrefix, getPrefixedName, hashCode, setName, setName, setName, setName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasIRI, asValue, asVariable, createIRI, createPropertyDecl, createValue, isIRI, isValue, isVariablepublic PropertyDecl(java.lang.String name)
name - the namepublic PropertyDecl(PrefixedName name)
name - the prefixed namepublic PropertyDecl(ISparqlRequestGroup request, java.lang.String name)
request - the parent requestname - the namepublic PropertyDecl(java.lang.String prefix,
java.lang.String name)
prefix - the prefixname - the namepublic 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 void setValueType(java.lang.String valueType)
valueType - the value typepublic java.lang.String getValueType()
public boolean hasValueType()
public boolean isProperty()
isProperty in interface TripleElementpublic PropertyDecl asProperty()
asProperty in interface TripleElementpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>compareTo in class PrefixedNameCopyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence