congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RelationshipFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
RelationshipFactory
in
ingenias.generator.browser

Best Java code snippets using ingenias.generator.browser.RelationshipFactory (Showing top 2 results out of 315)

origin: net.sf.ingenias/editor

public static Vector<Hashtable<String,String>> getPossibleRoleAssignment(String relationshipType, String[] connectedEntities, Graph graph, Browser browser) throws NotFound{
  Vector<GraphCell> entities=new Vector<GraphCell>();
  for (String entityID:connectedEntities) {
    DefaultGraphCell entity = findEntity(entityID,graph);
    if (entity==null)
      throw new ingenias.exception.NotFound("Entity "+entityID+" that you tried to connect did not exist in the graph "+graph.getName());
    entities.add(entity);    
  }
  GraphCell[] selected=new GraphCell[entities.size()];
  selected=entities.toArray(selected);
  NAryEdge nEdge=(NAryEdge) RelationshipFactory.getNRelationshipInstance(relationshipType, selected,browser);
  Vector<Hashtable<String, String>> result = convertToVectorHashtable(connectedEntities, selected, nEdge);
  return result;
}
origin: net.sf.ingenias/editor

public Vector<Hashtable<String,String>> getPossibleRoleAssignment(String relationshipType, String[] connectedEntities) throws NotFound{
  Vector<GraphCell> entities=new Vector<GraphCell>();
  for (String entityID:connectedEntities) {
    DefaultGraphCell entity = findEntity(entityID);
    if (entity==null){
      // the entity may have not been created yet as graphical object
      // The object manager may know about it.
      if (this.ids.om.findUserObject(entityID).size()>0)
        entity=new DefaultGraphCell(this.ids.om.findUserObject(entityID).firstElement());
      else
        throw new ingenias.exception.NotFound("Entity "+entityID+" that you tried to connect did not exist in any graph ");
    }
    //throw new ingenias.exception.NotFound("Entity "+entityID+" that you tried to connect did not exist in any graph ");
    entities.add(entity);    
  }
  GraphCell[] selected=new GraphCell[entities.size()];
  selected=entities.toArray(selected);
  NAryEdge nEdge=(NAryEdge) RelationshipFactory.getNRelationshipInstance(relationshipType, selected,browser);
  Vector<Hashtable<String, String>> result = convertToVectorHashtable(connectedEntities, selected, nEdge);
  return result;
}
ingenias.generator.browserRelationshipFactory

Most used methods

  • getNRelationshipInstance

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Menu (java.awt)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now