/** * Creates a {@link SomeValueSnak}. * * @param propertyId * @return a {@link SomeValueSnak} corresponding to the input */ public static SomeValueSnak makeSomeValueSnak(PropertyIdValue propertyId) { return factory.getSomeValueSnak(propertyId); }
/** * Creates a {@link SomeValueSnak}. * * @param propertyId * @return a {@link SomeValueSnak} corresponding to the input */ public static SomeValueSnak makeSomeValueSnak(PropertyIdValue propertyId) { return factory.getSomeValueSnak(propertyId); }
/** * Copies a {@link SomeValueSnak}. * * @param object * object to copy * @return copied object */ public SomeValueSnak copy(SomeValueSnak object) { return dataObjectFactory.getSomeValueSnak(copy(object.getPropertyId())); }
/** * Copies a {@link SomeValueSnak}. * * @param object * object to copy * @return copied object */ public SomeValueSnak copy(SomeValueSnak object) { return dataObjectFactory.getSomeValueSnak(copy(object.getPropertyId())); }
/** * Adds a {@link SomeValueSnak} qualifier with the given property to the * constructed statement. * * @param propertyIdValue * the property of the qualifier * @return builder object to continue construction */ public StatementBuilder withQualifierSomeValue( PropertyIdValue propertyIdValue) { withQualifier(factory.getSomeValueSnak(propertyIdValue)); return getThis(); }
/** * Adds a {@link SomeValueSnak} with the given property to the constructed * reference. * <p> * Note that it might not be meaningful to use {@link SomeValueSnak} in a * reference, depending on the policies of the wiki. * * @param propertyIdValue * the property of the snak * @return builder object to continue construction */ public ReferenceBuilder withSomeValue(PropertyIdValue propertyIdValue) { getSnakList(propertyIdValue).add( factory.getSomeValueSnak(propertyIdValue)); return getThis(); }
/** * Adds a {@link SomeValueSnak} with the given property to the constructed * reference. * <p> * Note that it might not be meaningful to use {@link SomeValueSnak} in a * reference, depending on the policies of the wiki. * * @param propertyIdValue * the property of the snak * @return builder object to continue construction */ public ReferenceBuilder withSomeValue(PropertyIdValue propertyIdValue) { getSnakList(propertyIdValue).add( factory.getSomeValueSnak(propertyIdValue)); return getThis(); }
/** * Adds a {@link SomeValueSnak} qualifier with the given property to the * constructed statement. * * @param propertyIdValue * the property of the qualifier * @return builder object to continue construction */ public StatementBuilder withQualifierSomeValue( PropertyIdValue propertyIdValue) { withQualifier(factory.getSomeValueSnak(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); } }
/** * 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); } }