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 @CheckReturnValue 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 Classes Modifier and Type Class Description static classLogicalDefinitionAxiom.BuilderBuilds instances of typeLogicalDefinitionAxiom.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogicalDefinitionAxiomcopyOf(AbstractLogicalDefinitionAxiom instance)Creates an immutable copy of aAbstractLogicalDefinitionAxiomvalue.booleanequals(Object another)This instance is equal to all instances ofLogicalDefinitionAxiomthat have equal attribute values.StringgetDefinedClassId()com.google.common.collect.ImmutableList<String>getGenusIds()MetagetMeta()com.google.common.collect.ImmutableList<ExistentialRestrictionExpression>getRestrictions()inthashCode()Computes a hash code from attributes:meta,definedClassId,genusIds,restrictions.StringtoString()Prints the immutable valueLogicalDefinitionAxiomwith attribute values.LogicalDefinitionAxiomwithDefinedClassId(String value)Copy the current immutable object by setting a value for thedefinedClassIdattribute.LogicalDefinitionAxiomwithGenusIds(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofgenusIds.LogicalDefinitionAxiomwithGenusIds(String... elements)Copy the current immutable object with elements that replace the content ofgenusIds.LogicalDefinitionAxiomwithMeta(Meta value)Copy the current immutable object by setting a value for themetaattribute.LogicalDefinitionAxiomwithRestrictions(Iterable<? extends ExistentialRestrictionExpression> elements)Copy the current immutable object with elements that replace the content ofrestrictions.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 Detail
-
getMeta
@Nullable public Meta getMeta()
- Returns:
- the meta
-
getDefinedClassId
public String getDefinedClassId()
- Specified by:
getDefinedClassIdin classAbstractLogicalDefinitionAxiom- Returns:
- the representativeNodeId
-
getGenusIds
public com.google.common.collect.ImmutableList<String> getGenusIds()
- Specified by:
getGenusIdsin classAbstractLogicalDefinitionAxiom- Returns:
- the nodeIds
-
getRestrictions
public com.google.common.collect.ImmutableList<ExistentialRestrictionExpression> getRestrictions()
- Specified by:
getRestrictionsin classAbstractLogicalDefinitionAxiom- Returns:
- the restrictions
-
withMeta
public final LogicalDefinitionAxiom withMeta(@Nullable Meta value)
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
public final LogicalDefinitionAxiom withDefinedClassId(String value)
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
public final LogicalDefinitionAxiom withGenusIds(String... elements)
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
public final LogicalDefinitionAxiom withGenusIds(Iterable<String> elements)
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
public final LogicalDefinitionAxiom withRestrictions(ExistentialRestrictionExpression... elements)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueLogicalDefinitionAxiomwith attribute values.
-
copyOf
public static LogicalDefinitionAxiom copyOf(AbstractLogicalDefinitionAxiom instance)
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
-
-