use of org.pentaho.platform.api.repository2.unified.data.node.DataProperty in project pentaho-platform by pentaho.
the class UnifiedRepositoryTestUtils method pathPropertyPair.
/**
* Factory for {@link PathPropertyPair} instances.
*/
public static PathPropertyPair pathPropertyPair(final String path, final long value) {
checkPath(path);
String[] pathSegments = path.split("/");
return new PathPropertyPair(path, new DataProperty(pathSegments[pathSegments.length - 1], value, DataPropertyType.LONG));
}
use of org.pentaho.platform.api.repository2.unified.data.node.DataProperty in project pentaho-platform by pentaho.
the class UnifiedRepositoryTestUtils method pathPropertyPair.
/**
* Factory for {@link PathPropertyPair} instances.
*/
public static PathPropertyPair pathPropertyPair(final String path, final Serializable value) {
checkPath(path);
String[] pathSegments = path.split("/");
return new PathPropertyPair(path, new DataProperty(pathSegments[pathSegments.length - 1], value, DataPropertyType.REF));
}
Aggregations