Class ExistentialRestrictionExpression
- java.lang.Object
-
- org.geneontology.obographs.core.model.axiom.AbstractExistentialRestrictionExpression
-
- org.geneontology.obographs.core.model.axiom.ExistentialRestrictionExpression
-
- All Implemented Interfaces:
Comparable<AbstractExistentialRestrictionExpression>,Expression
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ExistentialRestrictionExpression extends AbstractExistentialRestrictionExpression
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 classExistentialRestrictionExpression.BuilderBuilds instances of typeExistentialRestrictionExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExistentialRestrictionExpressioncopyOf(AbstractExistentialRestrictionExpression instance)Creates an immutable copy of aAbstractExistentialRestrictionExpressionvalue.booleanequals(Object another)This instance is equal to all instances ofExistentialRestrictionExpressionthat have equal attribute values.StringgetFillerId()StringgetPropertyId()inthashCode()Computes a hash code from attributes:propertyId,fillerId.StringtoString()Prints the immutable valueExistentialRestrictionExpressionwith attribute values.ExistentialRestrictionExpressionwithFillerId(String value)Copy the current immutable object by setting a value for thefillerIdattribute.ExistentialRestrictionExpressionwithPropertyId(String value)Copy the current immutable object by setting a value for thepropertyIdattribute.-
Methods inherited from class org.geneontology.obographs.core.model.axiom.AbstractExistentialRestrictionExpression
compareTo
-
-
-
-
Method Detail
-
getPropertyId
public String getPropertyId()
- Specified by:
getPropertyIdin classAbstractExistentialRestrictionExpression- Returns:
- the propertyId
-
getFillerId
public String getFillerId()
- Specified by:
getFillerIdin classAbstractExistentialRestrictionExpression- Returns:
- the representativeNodeId
-
withPropertyId
public final ExistentialRestrictionExpression withPropertyId(String value)
Copy the current immutable object by setting a value for thepropertyIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for propertyId- Returns:
- A modified copy of the
thisobject
-
withFillerId
public final ExistentialRestrictionExpression withFillerId(String value)
Copy the current immutable object by setting a value for thefillerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fillerId- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofExistentialRestrictionExpressionthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:propertyId,fillerId.
-
toString
public String toString()
Prints the immutable valueExistentialRestrictionExpressionwith attribute values.
-
copyOf
public static ExistentialRestrictionExpression copyOf(AbstractExistentialRestrictionExpression instance)
Creates an immutable copy of aAbstractExistentialRestrictionExpressionvalue. 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 ExistentialRestrictionExpression instance
-
-