Class LogicalDefinitionAxiom
java.lang.Object
org.geneontology.obographs.core.model.axiom.AbstractLogicalDefinitionAxiom
org.geneontology.obographs.core.model.axiom.LogicalDefinitionAxiom
- All Implemented Interfaces:
Comparable<AbstractLogicalDefinitionAxiom>,Axiom
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class LogicalDefinitionAxiom
extends AbstractLogicalDefinitionAxiom
Corresponds to an axiom of the form C = X1 and ... and Xn,
Where X_i is either a named class or OWL Restriction
- Author:
- cjm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeLogicalDefinitionAxiom. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalDefinitionAxiomcopyOf(AbstractLogicalDefinitionAxiom instance) Creates an immutable copy of aAbstractLogicalDefinitionAxiomvalue.booleanThis instance is equal to all instances ofLogicalDefinitionAxiomthat have equal attribute values.getMeta()inthashCode()Computes a hash code from attributes:meta,definedClassId,genusIds,restrictions.toString()Prints the immutable valueLogicalDefinitionAxiomwith attribute values.final LogicalDefinitionAxiomwithDefinedClassId(String value) Copy the current immutable object by setting a value for thedefinedClassIdattribute.final LogicalDefinitionAxiomwithGenusIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofgenusIds.final LogicalDefinitionAxiomwithGenusIds(String... elements) Copy the current immutable object with elements that replace the content ofgenusIds.final LogicalDefinitionAxiomCopy the current immutable object by setting a value for themetaattribute.final LogicalDefinitionAxiomwithRestrictions(Iterable<? extends ExistentialRestrictionExpression> elements) Copy the current immutable object with elements that replace the content ofrestrictions.final LogicalDefinitionAxiomwithRestrictions(ExistentialRestrictionExpression... elements) Copy the current immutable object with elements that replace the content ofrestrictions.Methods inherited from class org.geneontology.obographs.core.model.axiom.AbstractLogicalDefinitionAxiom
compareTo
-
Method Details
-
getMeta
- Returns:
- the meta
-
getDefinedClassId
- Specified by:
getDefinedClassIdin classAbstractLogicalDefinitionAxiom- Returns:
- the representativeNodeId
-
getGenusIds
- Specified by:
getGenusIdsin classAbstractLogicalDefinitionAxiom- Returns:
- the nodeIds
-
getRestrictions
- Specified by:
getRestrictionsin classAbstractLogicalDefinitionAxiom- Returns:
- the restrictions
-
withMeta
Copy the current immutable object by setting a value for themetaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for meta (can benull)- Returns:
- A modified copy of the
thisobject
-
withDefinedClassId
Copy the current immutable object by setting a value for thedefinedClassIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for definedClassId- Returns:
- A modified copy of the
thisobject
-
withGenusIds
Copy the current immutable object with elements that replace the content ofgenusIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGenusIds
Copy the current immutable object with elements that replace the content ofgenusIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of genusIds elements to set- Returns:
- A modified copy of
thisobject
-
withRestrictions
Copy the current immutable object with elements that replace the content ofrestrictions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRestrictions
public final LogicalDefinitionAxiom withRestrictions(Iterable<? extends ExistentialRestrictionExpression> elements) Copy the current immutable object with elements that replace the content ofrestrictions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of restrictions elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofLogicalDefinitionAxiomthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:meta,definedClassId,genusIds,restrictions. -
toString
Prints the immutable valueLogicalDefinitionAxiomwith attribute values. -
copyOf
Creates an immutable copy of aAbstractLogicalDefinitionAxiomvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable LogicalDefinitionAxiom instance
-