private void createVNodes ( VCompound parent , List < Glyph > glyphs ) { for ( Glyph glyph : glyphs ) { if ( ! glyphClazzOneOf ( glyph , GlyphClazz . UNIT_OF_INFORMATION , GlyphClazz . STATE_VARIABLE ) ) { // if(glyph.getClazz().equals(GlyphClazz.PROCESS.getClazz())) // { // VCompound v = new VCompound(glyph); //TODO: v is never used; wat's the idea? // } if ( ! isChildless ( glyph ) ) { VCompound v = new VCompound ( glyph ) ; idToGLyph . put ( glyph . getId ( ) , glyph ) ; glyphToVNode . put ( glyph , v ) ; parent . children . add ( v ) ; createVNodes ( v , glyph . getGlyph ( ) ) ; } else { VNode v = new VNode ( glyph ) ; idToGLyph . put ( glyph . getId ( ) , glyph ) ; glyphToVNode . put ( glyph , v ) ; parent . children . add ( v ) ; } } } }
Recursively creates VNodes from Glyphs of Sbgn .