Class ExistentialRestrictionExpression.Builder
- java.lang.Object
-
- org.geneontology.obographs.core.model.axiom.ExistentialRestrictionExpression.Builder
-
- Enclosing class:
- ExistentialRestrictionExpression
@NotThreadSafe public static final class ExistentialRestrictionExpression.Builder extends Object
Builds instances of typeExistentialRestrictionExpression. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a builder forExistentialRestrictionExpressioninstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExistentialRestrictionExpressionbuild()Builds a newExistentialRestrictionExpression.ExistentialRestrictionExpression.BuilderfillerId(String fillerId)Initializes the value for thefillerIdattribute.ExistentialRestrictionExpression.Builderfrom(AbstractExistentialRestrictionExpression instance)Fill a builder with attribute values from the providedAbstractExistentialRestrictionExpressioninstance.ExistentialRestrictionExpression.BuilderpropertyId(String propertyId)Initializes the value for thepropertyIdattribute.
-
-
-
Constructor Detail
-
Builder
public Builder()
Creates a builder forExistentialRestrictionExpressioninstances.new ExistentialRestrictionExpression.Builder() .propertyId(String) // requiredpropertyId.fillerId(String) // requiredfillerId.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ExistentialRestrictionExpression.Builder from(AbstractExistentialRestrictionExpression instance)
Fill a builder with attribute values from the providedAbstractExistentialRestrictionExpressioninstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
propertyId
@CanIgnoreReturnValue public final ExistentialRestrictionExpression.Builder propertyId(String propertyId)
Initializes the value for thepropertyIdattribute.- Parameters:
propertyId- The value for propertyId- Returns:
thisbuilder for use in a chained invocation
-
fillerId
@CanIgnoreReturnValue public final ExistentialRestrictionExpression.Builder fillerId(String fillerId)
Initializes the value for thefillerIdattribute.- Parameters:
fillerId- The value for fillerId- Returns:
thisbuilder for use in a chained invocation
-
build
public ExistentialRestrictionExpression build()
Builds a newExistentialRestrictionExpression.- Returns:
- An immutable instance of ExistentialRestrictionExpression
- Throws:
IllegalStateException- if any required attributes are missing
-
-