Java Code Examples for com.orientechnologies.orient.core.metadata.schema.OType#values()
The following examples show how to use
com.orientechnologies.orient.core.metadata.schema.OType#values() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SchemaInstallerTest.java From Orienteer with Apache License 2.0 | 6 votes |
@Override public void onInitialize(OrienteerWebApplication app, ODatabaseDocument db) { OSchemaHelper helper = OSchemaHelper.bind(db); helper.oClass(TEST_OCLASS); UIVisualizersRegistry registry = app.getUIVisualizersRegistry(); for(OType type: OType.values()) { if(type == OType.LINKBAG) continue; helper.oProperty(type.name().toLowerCase(), type); if(type.isLink()) helper.linkedClass(TEST_OCLASS); for(String vizualization : registry.getComponentsOptions(type)) { helper.oProperty(type.name().toLowerCase()+vizualization, type).assignVisualization(vizualization); if(type.isLink()) helper.linkedClass(TEST_OCLASS); } } }
Example 2
Source File: DefaultVisualizer.java From Orienteer with Apache License 2.0 | 4 votes |
public DefaultVisualizer() { super(NAME, false, OType.values()); }