All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dooapp.gaedo.blueprints.indexable.PropertyUtils Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.dooapp.gaedo.blueprints.indexable;

import java.util.LinkedList;
import java.util.List;

import com.dooapp.gaedo.blueprints.Properties;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Element;
import com.tinkerpop.blueprints.Vertex;

public class PropertyUtils {

	public static List> appliesTo(Properties p) {
		List> returned = new LinkedList>();
		switch(p) {
		case collection_index:
		case label:
			returned.add(Edge.class);
			break;
		case kind:
		case type:
		case value:
			returned.add(Vertex.class);
			break;
		}
		return returned;
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy