@Test public void testGetGlyph() { assertEquals(DMNSVGGlyphFactory.ASSOCIATION_TOOLBOX, connectorShapeDef.getGlyph(Association.class, DEFINITION_ID)); assertEquals(DMNSVGGlyphFactory.AUTHORITY_REQUIREMENT_TOOLBOX, connectorShapeDef.getGlyph(AuthorityRequirement.class, DEFINITION_ID)); assertEquals(DMNSVGGlyphFactory.INFORMATION_REQUIREMENT_TOOLBOX, connectorShapeDef.getGlyph(InformationRequirement.class, DEFINITION_ID)); assertEquals(DMNSVGGlyphFactory.KNOWLEDGE_REQUIREMENT_TOOLBOX, connectorShapeDef.getGlyph(KnowledgeRequirement.class, DEFINITION_ID)); assertTrue(connectorShapeDef.getGlyph(Decision.class, DEFINITION_ID) instanceof ShapeGlyph); }
@Override @SuppressWarnings("unchecked") public Glyph getGlyph(final Class type, final String defId) { return GLYPHS.computeIfAbsent(type, (t) -> ShapeGlyph.create()); }
DMNConnectorShapeDefImpl implements DMNConnectorShapeDef<DMNDefinition, AbstractConnectorView> { @Override @SuppressWarnings("unchecked") public Glyph getGlyph(final Class type, final String defId) { return GLYPHS.computeIfAbsent(type, (t) -> ShapeGlyph.create()); } }
DMNConnectorShapeDefImpl implements DMNConnectorShapeDef<DMNDefinition, AbstractConnectorView> { @Override @SuppressWarnings("unchecked") public Glyph getGlyph(final Class type, final String defId) { return GLYPHS.computeIfAbsent(type, (t) -> ShapeGlyph.create()); }  }
DMNConnectorShapeDefImpl implements DMNConnectorShapeDef<DMNDefinition, AbstractConnectorView> { @Override @SuppressWarnings("unchecked") public Glyph getGlyph(final Class type, final String defId) { return GLYPHS.computeIfAbsent(type, (t) -> ShapeGlyph.create()); }  @Override BiConsumer<DMNDefinition, AbstractConnectorView> viewHandler(); @Override @SuppressWarnings("unchecked") Glyph getGlyph(final Class type,
                          final String defId); }
DMNConnectorShapeDefImpl implements DMNConnectorShapeDef<DMNDefinition, AbstractConnectorView> { @Override @SuppressWarnings("unchecked") public Glyph getGlyph(final Class type, final String defId) { return GLYPHS.computeIfAbsent(type, (t) -> ShapeGlyph.create()); }  @Override BiConsumer<DMNDefinition, AbstractConnectorView> viewHandler(); @Override @SuppressWarnings("unchecked") Glyph getGlyph(final Class type,
                          final String defId); static final Map<Class<? extends DMNDefinition>, Glyph> GLYPHS; }