public abstract class VariableOrIRI extends java.lang.Object implements TripleElement, java.lang.Comparable<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
| Constructor and Description |
|---|
VariableOrIRI(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAsType(PrefixedName prefixedName)
Add a type for which this variable can be a representation.
|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,PrefixedName> |
fromTypes()
Return the types for which this variable is a representation.
|
PrefixedName |
getFirstType()
Return the first associated type for this variable.
|
java.lang.String |
getName() |
int |
hashCode() |
boolean |
hasType()
Return true if the variable has a type.
|
boolean |
isFromTypes()
Return true if this variable or IRI is a representation of a type.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitasIRI, asProperty, asValue, asVariable, createIRI, createPropertyDecl, createValue, isIRI, isProperty, isPropertyDecl, isValue, isVariablepublic java.lang.String getName()
public void addAsType(PrefixedName prefixedName)
?myVar rdf:type orig:Actor
prefixedName - the prefixed name for the typepublic boolean isFromTypes()
public java.util.Map<java.lang.String,PrefixedName> fromTypes()
?myVar rdf:type orig:Actor
public PrefixedName getFirstType()
isFromTypes() return false.public boolean hasType()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>Copyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence