Package hydra.owl.syntax
Class ObjectHasValue
- java.lang.Object
-
- hydra.owl.syntax.ObjectHasValue
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ObjectHasValue>
public class ObjectHasValue extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ObjectHasValue>
An OWL object property restriction requiring a specific individual value- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectHasValue.BuilderA fluent builder forObjectHasValue.
-
Field Summary
Fields Modifier and Type Field Description Individualindividualstatic NameINDIVIDUALName of thehydra.owl.syntax.ObjectHasValue.individualfield.ObjectPropertyExpressionpropertystatic NamePROPERTYName of thehydra.owl.syntax.ObjectHasValue.propertyfield.static NameTYPE_Name of thehydra.owl.syntax.ObjectHasValuetype.
-
Constructor Summary
Constructors Constructor Description ObjectHasValue(ObjectPropertyExpression property, Individual individual)Constructs an immutableObjectHasValue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectHasValue.Builderbuilder()Creates a new fluent builder forObjectHasValue.intcompareTo(ObjectHasValue other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()ObjectHasValuewithIndividual(Individual individual)Returns a copy of thisObjectHasValuewithindividualreplaced.ObjectHasValuewithProperty(ObjectPropertyExpression property)Returns a copy of thisObjectHasValuewithpropertyreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.owl.syntax.ObjectHasValuetype.
-
PROPERTY
public static final Name PROPERTY
Name of thehydra.owl.syntax.ObjectHasValue.propertyfield.
-
INDIVIDUAL
public static final Name INDIVIDUAL
Name of thehydra.owl.syntax.ObjectHasValue.individualfield.
-
property
public final ObjectPropertyExpression property
-
individual
public final Individual individual
-
-
Constructor Detail
-
ObjectHasValue
public ObjectHasValue(ObjectPropertyExpression property, Individual individual)
Constructs an immutableObjectHasValue.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ObjectHasValue other)
- Specified by:
compareToin interfacejava.lang.Comparable<ObjectHasValue>
-
withProperty
public ObjectHasValue withProperty(ObjectPropertyExpression property)
Returns a copy of thisObjectHasValuewithpropertyreplaced.
-
withIndividual
public ObjectHasValue withIndividual(Individual individual)
Returns a copy of thisObjectHasValuewithindividualreplaced.
-
builder
public static ObjectHasValue.Builder builder()
Creates a new fluent builder forObjectHasValue.
-
-