return to(value.getLocation());
}
public BatchConjunction to( Location value ) {
Reference ref = (Reference)convertReferenceValue(value);
Property property = getContext().getPropertyFactory().create(propertyName, ref);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
protected BatchConjunction toValue( Object value ) {
Property property = getContext().getPropertyFactory().create(propertyName, value);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
public BatchConjunction to( String value ) {
return toValue(value);
}
public BatchConjunction to( int value ) {
return toValue(Integer.valueOf(value));
}
public BatchConjunction to( long value ) {
return toValue(Long.valueOf(value));
}
public BatchConjunction to( boolean value ) {
return toValue(Boolean.valueOf(value));
}
public BatchConjunction to( float value ) {
return toValue(Float.valueOf(value));
}
public BatchConjunction to( double value ) {
return toValue(Double.valueOf(value));
}
public BatchConjunction to( BigDecimal value ) {
return toValue(value);
}
public BatchConjunction to( Calendar value ) {
return toValue(value);
}
public BatchConjunction to( Date value ) {
return toValue(value);
}
public BatchConjunction to( DateTime value ) {
return toValue(value);
}
public BatchConjunction to( Name value ) {
return toValue(value);
}
public BatchConjunction to( Path value ) {
return toValue(value);
}
public BatchConjunction to( Reference value ) {
return toValue(value);
}
public BatchConjunction to( URI value ) {
return toValue(value);
}
public BatchConjunction to( UUID value ) {
return toValue(value);
}
public BatchConjunction to( Binary value ) {
return toValue(value);
}
public BatchConjunction to( byte[] value ) {
return toValue(value);
}
public BatchConjunction to( InputStream stream,
long approximateLength ) {
Binary value = getContext().getValueFactories().getBinaryFactory().create(stream, approximateLength);
return toValue(value);
}
public BatchConjunction to( Reader reader,
long approximateLength ) {
Binary value = getContext().getValueFactories().getBinaryFactory().create(reader, approximateLength);
return toValue(value);
}
public BatchConjunction to( Object value ) {
value = convertReferenceValue(value);
Property property = getContext().getPropertyFactory().create(propertyName, value);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
public BatchConjunction to( Object firstValue,
Object... otherValues ) {
firstValue = convertReferenceValue(firstValue);
for (int i = 0, len = otherValues.length; i != len; ++i) {
otherValues[i] = convertReferenceValue(otherValues[i]);
}
Property property = getContext().getPropertyFactory().create(propertyName, firstValue, otherValues);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
public BatchConjunction to( Object[] values ) {
for (int i = 0; i != values.length; ++i) {
values[i] = convertReferenceValue(values[i]);
}
Property property = getContext().getPropertyFactory().create(propertyName, values);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
public BatchConjunction to( Iterable<?> values ) {
List<Object> valueList = new LinkedList<Object>();
for (Object value : values) {
value = convertReferenceValue(value);
valueList.add(value);
}
Property property = getContext().getPropertyFactory().create(propertyName, valueList);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
public BatchConjunction to( Iterator<?> values ) {
List<Object> valueList = new LinkedList<Object>();
while (values.hasNext()) {
Object value = values.next();
valueList.add(value);
}
Property property = getContext().getPropertyFactory().create(propertyName, valueList);
requestQueue.setProperty(location, getCurrentWorkspaceName(), property);
return nextRequests;
}
};