public Conjunction<Graph> node( String name, Iterable<Property> properties ) { Name child = nameFactory.create(name); requests.createNode(parent, getCurrentWorkspaceName(), child, properties.iterator()); return nextGraph; } };
@Override public Property getProperty( String beanPropertyName ) { return properties.get(context.getValueFactories().getNameFactory().create(beanPropertyName)); }
public Conjunction<Graph> node( String name, Iterator<Property> properties ) { Name child = nameFactory.create(name); requests.createNode(parent, getCurrentWorkspaceName(), child, properties); return nextGraph; }
public Conjunction<Graph> node( String name, Property... properties ) { Name child = nameFactory.create(name); requests.createNode(parent, getCurrentWorkspaceName(), child, properties); return nextGraph; }
protected Entry( Path path, List<PropertyValue> properties ) { assert path != null; assert properties != null; this.path = path; this.properties = properties; if (this.properties.size() > 0 && this.properties.get(0).getName().equals("jcr:primaryType")) { PropertyValue primaryTypeProperty = this.properties.remove(0); this.primaryType = getFactories().getNameFactory().create(primaryTypeProperty.getValue()); } else { this.primaryType = null; } }
public Property getProperty( String nameStr ) { Name name = getContext().getValueFactories().getNameFactory().create(nameStr); return properties.get(name); }
@Override public ThisType setProperty( String propertyName, Object[] values ) { return setProperty(context.getValueFactories().getNameFactory().create(propertyName), values); }
/** * Returns the named property * * @param context the current execution context, used to get a {@link NameFactory name factory} * @param name the name of the property to return * @return the property for the given name */ public Property getProperty( ExecutionContext context, String name ) { Name propertyName = context.getValueFactories().getNameFactory().create(name); return getProperty(propertyName); }
public Property getProperty( ExecutionContext context, String name ) { NameFactory nameFactory = context.getValueFactories().getNameFactory(); return getProperty(nameFactory.create(name)); }
@Override public ThisType setProperty( String propertyName, Object value ) { return setProperty(context.getValueFactories().getNameFactory().create(propertyName), value); }
public Property getProperty( String nameStr ) { Name name = getContext().getValueFactories().getNameFactory().create(nameStr); return getPropertiesByName().get(name); }
/*package*/Name createName( String name ) { return Graph.this.getContext().getValueFactories().getNameFactory().create(name); } }
public Property getProperty( String nameStr ) { Name name = getContext().getValueFactories().getNameFactory().create(nameStr); return getPropertiesByName().get(name); }
protected Name createName( String name ) { return getContext().getValueFactories().getNameFactory().create(name); }
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 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; }
/** * Set a property on a node, starting with the name. The interface returned from this method should be used to specify the * value(s) and the location of the node onto which the property should be set. * * @param propertyName the property name * @return the interface used to specify the values */ public SetValues<BatchConjunction> set( String propertyName ) { Name name = getContext().getValueFactories().getNameFactory().create(propertyName); return set(name); }
/** * Set a property on a node, starting with the name. The interface returned from this method should be used to specify the * value(s) and the location of the node onto which the property should be set. * * @param propertyName the property name * @return the interface used to specify the values */ public SetValues<Conjunction<Graph>> set( String propertyName ) { Name name = getContext().getValueFactories().getNameFactory().create(propertyName); return set(name); }
/** * Request that the property with the given name be read on the node defined via the <code>on(...)</code> method on the * returned {@link On} object. Once the location is specified, the {@link Property property} is read and then returned. * * @param name the name of the property that is to be read * @return the object that is used to specified the node whose property is to be read, and which will return the property */ public On<Property> getProperty( final String name ) { Name nameObj = getContext().getValueFactories().getNameFactory().create(name); return getProperty(nameObj); }
@Override public RepositorySourceDefinition<ReturnType> setProperty( String propertyName, Object value ) { Name name = context.getValueFactories().getNameFactory().create(propertyName); // Check the "standard" names that should be prefixed with 'dna:' if (name.getLocalName().equals(ModeShapeLexicon.RETRY_LIMIT.getLocalName())) name = ModeShapeLexicon.RETRY_LIMIT; if (name.getLocalName().equals(ModeShapeLexicon.DESCRIPTION.getLocalName())) name = ModeShapeLexicon.DESCRIPTION; return super.setProperty(name, value); }