package org.neo4j.util;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
/**
* A {@link PropertySet} where the objects are strings.
*/
public class StringPropertySet extends PropertySet<String>
{
/**
* @param graphDb the {@link GraphDatabaseService}.
* @param node the collection node.
* @param propertyKey the property key for storing values.
* @param delimiter custom delimiter between values.
*/
public StringPropertySet( GraphDatabaseService graphDb, Node node, String propertyKey,
String delimiter )
{
super( graphDb, node, propertyKey, delimiter );
}
/**
* @param graphDb the {@link GraphDatabaseService}.
* @param node the collection node.
* @param propertyKey the property key for storing values.
*/
public StringPropertySet( GraphDatabaseService graphDb, Node node, String propertyKey )
{
super( graphDb, node, propertyKey );
}
@Override
protected String itemToString( Object item )
{
return item.toString();
}
@Override
protected String stringToItem( String string )
{
return string;
}
}