public Create<T> and( UUID uuid ) { PropertyFactory factory = getContext().getPropertyFactory(); properties.put(ModeShapeLexicon.UUID, factory.create(ModeShapeLexicon.UUID, uuid)); return this; }
public CreateAt<Graph> and( UUID uuid ) { PropertyFactory factory = getContext().getPropertyFactory(); properties.add(factory.create(ModeShapeLexicon.UUID, uuid)); return this; }
public On<BatchConjunction> to( Iterator<?> values ) { List<Object> valueList = new LinkedList<Object>(); while (values.hasNext()) { Object value = values.next(); valueList.add(value); } return set(getContext().getPropertyFactory().create(propertyName, valueList)); } };
public On<Conjunction<Graph>> to( Iterator<?> values ) { List<Object> valueList = new LinkedList<Object>(); while (values.hasNext()) { Object value = values.next(); valueList.add(value); } return set(getContext().getPropertyFactory().create(propertyName, valueList)); } };
public Create<T> and( Name name, Object... values ) { PropertyFactory factory = getContext().getPropertyFactory(); properties.put(name, factory.create(name, values)); return this; }
public CreateAt<Graph> and( Name name, Object... values ) { ExecutionContext context = getContext(); PropertyFactory factory = context.getPropertyFactory(); properties.add(factory.create(name, values)); return this; }
public On<BatchConjunction> to( Iterable<?> values ) { List<Object> valueList = new LinkedList<Object>(); for (Object value : values) { value = convertReferenceValue(value); valueList.add(value); } return set(getContext().getPropertyFactory().create(propertyName, valueList)); }
public On<Conjunction<Graph>> to( Iterable<?> values ) { List<Object> valueList = new LinkedList<Object>(); for (Object value : values) { value = convertReferenceValue(value); valueList.add(value); } return set(getContext().getPropertyFactory().create(propertyName, valueList)); }
private Property property( Name name, Object... values ) { return context.getPropertyFactory().create(name, values); }
public Create<T> and( String name, Object... values ) { ExecutionContext context = getContext(); PropertyFactory factory = context.getPropertyFactory(); NameFactory nameFactory = context.getValueFactories().getNameFactory(); Name propertyName = nameFactory.create(name); properties.put(propertyName, factory.create(propertyName, values)); return this; }
public CreateAt<Graph> and( String name, Object... values ) { ExecutionContext context = getContext(); PropertyFactory factory = context.getPropertyFactory(); NameFactory nameFactory = context.getValueFactories().getNameFactory(); properties.add(factory.create(nameFactory.create(name), values)); return this; }
public On<Conjunction<Graph>> to( Object[] values ) { for (int i = 0, len = values.length; i != len; ++i) { values[i] = convertReferenceValue(values[i]); } return set(getContext().getPropertyFactory().create(propertyName, values)); }
public On<BatchConjunction> to( Object[] values ) { for (int i = 0, len = values.length; i != len; ++i) { values[i] = convertReferenceValue(values[i]); } return set(getContext().getPropertyFactory().create(propertyName, values)); }
public On<BatchConjunction> to( Object value ) { value = convertReferenceValue(value); return set(getContext().getPropertyFactory().create(propertyName, value)); }
protected ThisType setProperty( Name propertyName, Object value ) { // Set the property via the batch ... batch.set(propertyName).on(path).to(value).and(); // Record that we changed this property ... properties.put(propertyName, context.getPropertyFactory().create(propertyName, value)); return thisType(); }
public ThisType setProperty( Name propertyName, Object[] values ) { // Set the property via the batch ... batch.set(propertyName).on(path).to(values).and(); // Record that we changed this property ... properties.put(propertyName, context.getPropertyFactory().create(propertyName, values)); return thisType(); }
public On<Conjunction<Graph>> to( Object firstValue, Object... otherValues ) { firstValue = convertReferenceValue(firstValue); for (int i = 0, len = otherValues.length; i != len; ++i) { otherValues[i] = convertReferenceValue(otherValues[i]); } return set(getContext().getPropertyFactory().create(propertyName, firstValue, otherValues)); }
public On<BatchConjunction> to( Object firstValue, Object... otherValues ) { Object[] values = new Object[otherValues.length + 1]; values[0] = convertReferenceValue(firstValue); for (int i = 0, len = otherValues.length; i != len; ++i) { values[i + 1] = convertReferenceValue(otherValues[i]); } return set(getContext().getPropertyFactory().create(propertyName, values)); }
protected Property property( String name, Object... values ) { return context.getPropertyFactory().create(name(name), values); }
public void addProperty( String name, Object... values ) { Property property = context.getPropertyFactory().create(name(name), values); properties.put(property.getName(), property); }