/** * Creates a {@link NoValueSnak}. * * @param propertyId * @return a {@link NoValueSnak} corresponding to the input */ public static NoValueSnak makeNoValueSnak(PropertyIdValue propertyId) { return factory.getNoValueSnak(propertyId); }
/** * Creates a {@link NoValueSnak}. * * @param propertyId * @return a {@link NoValueSnak} corresponding to the input */ public static NoValueSnak makeNoValueSnak(PropertyIdValue propertyId) { return factory.getNoValueSnak(propertyId); }
/** * Copies a {@link NoValueSnak}. * * @param object * object to copy * @return copied object */ public NoValueSnak copy(NoValueSnak object) { return dataObjectFactory.getNoValueSnak(copy(object.getPropertyId())); }
/** * Copies a {@link NoValueSnak}. * * @param object * object to copy * @return copied object */ public NoValueSnak copy(NoValueSnak object) { return dataObjectFactory.getNoValueSnak(copy(object.getPropertyId())); }
/** * Returns the main {@link Snak} object for the constructed statement. * * @return */ protected Snak getMainSnak() { if (this.mainValue != null) { return factory.getValueSnak(this.mainProperty, this.mainValue); } else if (this.noMainValue) { return factory.getNoValueSnak(this.mainProperty); } else { return factory.getSomeValueSnak(this.mainProperty); } }
/** * Adds a {@link NoValueSnak} with the given property to the constructed * reference. * <p> * Note that it might not be meaningful to use {@link NoValueSnak} in a * reference. It is usually implicitly assumed that all snaks that are not * given have no value for a particular reference. Otherwise one would need * large numbers of {@link NoValueSnak} entries for every reference! * * @param propertyIdValue * the property of the snak * @return builder object to continue construction */ public ReferenceBuilder withNoValue(PropertyIdValue propertyIdValue) { getSnakList(propertyIdValue).add( factory.getNoValueSnak(propertyIdValue)); return getThis(); }
/** * Adds a {@link NoValueSnak} with the given property to the constructed * reference. * <p> * Note that it might not be meaningful to use {@link NoValueSnak} in a * reference. It is usually implicitly assumed that all snaks that are not * given have no value for a particular reference. Otherwise one would need * large numbers of {@link NoValueSnak} entries for every reference! * * @param propertyIdValue * the property of the snak * @return builder object to continue construction */ public ReferenceBuilder withNoValue(PropertyIdValue propertyIdValue) { getSnakList(propertyIdValue).add( factory.getNoValueSnak(propertyIdValue)); return getThis(); }
/** * Returns the main {@link Snak} object for the constructed statement. * * @return */ protected Snak getMainSnak() { if (this.mainValue != null) { return factory.getValueSnak(this.mainProperty, this.mainValue); } else if (this.noMainValue) { return factory.getNoValueSnak(this.mainProperty); } else { return factory.getSomeValueSnak(this.mainProperty); } }
/** * Adds a {@link NoValueSnak} qualifier with the given property to the * constructed statement. * <p> * Note that it might not be meaningful to use {@link NoValueSnak} in a * qualifier. It is usually implicitly assumed that all qualifiers that are * not given have no value for a particular statement. Otherwise one would * need large numbers of {@link NoValueSnak} qualifiers for every statement! * * @param propertyIdValue * the property of the qualifier * @return builder object to continue construction */ public StatementBuilder withQualifierNoValue(PropertyIdValue propertyIdValue) { withQualifier(factory.getNoValueSnak(propertyIdValue)); return getThis(); }
/** * Adds a {@link NoValueSnak} qualifier with the given property to the * constructed statement. * <p> * Note that it might not be meaningful to use {@link NoValueSnak} in a * qualifier. It is usually implicitly assumed that all qualifiers that are * not given have no value for a particular statement. Otherwise one would * need large numbers of {@link NoValueSnak} qualifiers for every statement! * * @param propertyIdValue * the property of the qualifier * @return builder object to continue construction */ public StatementBuilder withQualifierNoValue(PropertyIdValue propertyIdValue) { withQualifier(factory.getNoValueSnak(propertyIdValue)); return getThis(); }