public class DataLinks extends java.lang.Object implements Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
Axiom.ExpressionEntity
for DataLinks.
This class is a container for all the same data properties applied to an individualDescriptor
(with related values). In particular, the getExpression()
is a specific
property, while getValues()
represents a set of values linked with the
above property to a Axiom.Ground
, not specified here.
For this class, (getValues()
) returns elements of Literals
type.
Constructor and Description |
---|
DataLinks()
|
DataLinks(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
|
DataLinks(int initialCapacity)
Initialise this object to have
null getExpression() and set of literals getValues()
with specified size and load factory. |
DataLinks(int initialCapacity,
float loadFactor)
Initialise this object to have
null getExpression() and set of literals getValues()
with specified size and load factory. |
DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic)
Initialise this object to a specific
getExpression() and empty getValues() . |
DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic,
java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
Initialise this object to have a specific
getExpression() and a given set of literal (getValues() ). |
DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic,
int initialCapacity)
Initialise this object to have a specific
getExpression() and set of literals getValues()
with specified size and load factory. |
DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic,
int initialCapacity,
float loadFactor)
Initialise this object to have a specific
getExpression() and set of literals getValues()
with specified size and load factory. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
org.semanticweb.owlapi.model.OWLDataProperty |
getExpression()
Gets the expression.
|
DataLinks |
getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
Creates a new instance of
Axiom.ExpressionEntity that preserves
the expression but assigns new values to it. |
Literals |
getValues()
Gets the values (i.e., elements) in the
Axiom.EntitySet . |
int |
hashCode() |
void |
setSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
Set the semantic (i.e.: data property) for all the
getValues() |
java.lang.String |
toString() |
public DataLinks()
public DataLinks(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
c
- the initial set of literals to assign to this
Axiom.ExpressionEntity
.public DataLinks(int initialCapacity, float loadFactor)
null
getExpression()
and set of literals getValues()
with specified size and load factory.initialCapacity
- the initial size of the literals HashSet
.loadFactor
- the load factor of the literals HashSet
.public DataLinks(int initialCapacity)
null
getExpression()
and set of literals getValues()
with specified size and load factory.initialCapacity
- the initial size of the literals HashSet
.public DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic)
getExpression()
and empty getValues()
.semantic
- the initial semantic of this Axiom.ExpressionEntity
.public DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic, java.util.Collection<? extends org.semanticweb.owlapi.model.OWLLiteral> c)
getExpression()
and a given set of literal (getValues()
).semantic
- the initial semantic of this Axiom.ExpressionEntity
.c
- the initial set of literals to assign to this
Axiom.ExpressionEntity
.public DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic, int initialCapacity, float loadFactor)
getExpression()
and set of literals getValues()
with specified size and load factory.semantic
- the initial semantic of this Axiom.ExpressionEntity
.initialCapacity
- the initial size of the literals HashSet
.loadFactor
- the load factor of the literals HashSet
.public DataLinks(org.semanticweb.owlapi.model.OWLDataProperty semantic, int initialCapacity)
getExpression()
and set of literals getValues()
with specified size and load factory.semantic
- the initial semantic of this Axiom.ExpressionEntity
.initialCapacity
- the initial size of the literals HashSet
.public org.semanticweb.owlapi.model.OWLDataProperty getExpression()
Axiom.ExpressionEntity
getExpression
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
Axiom.EntitySet
.public void setSemantic(org.semanticweb.owlapi.model.OWLDataProperty semantic)
getValues()
semantic
- the semantic described by this
container.public Literals getValues()
Axiom.ExpressionEntity
Axiom.EntitySet
.getValues
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
Axiom.EntitySet
.public DataLinks getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
Axiom.ExpressionEntity
Axiom.ExpressionEntity
that preserves
the expression but assigns new values to it.
It is used during synchronisation by Axiom.ExpressionEntitySet.SynchronisationMultiIntent
.
getNewData
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLDataProperty,org.semanticweb.owlapi.model.OWLLiteral>
values
- the new values to be assigned to the expression.Axiom.ExpressionEntity
with the same expression but new values.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object