Package hydra.owl.syntax
Class ObjectPropertyAssertion
- java.lang.Object
-
- hydra.owl.syntax.ObjectPropertyAssertion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ObjectPropertyAssertion>
public class ObjectPropertyAssertion extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ObjectPropertyAssertion>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Annotation>annotationsstatic NameANNOTATIONSName of thehydra.owl.syntax.ObjectPropertyAssertion.annotationsfield.ObjectPropertyExpressionpropertystatic NamePROPERTYName of thehydra.owl.syntax.ObjectPropertyAssertion.propertyfield.Individualsourcestatic NameSOURCEName of thehydra.owl.syntax.ObjectPropertyAssertion.sourcefield.Individualtargetstatic NameTARGETName of thehydra.owl.syntax.ObjectPropertyAssertion.targetfield.static NameTYPE_Name of thehydra.owl.syntax.ObjectPropertyAssertiontype.
-
Constructor Summary
Constructors Constructor Description ObjectPropertyAssertion(java.util.List<Annotation> annotations, ObjectPropertyExpression property, Individual source, Individual target)Constructs an immutableObjectPropertyAssertion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ObjectPropertyAssertion other)booleanequals(java.lang.Object other)inthashCode()ObjectPropertyAssertionwithAnnotations(java.util.List<Annotation> annotations)Returns a copy of thisObjectPropertyAssertionwithannotationsreplaced.ObjectPropertyAssertionwithProperty(ObjectPropertyExpression property)Returns a copy of thisObjectPropertyAssertionwithpropertyreplaced.ObjectPropertyAssertionwithSource(Individual source)Returns a copy of thisObjectPropertyAssertionwithsourcereplaced.ObjectPropertyAssertionwithTarget(Individual target)Returns a copy of thisObjectPropertyAssertionwithtargetreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.owl.syntax.ObjectPropertyAssertiontype.
-
ANNOTATIONS
public static final Name ANNOTATIONS
Name of thehydra.owl.syntax.ObjectPropertyAssertion.annotationsfield.
-
PROPERTY
public static final Name PROPERTY
Name of thehydra.owl.syntax.ObjectPropertyAssertion.propertyfield.
-
SOURCE
public static final Name SOURCE
Name of thehydra.owl.syntax.ObjectPropertyAssertion.sourcefield.
-
TARGET
public static final Name TARGET
Name of thehydra.owl.syntax.ObjectPropertyAssertion.targetfield.
-
annotations
public final java.util.List<Annotation> annotations
-
property
public final ObjectPropertyExpression property
-
source
public final Individual source
-
target
public final Individual target
-
-
Constructor Detail
-
ObjectPropertyAssertion
public ObjectPropertyAssertion(java.util.List<Annotation> annotations, ObjectPropertyExpression property, Individual source, Individual target)
Constructs an immutableObjectPropertyAssertion.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(ObjectPropertyAssertion other)
- Specified by:
compareToin interfacejava.lang.Comparable<ObjectPropertyAssertion>
-
withAnnotations
public ObjectPropertyAssertion withAnnotations(java.util.List<Annotation> annotations)
Returns a copy of thisObjectPropertyAssertionwithannotationsreplaced.
-
withProperty
public ObjectPropertyAssertion withProperty(ObjectPropertyExpression property)
Returns a copy of thisObjectPropertyAssertionwithpropertyreplaced.
-
withSource
public ObjectPropertyAssertion withSource(Individual source)
Returns a copy of thisObjectPropertyAssertionwithsourcereplaced.
-
withTarget
public ObjectPropertyAssertion withTarget(Individual target)
Returns a copy of thisObjectPropertyAssertionwithtargetreplaced.
-
-