target
stringlengths 20
113k
| src_fm
stringlengths 11
86.3k
| src_fm_fc
stringlengths 21
86.4k
| src_fm_fc_co
stringlengths 30
86.4k
| src_fm_fc_ms
stringlengths 42
86.8k
| src_fm_fc_ms_ff
stringlengths 43
86.8k
|
---|---|---|---|---|---|
@Test public void testComponentWidths() { assertEquals(context.getRequiredComponentWidthCount(), context.getComponentWidths().size()); context.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; }
|
Context extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } }
|
Context extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Context(); Context(final Id id,
final Description description,
final QName typeRef); }
|
Context extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Context(); Context(final Id id,
final Description description,
final QName typeRef); @Override Context copy(); List<ContextEntry> getContextEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Context extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Context(); Context(final Id id,
final Description description,
final QName typeRef); @Override Context copy(); List<ContextEntry> getContextEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final Context source = new Context(new Id(CONTEXT_ID), new Description(DESCRIPTION), BuiltInType.BOOLEAN.asQName()); final Context target = source.copy(); assertNotNull(target); assertNotEquals(CONTEXT_ID, target.getId().getValue()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); }
|
@Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.componentWidths = new ArrayList<>(componentWidths); clonedContext.contextEntry = Optional.ofNullable(contextEntry) .map(contextEntryList -> contextEntryList.stream().map(ContextEntry::copy).collect(Collectors.toList())) .orElse(null); return clonedContext; }
|
Context extends Expression { @Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.componentWidths = new ArrayList<>(componentWidths); clonedContext.contextEntry = Optional.ofNullable(contextEntry) .map(contextEntryList -> contextEntryList.stream().map(ContextEntry::copy).collect(Collectors.toList())) .orElse(null); return clonedContext; } }
|
Context extends Expression { @Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.componentWidths = new ArrayList<>(componentWidths); clonedContext.contextEntry = Optional.ofNullable(contextEntry) .map(contextEntryList -> contextEntryList.stream().map(ContextEntry::copy).collect(Collectors.toList())) .orElse(null); return clonedContext; } Context(); Context(final Id id,
final Description description,
final QName typeRef); }
|
Context extends Expression { @Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.componentWidths = new ArrayList<>(componentWidths); clonedContext.contextEntry = Optional.ofNullable(contextEntry) .map(contextEntryList -> contextEntryList.stream().map(ContextEntry::copy).collect(Collectors.toList())) .orElse(null); return clonedContext; } Context(); Context(final Id id,
final Description description,
final QName typeRef); @Override Context copy(); List<ContextEntry> getContextEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Context extends Expression { @Override public Context copy() { final Context clonedContext = new Context(); clonedContext.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedContext.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedContext.componentWidths = new ArrayList<>(componentWidths); clonedContext.contextEntry = Optional.ofNullable(contextEntry) .map(contextEntryList -> contextEntryList.stream().map(ContextEntry::copy).collect(Collectors.toList())) .orElse(null); return clonedContext; } Context(); Context(final Id id,
final Description description,
final QName typeRef); @Override Context copy(); List<ContextEntry> getContextEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final Expression expression = mock(Expression.class); final Binding binding1 = mock(Binding.class); final Binding binding2 = mock(Binding.class); final List<Binding> binding = asList(binding1, binding2); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); doReturn(expression).when(invocation).getExpression(); doReturn(binding).when(invocation).getBinding(); when(expression.getHasTypeRefs()).thenReturn(asList(hasTypeRef1, hasTypeRef2)); when(binding1.getHasTypeRefs()).thenReturn(asList(hasTypeRef3)); when(binding2.getHasTypeRefs()).thenReturn(asList(hasTypeRef4)); final List<HasTypeRef> actualHasTypeRefs = invocation.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(invocation, hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; }
|
Invocation extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; } }
|
Invocation extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); }
|
Invocation extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Invocation extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getBinding())); return hasTypeRefs; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testComponentWidths() { assertEquals(invocation.getRequiredComponentWidthCount(), invocation.getComponentWidths().size()); invocation.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; }
|
Invocation extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } }
|
Invocation extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); }
|
Invocation extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Invocation extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final Invocation source = new Invocation( new Id(INVOCATION_ID), new Description(DESCRIPTION), BuiltInType.BOOLEAN.asQName(), null, new ArrayList<>() ); final Invocation target = source.copy(); assertNotNull(target); assertNotEquals(INVOCATION_ID, target.getId()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); assertNull(target.getExpression()); assertTrue(target.getBinding().isEmpty()); }
|
@Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInvocation.componentWidths = new ArrayList<>(componentWidths); clonedInvocation.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedInvocation.binding = binding.stream().map(Binding::copy).collect(Collectors.toList()); return clonedInvocation; }
|
Invocation extends Expression implements HasExpression { @Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInvocation.componentWidths = new ArrayList<>(componentWidths); clonedInvocation.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedInvocation.binding = binding.stream().map(Binding::copy).collect(Collectors.toList()); return clonedInvocation; } }
|
Invocation extends Expression implements HasExpression { @Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInvocation.componentWidths = new ArrayList<>(componentWidths); clonedInvocation.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedInvocation.binding = binding.stream().map(Binding::copy).collect(Collectors.toList()); return clonedInvocation; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); }
|
Invocation extends Expression implements HasExpression { @Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInvocation.componentWidths = new ArrayList<>(componentWidths); clonedInvocation.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedInvocation.binding = binding.stream().map(Binding::copy).collect(Collectors.toList()); return clonedInvocation; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Invocation extends Expression implements HasExpression { @Override public Invocation copy() { final Invocation clonedInvocation = new Invocation(); clonedInvocation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInvocation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInvocation.componentWidths = new ArrayList<>(componentWidths); clonedInvocation.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedInvocation.binding = binding.stream().map(Binding::copy).collect(Collectors.toList()); return clonedInvocation; } Invocation(); Invocation(final Id id,
final Description description,
final QName typeRef,
final Expression expression,
final List<Binding> binding); @Override Invocation copy(); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<Binding> getBinding(); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testSetName() { namedElement.setName(new Name(NAME)); assertEquals(NAME, namedElement.getName().getValue()); assertEquals(NAME, namedElement.getNameHolder().getValue().getValue()); }
|
@Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); }
|
NamedElement extends DMNElement implements HasName { @Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); } }
|
NamedElement extends DMNElement implements HasName { @Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); }
|
NamedElement extends DMNElement implements HasName { @Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); @Override Name getName(); @Override void setName(final Name name); NameHolder getNameHolder(); void setNameHolder(final NameHolder nameHolder); }
|
NamedElement extends DMNElement implements HasName { @Override public void setName(final Name name) { this.name = name; this.nameHolder.setValue(name); } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); @Override Name getName(); @Override void setName(final Name name); NameHolder getNameHolder(); void setNameHolder(final NameHolder nameHolder); }
|
@Test public void testSetNameHolder() { namedElement.setNameHolder(new NameHolder(new Name(NAME))); assertEquals(NAME, namedElement.getName().getValue()); assertEquals(NAME, namedElement.getNameHolder().getValue().getValue()); }
|
public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; }
|
NamedElement extends DMNElement implements HasName { public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; } }
|
NamedElement extends DMNElement implements HasName { public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); }
|
NamedElement extends DMNElement implements HasName { public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); @Override Name getName(); @Override void setName(final Name name); NameHolder getNameHolder(); void setNameHolder(final NameHolder nameHolder); }
|
NamedElement extends DMNElement implements HasName { public void setNameHolder(final NameHolder nameHolder) { this.name.setValue(nameHolder.getValue().getValue()); this.nameHolder = nameHolder; } NamedElement(); NamedElement(final Id id,
final Description description,
final Name name); @Override Name getName(); @Override void setName(final Name name); NameHolder getNameHolder(); void setNameHolder(final NameHolder nameHolder); }
|
@Test public void testGetHasTypeRefs() { final Expression expression = mock(Expression.class); final InformationItem informationItem1 = mock(InformationItem.class); final InformationItem informationItem2 = mock(InformationItem.class); final List<InformationItem> formalParameter = asList(informationItem1, informationItem2); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); doReturn(expression).when(functionDefinition).getExpression(); doReturn(formalParameter).when(functionDefinition).getFormalParameter(); when(expression.getHasTypeRefs()).thenReturn(asList(hasTypeRef1, hasTypeRef2)); when(informationItem1.getHasTypeRefs()).thenReturn(asList(hasTypeRef3)); when(informationItem2.getHasTypeRefs()).thenReturn(asList(hasTypeRef4)); final List<HasTypeRef> actualHasTypeRefs = functionDefinition.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(functionDefinition, hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); return hasTypeRefs; }
|
FunctionDefinition extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); return hasTypeRefs; } }
|
FunctionDefinition extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); return hasTypeRefs; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); return hasTypeRefs; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getFlatHasTypeRefs(getFormalParameter())); return hasTypeRefs; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testComponentWidths() { assertEquals(functionDefinition.getRequiredComponentWidthCount(), functionDefinition.getComponentWidths().size()); functionDefinition.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; }
|
FunctionDefinition extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } }
|
FunctionDefinition extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testSetValueWhenCodeEditorIsPresent() { final String value = "value"; widget.setValue(value); verify(codeEditor).setValue(value); }
|
public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); }
|
MonacoEditorWidget extends TextBoxBase { public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); } }
|
MonacoEditorWidget extends TextBoxBase { public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); } MonacoEditorWidget(); }
|
MonacoEditorWidget extends TextBoxBase { public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
MonacoEditorWidget extends TextBoxBase { public void setValue(final String value) { getCodeEditor().ifPresent(c -> c.setValue(value)); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
@Test public void testCopy() { final FunctionDefinition source = new FunctionDefinition(); source.setId(new Id(FUNCTION_ID)); source.setDescription(new Description(DESCRIPTION)); source.setTypeRef(BuiltInType.BOOLEAN.asQName()); source.setKind(FunctionDefinition.Kind.JAVA); final FunctionDefinition target = source.copy(); assertNotNull(target); assertNotEquals(FUNCTION_ID, target.getId().getValue()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); assertEquals(FunctionDefinition.Kind.JAVA, target.getKind()); }
|
@Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFunctionDefinition.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedFunctionDefinition.componentWidths = new ArrayList<>(componentWidths); clonedFunctionDefinition.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedFunctionDefinition.formalParameter = cloneFormalParameterList(); clonedFunctionDefinition.kind = kind; clonedFunctionDefinition.getAdditionalAttributes().putAll(cloneAdditionalAttributes()); return clonedFunctionDefinition; }
|
FunctionDefinition extends Expression implements HasExpression { @Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFunctionDefinition.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedFunctionDefinition.componentWidths = new ArrayList<>(componentWidths); clonedFunctionDefinition.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedFunctionDefinition.formalParameter = cloneFormalParameterList(); clonedFunctionDefinition.kind = kind; clonedFunctionDefinition.getAdditionalAttributes().putAll(cloneAdditionalAttributes()); return clonedFunctionDefinition; } }
|
FunctionDefinition extends Expression implements HasExpression { @Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFunctionDefinition.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedFunctionDefinition.componentWidths = new ArrayList<>(componentWidths); clonedFunctionDefinition.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedFunctionDefinition.formalParameter = cloneFormalParameterList(); clonedFunctionDefinition.kind = kind; clonedFunctionDefinition.getAdditionalAttributes().putAll(cloneAdditionalAttributes()); return clonedFunctionDefinition; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFunctionDefinition.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedFunctionDefinition.componentWidths = new ArrayList<>(componentWidths); clonedFunctionDefinition.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedFunctionDefinition.formalParameter = cloneFormalParameterList(); clonedFunctionDefinition.kind = kind; clonedFunctionDefinition.getAdditionalAttributes().putAll(cloneAdditionalAttributes()); return clonedFunctionDefinition; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
FunctionDefinition extends Expression implements HasExpression { @Override public FunctionDefinition copy() { final FunctionDefinition clonedFunctionDefinition = new FunctionDefinition(); clonedFunctionDefinition.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedFunctionDefinition.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedFunctionDefinition.componentWidths = new ArrayList<>(componentWidths); clonedFunctionDefinition.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); clonedFunctionDefinition.formalParameter = cloneFormalParameterList(); clonedFunctionDefinition.kind = kind; clonedFunctionDefinition.getAdditionalAttributes().putAll(cloneAdditionalAttributes()); return clonedFunctionDefinition; } FunctionDefinition(); FunctionDefinition(final Id id,
final Description description,
final QName typeRef,
final Expression expression); @Override FunctionDefinition copy(); @Override Expression getExpression(); @Override void setExpression(final Expression expression); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); List<InformationItem> getFormalParameter(); Kind getKind(); void setKind(Kind kind); @Override List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheSameId() { import1.setId(new Id("123")); import2.setId(new Id("123")); assertEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheADifferentId() { import1.setId(new Id("123")); import2.setId(new Id("456")); assertNotEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheSameName() { import1.setName(new Name("123")); import2.setName(new Name("123")); assertEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheADifferentName() { import1.setName(new Name("123")); import2.setName(new Name("456")); assertNotEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheSameDescription() { import1.setDescription(new Description("desc")); import2.setDescription(new Description("desc")); assertEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testHashCodeWithTheADifferentDescription() { import1.setDescription(new Description("desc1")); import2.setDescription(new Description("desc2")); assertNotEquals(import1.hashCode(), import2.hashCode()); }
|
@Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Import extends NamedElement { @Override public int hashCode() { return HashUtil.combineHashCodes(id != null ? id.hashCode() : 0, description != null ? description.hashCode() : 0, name != null ? name.hashCode() : 0, namespace != null ? namespace.hashCode() : 0, locationURI != null ? locationURI.hashCode() : 0, importType != null ? importType.hashCode() : 0); } Import(); Import(final String namespace,
final LocationURI locationURI,
final String importType); String getNamespace(); void setNamespace(final String namespace); LocationURI getLocationURI(); void setLocationURI(final LocationURI locationURI); String getImportType(); void setImportType(final String importType); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final Expression expression = mock(Expression.class); final InformationItem variable = mock(InformationItem.class); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); doReturn(expression).when(contextEntry).getExpression(); doReturn(variable).when(contextEntry).getVariable(); when(expression.getHasTypeRefs()).thenReturn(asList(hasTypeRef1, hasTypeRef2)); when(variable.getHasTypeRefs()).thenReturn(asList(hasTypeRef3, hasTypeRef4)); final List<HasTypeRef> actualHasTypeRefs = contextEntry.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getVariable())); return hasTypeRefs; }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getVariable())); return hasTypeRefs; } }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getVariable())); return hasTypeRefs; } }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getVariable())); return hasTypeRefs; } ContextEntry copy(); @Override InformationItem getVariable(); @Override void setVariable(final InformationItem value); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getVariable())); return hasTypeRefs; } ContextEntry copy(); @Override InformationItem getVariable(); @Override void setVariable(final InformationItem value); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); static final String DEFAULT_EXPRESSION_VALUE; }
|
@Test public void testCopy() { final ContextEntry source = new ContextEntry(); final InformationItem informationItem = new InformationItem(new Id(ITEM_ID), new Description(DESCRIPTION), new Name(INFORMATION_ITEM_NAME), BuiltInType.BOOLEAN.asQName()); source.setVariable(informationItem); final ContextEntry target = source.copy(); assertNotNull(target); assertNull(target.getExpression()); assertNotNull(target.getVariable()); assertNotEquals(ITEM_ID, target.getVariable().getId().getValue()); assertEquals(DESCRIPTION, target.getVariable().getDescription().getValue()); assertEquals(INFORMATION_ITEM_NAME, target.getVariable().getName().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getVariable().getTypeRef()); }
|
public ContextEntry copy() { final ContextEntry clonedContextEntry = new ContextEntry(); clonedContextEntry.variable = Optional.ofNullable(variable).map(InformationItem::copy).orElse(null); clonedContextEntry.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return clonedContextEntry; }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public ContextEntry copy() { final ContextEntry clonedContextEntry = new ContextEntry(); clonedContextEntry.variable = Optional.ofNullable(variable).map(InformationItem::copy).orElse(null); clonedContextEntry.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return clonedContextEntry; } }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public ContextEntry copy() { final ContextEntry clonedContextEntry = new ContextEntry(); clonedContextEntry.variable = Optional.ofNullable(variable).map(InformationItem::copy).orElse(null); clonedContextEntry.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return clonedContextEntry; } }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public ContextEntry copy() { final ContextEntry clonedContextEntry = new ContextEntry(); clonedContextEntry.variable = Optional.ofNullable(variable).map(InformationItem::copy).orElse(null); clonedContextEntry.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return clonedContextEntry; } ContextEntry copy(); @Override InformationItem getVariable(); @Override void setVariable(final InformationItem value); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
ContextEntry extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public ContextEntry copy() { final ContextEntry clonedContextEntry = new ContextEntry(); clonedContextEntry.variable = Optional.ofNullable(variable).map(InformationItem::copy).orElse(null); clonedContextEntry.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return clonedContextEntry; } ContextEntry copy(); @Override InformationItem getVariable(); @Override void setVariable(final InformationItem value); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); static final String DEFAULT_EXPRESSION_VALUE; }
|
@Test public void testGetHasTypeRefs() { final Expression expression1 = mock(Expression.class); final Expression expression2 = mock(Expression.class); final List<HasExpression> hasExpressions = asList(HasExpression.wrap(list, expression1), HasExpression.wrap(list, expression2)); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); doReturn(hasExpressions).when(list).getExpression(); when(expression1.getHasTypeRefs()).thenReturn(asList(hasTypeRef1)); when(expression2.getHasTypeRefs()).thenReturn(asList(hasTypeRef2)); final List<HasTypeRef> actualHasTypeRefs = list.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(list, hasTypeRef1, hasTypeRef2); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; }
|
List extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; } }
|
List extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); }
|
List extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
List extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefsFromExpressions(getExpression())); return hasTypeRefs; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetValueWhenCodeEditorIsPresent() { final String expectedValue = "value"; when(codeEditor.getValue()).thenReturn(expectedValue); final String actualValue = widget.getValue(); assertEquals(expectedValue, actualValue); }
|
@Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); }
|
MonacoEditorWidget extends TextBoxBase { @Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); } }
|
MonacoEditorWidget extends TextBoxBase { @Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); } MonacoEditorWidget(); }
|
MonacoEditorWidget extends TextBoxBase { @Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
MonacoEditorWidget extends TextBoxBase { @Override public String getValue() { return getCodeEditor() .map(editor -> editor.getValue()) .orElse(""); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
@Test public void testComponentWidths() { assertEquals(list.getRequiredComponentWidthCount(), list.getComponentWidths().size()); list.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; }
|
List extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } }
|
List extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); }
|
List extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
List extends Expression { @Override public int getRequiredComponentWidthCount() { return STATIC_COLUMNS; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final org.kie.workbench.common.dmn.api.definition.model.List source = new org.kie.workbench.common.dmn.api.definition.model.List( new Id(LIST_ID), new Description(DESCRIPTION), BuiltInType.BOOLEAN.asQName(), new ArrayList<>() ); final org.kie.workbench.common.dmn.api.definition.model.List target = source.copy(); assertNotNull(target); assertNotEquals(LIST_ID, target.getId()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); assertTrue(target.getExpression().isEmpty()); }
|
@Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new ArrayList<>(componentWidths); clonedList.expression = expression.stream().map(expressionWrapperMappingFn(clonedList)).collect(Collectors.toList()); return clonedList; }
|
List extends Expression { @Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new ArrayList<>(componentWidths); clonedList.expression = expression.stream().map(expressionWrapperMappingFn(clonedList)).collect(Collectors.toList()); return clonedList; } }
|
List extends Expression { @Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new ArrayList<>(componentWidths); clonedList.expression = expression.stream().map(expressionWrapperMappingFn(clonedList)).collect(Collectors.toList()); return clonedList; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); }
|
List extends Expression { @Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new ArrayList<>(componentWidths); clonedList.expression = expression.stream().map(expressionWrapperMappingFn(clonedList)).collect(Collectors.toList()); return clonedList; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
List extends Expression { @Override public List copy() { final List clonedList = new List(); clonedList.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedList.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedList.componentWidths = new ArrayList<>(componentWidths); clonedList.expression = expression.stream().map(expressionWrapperMappingFn(clonedList)).collect(Collectors.toList()); return clonedList; } List(); List(final Id id,
final Description description,
final QName typeRef,
final java.util.List<HasExpression> expression); @Override List copy(); java.util.List<HasExpression> getExpression(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testNameObjectParameterConstructor() { final ImportPMML anImport = new ImportPMML("namespace", new LocationURI(), DMNImportTypes.PMML.getDefaultNamespace()); assertEquals("namespace", anImport.getName().getValue()); doNameObjectTest(anImport); }
|
@Override public Name getName() { return wrapped; }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
@Test public void testNameValueParameterConstructor() { final ImportPMML anImport = new ImportPMML("namespace", new LocationURI(), DMNImportTypes.PMML.getDefaultNamespace()); assertEquals("namespace", anImport.getName().getValue()); doNameValueTest(anImport); }
|
@Override public Name getName() { return wrapped; }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
@Test public void testNamespaceParameterConstructor() { final ImportPMML anImport = new ImportPMML("original", new LocationURI(), DMNImportTypes.PMML.getDefaultNamespace()); assertEquals("original", anImport.getName().getValue()); doNamespaceTest(anImport); }
|
@Override public Name getName() { return wrapped; }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
ImportPMML extends Import { @Override public Name getName() { return wrapped; } ImportPMML(); ImportPMML(final String namespace,
final LocationURI locationURI,
final String importType); int getModelCount(); void setModelCount(final int modelCount); @Override String getNamespace(); @Override void setNamespace(final String namespace); @Override Name getName(); @Override void setName(final Name name); }
|
@Test public void testCopy() { final RuleAnnotationClauseText source = new RuleAnnotationClauseText(); source.setText(new Text(TEXT_VALUE)); final RuleAnnotationClauseText target = source.copy(); assertNotNull(target); assertEquals(TEXT_VALUE, target.getText().getValue()); }
|
public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; }
|
RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; } }
|
RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; } RuleAnnotationClauseText(); }
|
RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; } RuleAnnotationClauseText(); RuleAnnotationClauseText copy(); @Override Text getText(); @Override void setText(final Text text); @Override boolean equals(final Object o); @Override int hashCode(); }
|
RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; } RuleAnnotationClauseText(); RuleAnnotationClauseText copy(); @Override Text getText(); @Override void setText(final Text text); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final LiteralExpression literalExpression1 = mock(LiteralExpression.class); final LiteralExpression literalExpression2 = mock(LiteralExpression.class); final List<LiteralExpression> outputEntry = asList(literalExpression1, literalExpression2); doReturn(outputEntry).when(decisionRule).getOutputEntry(); when(literalExpression1.getHasTypeRefs()).thenReturn(asList(literalExpression1)); when(literalExpression2.getHasTypeRefs()).thenReturn(asList(literalExpression2)); final List<HasTypeRef> actualHasTypeRefs = decisionRule.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(literalExpression1, literalExpression2); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); }
|
DecisionRule extends DMNElement implements HasTypeRefs { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); } }
|
DecisionRule extends DMNElement implements HasTypeRefs { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); }
|
DecisionRule extends DMNElement implements HasTypeRefs { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); DecisionRule copy(); List<RuleAnnotationClauseText> getAnnotationEntry(); List<UnaryTests> getInputEntry(); List<LiteralExpression> getOutputEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
DecisionRule extends DMNElement implements HasTypeRefs { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getFlatHasTypeRefs(getOutputEntry())); } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); DecisionRule copy(); List<RuleAnnotationClauseText> getAnnotationEntry(); List<UnaryTests> getInputEntry(); List<LiteralExpression> getOutputEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final DecisionRule source = new DecisionRule(new Id(DECISION_RULE_ID), new Description(DESCRIPTION), new ArrayList<>(), new ArrayList<>()); final DecisionRule target = source.copy(); assertNotNull(target); assertNotEquals(DECISION_RULE_ID, target.getId().getValue()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertTrue(target.getInputEntry().isEmpty()); assertTrue(target.getOutputEntry().isEmpty()); }
|
public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTests::copy).collect(Collectors.toList()); clonedDecisionRule.outputEntry = outputEntry.stream().map(LiteralExpression::copy).collect(Collectors.toList()); clonedDecisionRule.annotationEntry = Optional.ofNullable(annotationEntry) .map(annotationEntryList -> annotationEntryList.stream().map(RuleAnnotationClauseText::copy).collect(Collectors.toList())) .orElse(null); return clonedDecisionRule; }
|
DecisionRule extends DMNElement implements HasTypeRefs { public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTests::copy).collect(Collectors.toList()); clonedDecisionRule.outputEntry = outputEntry.stream().map(LiteralExpression::copy).collect(Collectors.toList()); clonedDecisionRule.annotationEntry = Optional.ofNullable(annotationEntry) .map(annotationEntryList -> annotationEntryList.stream().map(RuleAnnotationClauseText::copy).collect(Collectors.toList())) .orElse(null); return clonedDecisionRule; } }
|
DecisionRule extends DMNElement implements HasTypeRefs { public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTests::copy).collect(Collectors.toList()); clonedDecisionRule.outputEntry = outputEntry.stream().map(LiteralExpression::copy).collect(Collectors.toList()); clonedDecisionRule.annotationEntry = Optional.ofNullable(annotationEntry) .map(annotationEntryList -> annotationEntryList.stream().map(RuleAnnotationClauseText::copy).collect(Collectors.toList())) .orElse(null); return clonedDecisionRule; } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); }
|
DecisionRule extends DMNElement implements HasTypeRefs { public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTests::copy).collect(Collectors.toList()); clonedDecisionRule.outputEntry = outputEntry.stream().map(LiteralExpression::copy).collect(Collectors.toList()); clonedDecisionRule.annotationEntry = Optional.ofNullable(annotationEntry) .map(annotationEntryList -> annotationEntryList.stream().map(RuleAnnotationClauseText::copy).collect(Collectors.toList())) .orElse(null); return clonedDecisionRule; } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); DecisionRule copy(); List<RuleAnnotationClauseText> getAnnotationEntry(); List<UnaryTests> getInputEntry(); List<LiteralExpression> getOutputEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
DecisionRule extends DMNElement implements HasTypeRefs { public DecisionRule copy() { DecisionRule clonedDecisionRule = new DecisionRule(); clonedDecisionRule.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedDecisionRule.inputEntry = inputEntry.stream().map(UnaryTests::copy).collect(Collectors.toList()); clonedDecisionRule.outputEntry = outputEntry.stream().map(LiteralExpression::copy).collect(Collectors.toList()); clonedDecisionRule.annotationEntry = Optional.ofNullable(annotationEntry) .map(annotationEntryList -> annotationEntryList.stream().map(RuleAnnotationClauseText::copy).collect(Collectors.toList())) .orElse(null); return clonedDecisionRule; } DecisionRule(); DecisionRule(final Id id,
final Description description,
final List<UnaryTests> inputEntry,
final List<LiteralExpression> outputEntry); DecisionRule copy(); List<RuleAnnotationClauseText> getAnnotationEntry(); List<UnaryTests> getInputEntry(); List<LiteralExpression> getOutputEntry(); @Override List<HasTypeRef> getHasTypeRefs(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetNotNullHasTypeRefs() { final HasTypeRef hasTypeRef = mock(HasTypeRef.class); final List<HasTypeRef> expectedHasTypeRefs = asList(mock(HasTypeRef.class), mock(HasTypeRef.class)); when(hasTypeRef.getHasTypeRefs()).thenReturn(expectedHasTypeRefs); final List<HasTypeRef> actualHasTypeRefs = HasTypeRefHelper.getNotNullHasTypeRefs(hasTypeRef); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
@Test public void testGetNotNullHasTypeRefsWhenHasTypeRefIsNull() { final List<HasTypeRef> expectedHasTypeRefs = emptyList(); final List<HasTypeRef> actualHasTypeRefs = HasTypeRefHelper.getNotNullHasTypeRefs(null); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
HasTypeRefHelper { public static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef) { final Optional<HasTypeRef> optional = Optional.ofNullable(hasTypeRef); return optional .map(HasTypeRef::getHasTypeRefs) .orElse(emptyList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
@Test public void testSetFocusWhenFocusIsEnabled() { widget.setFocus(true); verify(codeEditor).focus(); }
|
@Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
@Test public void testGetFlatHasTypeRefs() { final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef5 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef6 = mock(HasTypeRef.class); final List<HasTypeRef> typeRefList1 = asList(hasTypeRef3, hasTypeRef4); final List<HasTypeRef> typeRefList2 = asList(hasTypeRef5, hasTypeRef6); final List<HasTypeRefs> hasTypeRefs = asList(hasTypeRef1, hasTypeRef2); when(hasTypeRef1.getHasTypeRefs()).thenReturn(typeRefList1); when(hasTypeRef2.getHasTypeRefs()).thenReturn(typeRefList2); final List<HasTypeRef> actual = HasTypeRefHelper.getFlatHasTypeRefs(hasTypeRefs); final List<HasTypeRef> expected = asList(hasTypeRef3, hasTypeRef4, hasTypeRef5, hasTypeRef6); assertEquals(expected, actual); }
|
public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList) { return hasTypeRefList .stream() .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
@Test public void testGetFlatHasTypeRefsFromExpressions() { final Expression expression1 = mock(Expression.class); final Expression expression2 = mock(Expression.class); final DMNModelInstrumentedBase parent = mock(DMNModelInstrumentedBase.class); final HasExpression hasExpression1 = HasExpression.wrap(parent, expression1); final HasExpression hasExpression2 = HasExpression.wrap(parent, expression2); final List<HasExpression> hasExpressions = asList(hasExpression1, hasExpression2); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); final List<HasTypeRef> typeRefList1 = asList(hasTypeRef1, hasTypeRef2); final List<HasTypeRef> typeRefList2 = asList(hasTypeRef3, hasTypeRef4); when(expression1.getHasTypeRefs()).thenReturn(typeRefList1); when(expression2.getHasTypeRefs()).thenReturn(typeRefList2); final List<HasTypeRef> actual = HasTypeRefHelper.getFlatHasTypeRefsFromExpressions(hasExpressions); final List<HasTypeRef> expected = asList(hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expected, actual); }
|
public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
HasTypeRefHelper { public static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions) { return hasTypeRefListExpressions .stream() .map(HasExpression::getExpression) .flatMap(typeRefs -> typeRefs.getHasTypeRefs().stream()) .collect(Collectors.toList()); } static List<HasTypeRef> getNotNullHasTypeRefs(final HasTypeRef hasTypeRef); static List<HasTypeRef> getFlatHasTypeRefs(final List<? extends HasTypeRefs> hasTypeRefList); static List<HasTypeRef> getFlatHasTypeRefsFromExpressions(final List<? extends HasExpression> hasTypeRefListExpressions); }
|
@Test public void testGetHasTypeRefs() { final List<HasTypeRef> actualHasTypeRefs = informationItemPrimary.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = singletonList(informationItemPrimary); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); }
|
InformationItemPrimary extends DMNModelInstrumentedBase implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } }
|
InformationItemPrimary extends DMNModelInstrumentedBase implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItemPrimary(); InformationItemPrimary(final Id id,
final Name name,
final QName typeRef); }
|
InformationItemPrimary extends DMNModelInstrumentedBase implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItemPrimary(); InformationItemPrimary(final Id id,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Name getName(); @Override void setName(final Name name); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); Id getId(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
InformationItemPrimary extends DMNModelInstrumentedBase implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItemPrimary(); InformationItemPrimary(final Id id,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Name getName(); @Override void setName(final Name name); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); Id getId(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final InformationItem column1 = mock(InformationItem.class); final InformationItem column2 = mock(InformationItem.class); final List<InformationItem> column = asList(column1, column2); final org.kie.workbench.common.dmn.api.definition.model.List row1 = mock(org.kie.workbench.common.dmn.api.definition.model.List.class); final org.kie.workbench.common.dmn.api.definition.model.List row2 = mock(org.kie.workbench.common.dmn.api.definition.model.List.class); final List<org.kie.workbench.common.dmn.api.definition.model.List> row = asList(row1, row2); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); doReturn(column).when(relation).getColumn(); doReturn(row).when(relation).getRow(); when(column1.getHasTypeRefs()).thenReturn(asList(hasTypeRef1)); when(column2.getHasTypeRefs()).thenReturn(asList(hasTypeRef2)); when(row1.getHasTypeRefs()).thenReturn(asList(hasTypeRef3)); when(row2.getHasTypeRefs()).thenReturn(asList(hasTypeRef4)); final List<HasTypeRef> actualHasTypeRefs = relation.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(relation, hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; }
|
Relation extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; } }
|
Relation extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); }
|
Relation extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Relation extends Expression { @Override public java.util.List<HasTypeRef> getHasTypeRefs() { final java.util.List<HasTypeRef> hasTypeRefs = super.getHasTypeRefs(); hasTypeRefs.addAll(getFlatHasTypeRefs(getColumn())); hasTypeRefs.addAll(getFlatHasTypeRefs(getRow())); return hasTypeRefs; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); static final int STATIC_COLUMNS; }
|
@Test public void testComponentWidths() { assertEquals(relation.getRequiredComponentWidthCount(), relation.getComponentWidths().size()); relation.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; }
|
Relation extends Expression { @Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; } }
|
Relation extends Expression { @Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); }
|
Relation extends Expression { @Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Relation extends Expression { @Override public int getRequiredComponentWidthCount() { return getColumn().size() + STATIC_COLUMNS; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); static final int STATIC_COLUMNS; }
|
@Test public void testCopy() { final Relation source = new Relation( new Id(RELATION_ID), new Description(DESCRIPTION), BuiltInType.BOOLEAN.asQName(), new ArrayList<>(), new ArrayList<>() ); final Relation target = source.copy(); assertNotNull(target); assertNotEquals(RELATION_ID, target.getId()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); assertTrue(target.getColumn().isEmpty()); assertTrue(target.getRow().isEmpty()); }
|
@Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRelation.componentWidths = new ArrayList<>(componentWidths); clonedRelation.column = column.stream().map(InformationItem::copy).collect(Collectors.toList()); clonedRelation.row = row.stream().map(List::copy).collect(Collectors.toList()); return clonedRelation; }
|
Relation extends Expression { @Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRelation.componentWidths = new ArrayList<>(componentWidths); clonedRelation.column = column.stream().map(InformationItem::copy).collect(Collectors.toList()); clonedRelation.row = row.stream().map(List::copy).collect(Collectors.toList()); return clonedRelation; } }
|
Relation extends Expression { @Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRelation.componentWidths = new ArrayList<>(componentWidths); clonedRelation.column = column.stream().map(InformationItem::copy).collect(Collectors.toList()); clonedRelation.row = row.stream().map(List::copy).collect(Collectors.toList()); return clonedRelation; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); }
|
Relation extends Expression { @Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRelation.componentWidths = new ArrayList<>(componentWidths); clonedRelation.column = column.stream().map(InformationItem::copy).collect(Collectors.toList()); clonedRelation.row = row.stream().map(List::copy).collect(Collectors.toList()); return clonedRelation; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
Relation extends Expression { @Override public Relation copy() { final Relation clonedRelation = new Relation(); clonedRelation.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedRelation.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedRelation.componentWidths = new ArrayList<>(componentWidths); clonedRelation.column = column.stream().map(InformationItem::copy).collect(Collectors.toList()); clonedRelation.row = row.stream().map(List::copy).collect(Collectors.toList()); return clonedRelation; } Relation(); Relation(final Id id,
final Description description,
final QName typeRef,
final java.util.List<InformationItem> column,
final java.util.List<List> row); @Override Relation copy(); java.util.List<InformationItem> getColumn(); java.util.List<List> getRow(); @Override java.util.List<HasTypeRef> getHasTypeRefs(); @Override int getRequiredComponentWidthCount(); @Override boolean equals(final Object o); @Override int hashCode(); static final int STATIC_COLUMNS; }
|
@Test public void testGetHasTypeRefs() { final InputClauseLiteralExpression literalExpression = mock(InputClauseLiteralExpression.class); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); doReturn(literalExpression).when(inputClause).getInputExpression(); when(literalExpression.getHasTypeRefs()).thenReturn(asList(hasTypeRef1, hasTypeRef2)); final List<HasTypeRef> actualHasTypeRefs = inputClause.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(hasTypeRef1, hasTypeRef2); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); } }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); InputClause copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); InputClauseLiteralExpression getInputExpression(); void setInputExpression(final InputClauseLiteralExpression value); InputClauseUnaryTests getInputValues(); void setInputValues(final InputClauseUnaryTests value); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(getNotNullHasTypeRefs(getInputExpression())); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); InputClause copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); InputClauseLiteralExpression getInputExpression(); void setInputExpression(final InputClauseLiteralExpression value); InputClauseUnaryTests getInputValues(); void setInputValues(final InputClauseUnaryTests value); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final InputClause source = new InputClause( new Id(INPUT_ID), new Description(DESCRIPTION), buildInputClauseLiteralExpression(), buildInputClauseUnaryTests() ); final InputClause target = source.copy(); assertNotNull(target); assertNotEquals(INPUT_ID, target.getId().getValue()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertNotNull(target.getInputExpression()); assertNotEquals(CLAUSE_ID, target.getInputExpression().getId()); assertEquals(TEXT, target.getInputExpression().getText().getValue()); assertEquals(DESCRIPTION, target.getInputExpression().getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getInputExpression().getTypeRef()); assertNotNull(target.getInputValues()); assertNotEquals(UNARY_ID, target.getInputValues().getId()); assertEquals(TEXT, target.getInputValues().getText().getValue()); assertEquals(ConstraintType.ENUMERATION, target.getInputValues().getConstraintType()); }
|
public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputClauseLiteralExpression::copy).orElse(null), Optional.ofNullable(inputValues).map(InputClauseUnaryTests::copy).orElse(null) ); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputClauseLiteralExpression::copy).orElse(null), Optional.ofNullable(inputValues).map(InputClauseUnaryTests::copy).orElse(null) ); } }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputClauseLiteralExpression::copy).orElse(null), Optional.ofNullable(inputValues).map(InputClauseUnaryTests::copy).orElse(null) ); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputClauseLiteralExpression::copy).orElse(null), Optional.ofNullable(inputValues).map(InputClauseUnaryTests::copy).orElse(null) ); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); InputClause copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); InputClauseLiteralExpression getInputExpression(); void setInputExpression(final InputClauseLiteralExpression value); InputClauseUnaryTests getInputValues(); void setInputValues(final InputClauseUnaryTests value); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
InputClause extends DMNElement implements HasTypeRefs,
DomainObject { public InputClause copy() { return new InputClause( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(inputExpression).map(InputClauseLiteralExpression::copy).orElse(null), Optional.ofNullable(inputValues).map(InputClauseUnaryTests::copy).orElse(null) ); } InputClause(); InputClause(final Id id,
final Description description,
final InputClauseLiteralExpression inputExpression,
final InputClauseUnaryTests inputValues); InputClause copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); InputClauseLiteralExpression getInputExpression(); void setInputExpression(final InputClauseLiteralExpression value); InputClauseUnaryTests getInputValues(); void setInputValues(final InputClauseUnaryTests value); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final Expression expression = mock(Expression.class); final InformationItem parameter = mock(InformationItem.class); final HasTypeRef hasTypeRef1 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef2 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef3 = mock(HasTypeRef.class); final HasTypeRef hasTypeRef4 = mock(HasTypeRef.class); doReturn(expression).when(binding).getExpression(); doReturn(parameter).when(binding).getParameter(); when(expression.getHasTypeRefs()).thenReturn(asList(hasTypeRef1, hasTypeRef2)); when(parameter.getHasTypeRefs()).thenReturn(asList(hasTypeRef3, hasTypeRef4)); final List<HasTypeRef> actualHasTypeRefs = binding.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = asList(hasTypeRef1, hasTypeRef2, hasTypeRef3, hasTypeRef4); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getParameter())); return hasTypeRefs; }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getParameter())); return hasTypeRefs; } }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getParameter())); return hasTypeRefs; } }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getParameter())); return hasTypeRefs; } Binding copy(); InformationItem getParameter(); void setParameter(final InformationItem value); @Override //Proxy for getParameter() to allow use as HasVariable InformationItem getVariable(); @Override //Proxy for setParameter(..) to allow use as HasVariable void setVariable(final InformationItem informationItem); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { @Override public List<HasTypeRef> getHasTypeRefs() { final List<HasTypeRef> hasTypeRefs = new ArrayList<>(); hasTypeRefs.addAll(getNotNullHasTypeRefs(getExpression())); hasTypeRefs.addAll(getNotNullHasTypeRefs(getParameter())); return hasTypeRefs; } Binding copy(); InformationItem getParameter(); void setParameter(final InformationItem value); @Override //Proxy for getParameter() to allow use as HasVariable InformationItem getVariable(); @Override //Proxy for setParameter(..) to allow use as HasVariable void setVariable(final InformationItem informationItem); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
@Test public void testCopy() { final Binding source = new Binding(); final InformationItem informationItem = new InformationItem(new Id(ITEM_ID), new Description(DESCRIPTION), new Name(INFORMATION_ITEM_NAME), BuiltInType.BOOLEAN.asQName()); source.setParameter(informationItem); final Binding target = source.copy(); assertNotNull(target); assertNull(target.getExpression()); assertNotNull(target.getParameter()); assertNotEquals(ITEM_ID, target.getParameter().getId().getValue()); assertEquals(DESCRIPTION, target.getParameter().getDescription().getValue()); assertEquals(INFORMATION_ITEM_NAME, target.getParameter().getName().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getParameter().getTypeRef()); }
|
public Binding copy() { final Binding bindingCloned = new Binding(); bindingCloned.parameter = Optional.ofNullable(parameter).map(InformationItem::copy).orElse(null); bindingCloned.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return bindingCloned; }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public Binding copy() { final Binding bindingCloned = new Binding(); bindingCloned.parameter = Optional.ofNullable(parameter).map(InformationItem::copy).orElse(null); bindingCloned.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return bindingCloned; } }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public Binding copy() { final Binding bindingCloned = new Binding(); bindingCloned.parameter = Optional.ofNullable(parameter).map(InformationItem::copy).orElse(null); bindingCloned.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return bindingCloned; } }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public Binding copy() { final Binding bindingCloned = new Binding(); bindingCloned.parameter = Optional.ofNullable(parameter).map(InformationItem::copy).orElse(null); bindingCloned.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return bindingCloned; } Binding copy(); InformationItem getParameter(); void setParameter(final InformationItem value); @Override //Proxy for getParameter() to allow use as HasVariable InformationItem getVariable(); @Override //Proxy for setParameter(..) to allow use as HasVariable void setVariable(final InformationItem informationItem); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
Binding extends DMNModelInstrumentedBase implements HasExpression,
HasTypeRefs,
HasVariable<InformationItem> { public Binding copy() { final Binding bindingCloned = new Binding(); bindingCloned.parameter = Optional.ofNullable(parameter).map(InformationItem::copy).orElse(null); bindingCloned.expression = Optional.ofNullable(expression).map(Expression::copy).orElse(null); return bindingCloned; } Binding copy(); InformationItem getParameter(); void setParameter(final InformationItem value); @Override //Proxy for getParameter() to allow use as HasVariable InformationItem getVariable(); @Override //Proxy for setParameter(..) to allow use as HasVariable void setVariable(final InformationItem informationItem); @Override Expression getExpression(); @Override void setExpression(final Expression value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override boolean equals(final Object o); @Override int hashCode(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
@Test public void testSetFocusWhenFocusIsNotEnabled() { widget.setFocus(false); verify(codeEditor, never()).focus(); }
|
@Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
MonacoEditorWidget extends TextBoxBase { @Override public void setFocus(final boolean focused) { getCodeEditor().ifPresent(c -> { if (focused) { c.focus(); } }); } MonacoEditorWidget(); void setCodeEditor(final MonacoStandaloneCodeEditor codeEditor); void setValue(final String value); @Override String getValue(); @Override void setFocus(final boolean focused); Optional<MonacoStandaloneCodeEditor> getCodeEditor(); @Override void setTabIndex(final int index); }
|
@Test public void testGetRelativeURIWhenStandalone() { final Path includedModelPath = mock(Path.class); when(includedModelPath.getFileName()).thenReturn("file1"); assertEquals("file1", pathsHelper.getRelativeURI(null, includedModelPath)); }
|
@Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath)); final org.uberfire.java.nio.file.Path nioIncluded = convertPath(normalizePath(includedModelPath)); final org.uberfire.java.nio.file.Path nioRelative = nioDMN.relativize(nioIncluded); final String strRelative = FilenameUtils.separatorsToUnix(nioRelative.toString()); if (strRelative.startsWith("../")) { return strRelative.substring(3); } else { return strRelative; } }
|
DMNPathsHelperImpl implements DMNPathsHelper { @Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath)); final org.uberfire.java.nio.file.Path nioIncluded = convertPath(normalizePath(includedModelPath)); final org.uberfire.java.nio.file.Path nioRelative = nioDMN.relativize(nioIncluded); final String strRelative = FilenameUtils.separatorsToUnix(nioRelative.toString()); if (strRelative.startsWith("../")) { return strRelative.substring(3); } else { return strRelative; } } }
|
DMNPathsHelperImpl implements DMNPathsHelper { @Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath)); final org.uberfire.java.nio.file.Path nioIncluded = convertPath(normalizePath(includedModelPath)); final org.uberfire.java.nio.file.Path nioRelative = nioDMN.relativize(nioIncluded); final String strRelative = FilenameUtils.separatorsToUnix(nioRelative.toString()); if (strRelative.startsWith("../")) { return strRelative.substring(3); } else { return strRelative; } } DMNPathsHelperImpl(); @Inject DMNPathsHelperImpl(final RefactoringQueryService refactoringQueryService,
final DMNImportTypesHelper importTypesHelper,
final @Named("ioStrategy") IOService ioService); }
|
DMNPathsHelperImpl implements DMNPathsHelper { @Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath)); final org.uberfire.java.nio.file.Path nioIncluded = convertPath(normalizePath(includedModelPath)); final org.uberfire.java.nio.file.Path nioRelative = nioDMN.relativize(nioIncluded); final String strRelative = FilenameUtils.separatorsToUnix(nioRelative.toString()); if (strRelative.startsWith("../")) { return strRelative.substring(3); } else { return strRelative; } } DMNPathsHelperImpl(); @Inject DMNPathsHelperImpl(final RefactoringQueryService refactoringQueryService,
final DMNImportTypesHelper importTypesHelper,
final @Named("ioStrategy") IOService ioService); @Override List<Path> getModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getDMNModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getPMMLModelsPaths(final WorkspaceProject workspaceProject); @Override String getRelativeURI(final Path dmnModelPath,
final Path includedModelPath); }
|
DMNPathsHelperImpl implements DMNPathsHelper { @Override public String getRelativeURI(final Path dmnModelPath, final Path includedModelPath) { if (Objects.isNull(dmnModelPath)) { return includedModelPath.getFileName(); } final org.uberfire.java.nio.file.Path nioDMN = convertPath(normalizePath(dmnModelPath)); final org.uberfire.java.nio.file.Path nioIncluded = convertPath(normalizePath(includedModelPath)); final org.uberfire.java.nio.file.Path nioRelative = nioDMN.relativize(nioIncluded); final String strRelative = FilenameUtils.separatorsToUnix(nioRelative.toString()); if (strRelative.startsWith("../")) { return strRelative.substring(3); } else { return strRelative; } } DMNPathsHelperImpl(); @Inject DMNPathsHelperImpl(final RefactoringQueryService refactoringQueryService,
final DMNImportTypesHelper importTypesHelper,
final @Named("ioStrategy") IOService ioService); @Override List<Path> getModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getDMNModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getPMMLModelsPaths(final WorkspaceProject workspaceProject); @Override String getRelativeURI(final Path dmnModelPath,
final Path includedModelPath); }
|
@Test public void testGetHasTypeRefs() { final List<HasTypeRef> actualHasTypeRefs = itemDefinition.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = singletonList(itemDefinition); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); }
|
ItemDefinition extends NamedElement implements HasTypeRef,
DynamicReadOnly { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } }
|
ItemDefinition extends NamedElement implements HasTypeRef,
DynamicReadOnly { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } ItemDefinition(); ItemDefinition(final Id id,
final Description description,
final Name name,
final QName typeRef,
final UnaryTests allowedValues,
final List<ItemDefinition> itemComponent,
final String typeLanguage,
final Boolean isCollection,
final Boolean allowOnlyVisualChange); }
|
ItemDefinition extends NamedElement implements HasTypeRef,
DynamicReadOnly { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } ItemDefinition(); ItemDefinition(final Id id,
final Description description,
final Name name,
final QName typeRef,
final UnaryTests allowedValues,
final List<ItemDefinition> itemComponent,
final String typeLanguage,
final Boolean isCollection,
final Boolean allowOnlyVisualChange); @Override QName getTypeRef(); @Override void setTypeRef(final QName value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); UnaryTests getAllowedValues(); void setAllowedValues(final UnaryTests value); List<ItemDefinition> getItemComponent(); String getTypeLanguage(); void setTypeLanguage(final String value); boolean isIsCollection(); void setIsCollection(final Boolean value); boolean isImported(); @Override boolean equals(final Object o); @Override int hashCode(); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); }
|
ItemDefinition extends NamedElement implements HasTypeRef,
DynamicReadOnly { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } ItemDefinition(); ItemDefinition(final Id id,
final Description description,
final Name name,
final QName typeRef,
final UnaryTests allowedValues,
final List<ItemDefinition> itemComponent,
final String typeLanguage,
final Boolean isCollection,
final Boolean allowOnlyVisualChange); @Override QName getTypeRef(); @Override void setTypeRef(final QName value); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); UnaryTests getAllowedValues(); void setAllowedValues(final UnaryTests value); List<ItemDefinition> getItemComponent(); String getTypeLanguage(); void setTypeLanguage(final String value); boolean isIsCollection(); void setIsCollection(final Boolean value); boolean isImported(); @Override boolean equals(final Object o); @Override int hashCode(); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); }
|
@Test public void testGetReadOnlyNotSet() { drgElement.setAllowOnlyVisualChange(false); checkIfItIsNotSet("something"); }
|
@Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
@Test public void testGetReadOnlyWithReadOnlyValuesAndAllowOnlyVisualChangesNotSet() { drgElement.setAllowOnlyVisualChange(false); for (final String readonlyField : READONLY_FIELDS) { checkIfItIsNotSet(readonlyField); } }
|
@Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
@Test public void testGetReadOnlyWithReadOnlyValues() { drgElement.setAllowOnlyVisualChange(true); for (final String readonlyField : READONLY_FIELDS) { checkIfIsReadOnly(readonlyField); } }
|
@Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
@Test public void testGetReadOnlyWithNotReadOnlyValues() { drgElement.setAllowOnlyVisualChange(true); checkIfItIsNotReadOnly("Font"); checkIfItIsNotReadOnly("Something"); }
|
@Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange) { this.allowOnlyVisualChange = allowOnlyVisualChange; } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
@Test public void testGetContentDefinitionId() { final String contentDefinitionId = "the id"; final Id id = mock(Id.class); when(drgElement.getId()).thenReturn(id); when(id.getValue()).thenReturn(contentDefinitionId); final String currentId = drgElement.getContentDefinitionId(); assertEquals(contentDefinitionId, currentId); }
|
@Override public String getContentDefinitionId() { return getId().getValue(); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public String getContentDefinitionId() { return getId().getValue(); } }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public String getContentDefinitionId() { return getId().getValue(); } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public String getContentDefinitionId() { return getId().getValue(); } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
DRGElement extends NamedElement implements DynamicReadOnly,
HasContentDefinitionId { @Override public String getContentDefinitionId() { return getId().getValue(); } DRGElement(); DRGElement(final Id id,
final Description description,
final Name name); @Override void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange); @Override boolean isAllowOnlyVisualChange(); @Override ReadOnly getReadOnly(final String fieldName); @Override String getContentDefinitionId(); @Override String getDiagramId(); @Override void setDiagramId(final String dmnDiagramId); @Override void setContentDefinitionId(final String contentDefinitionId); DocumentationLinksHolder getLinksHolder(); void setLinksHolder(final DocumentationLinksHolder linksHolder); }
|
@Test public void testCopy() { final ImportedValues source = new ImportedValues( NAMESPACE, new LocationURI(LOCATION_URI), IMPORT_TYPE, IMPORTED_ELEMENT, new ExpressionLanguage(EXPRESSION_LANGUAGE) ); final ImportedValues target = source.copy(); assertNotNull(target); assertEquals(NAMESPACE, target.getNamespace()); assertEquals(LOCATION_URI, target.getLocationURI().getValue()); assertEquals(IMPORT_TYPE, target.getImportType()); assertEquals(IMPORTED_ELEMENT, target.getImportedElement()); assertEquals(EXPRESSION_LANGUAGE, target.getExpressionLanguage().getValue()); }
|
public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImportedValues.locationURI = Optional.ofNullable(locationURI).map(LocationURI::copy).orElse(null); clonedImportedValues.importType = importType; clonedImportedValues.importedElement = importedElement; clonedImportedValues.expressionLanguage = Optional.ofNullable(expressionLanguage).map(ExpressionLanguage::copy).orElse(null); return clonedImportedValues; }
|
ImportedValues extends Import implements DMNPropertySet,
DomainObject { public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImportedValues.locationURI = Optional.ofNullable(locationURI).map(LocationURI::copy).orElse(null); clonedImportedValues.importType = importType; clonedImportedValues.importedElement = importedElement; clonedImportedValues.expressionLanguage = Optional.ofNullable(expressionLanguage).map(ExpressionLanguage::copy).orElse(null); return clonedImportedValues; } }
|
ImportedValues extends Import implements DMNPropertySet,
DomainObject { public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImportedValues.locationURI = Optional.ofNullable(locationURI).map(LocationURI::copy).orElse(null); clonedImportedValues.importType = importType; clonedImportedValues.importedElement = importedElement; clonedImportedValues.expressionLanguage = Optional.ofNullable(expressionLanguage).map(ExpressionLanguage::copy).orElse(null); return clonedImportedValues; } ImportedValues(); ImportedValues(final String namespace,
final LocationURI locationURI,
final String importType,
final String importedElement,
final ExpressionLanguage expressionLanguage); }
|
ImportedValues extends Import implements DMNPropertySet,
DomainObject { public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImportedValues.locationURI = Optional.ofNullable(locationURI).map(LocationURI::copy).orElse(null); clonedImportedValues.importType = importType; clonedImportedValues.importedElement = importedElement; clonedImportedValues.expressionLanguage = Optional.ofNullable(expressionLanguage).map(ExpressionLanguage::copy).orElse(null); return clonedImportedValues; } ImportedValues(); ImportedValues(final String namespace,
final LocationURI locationURI,
final String importType,
final String importedElement,
final ExpressionLanguage expressionLanguage); ImportedValues copy(); String getStunnerCategory(); Set<String> getStunnerLabels(); String getImportedElement(); void setImportedElement(final String importedElement); ExpressionLanguage getExpressionLanguage(); void setExpressionLanguage(final ExpressionLanguage expressionLanguage); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
ImportedValues extends Import implements DMNPropertySet,
DomainObject { public ImportedValues copy() { ImportedValues clonedImportedValues = new ImportedValues(); clonedImportedValues.id = new Id(); clonedImportedValues.namespace = namespace; clonedImportedValues.locationURI = Optional.ofNullable(locationURI).map(LocationURI::copy).orElse(null); clonedImportedValues.importType = importType; clonedImportedValues.importedElement = importedElement; clonedImportedValues.expressionLanguage = Optional.ofNullable(expressionLanguage).map(ExpressionLanguage::copy).orElse(null); return clonedImportedValues; } ImportedValues(); ImportedValues(final String namespace,
final LocationURI locationURI,
final String importType,
final String importedElement,
final ExpressionLanguage expressionLanguage); ImportedValues copy(); String getStunnerCategory(); Set<String> getStunnerLabels(); String getImportedElement(); void setImportedElement(final String importedElement); ExpressionLanguage getExpressionLanguage(); void setExpressionLanguage(final ExpressionLanguage expressionLanguage); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final List<HasTypeRef> actualHasTypeRefs = expression.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = singletonList(expression); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); abstract Expression copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override java.util.List<Double> getComponentWidths(); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); abstract Expression copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override java.util.List<Double> getComponentWidths(); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
@Test public void testComponentWidths() { assertEquals(expression.getRequiredComponentWidthCount(), expression.getComponentWidths().size()); expression.getComponentWidths().forEach(Assert::assertNull); }
|
@Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != requiredComponentWidthCount) { componentWidths = new ArrayList<>(requiredComponentWidthCount); IntStream.range(0, requiredComponentWidthCount).forEach(i -> componentWidths.add(null)); } return componentWidths; }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != requiredComponentWidthCount) { componentWidths = new ArrayList<>(requiredComponentWidthCount); IntStream.range(0, requiredComponentWidthCount).forEach(i -> componentWidths.add(null)); } return componentWidths; } }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != requiredComponentWidthCount) { componentWidths = new ArrayList<>(requiredComponentWidthCount); IntStream.range(0, requiredComponentWidthCount).forEach(i -> componentWidths.add(null)); } return componentWidths; } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != requiredComponentWidthCount) { componentWidths = new ArrayList<>(requiredComponentWidthCount); IntStream.range(0, requiredComponentWidthCount).forEach(i -> componentWidths.add(null)); } return componentWidths; } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); abstract Expression copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override java.util.List<Double> getComponentWidths(); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
Expression extends DMNElement implements HasTypeRef,
HasComponentWidths { @Override public java.util.List<Double> getComponentWidths() { final int requiredComponentWidthCount = getRequiredComponentWidthCount(); if (componentWidths.size() != requiredComponentWidthCount) { componentWidths = new ArrayList<>(requiredComponentWidthCount); IntStream.range(0, requiredComponentWidthCount).forEach(i -> componentWidths.add(null)); } return componentWidths; } Expression(); Expression(final Id id,
final Description description,
final QName typeRef); abstract Expression copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override java.util.List<Double> getComponentWidths(); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); }
|
@Test public void testGetHasTypeRefs() { final List<HasTypeRef> actualHasTypeRefs = informationItem.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = singletonList(informationItem); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); InformationItem copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); InformationItem copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testSetValue() { domElement.setValue(VALUE); verify(widget).setValue(VALUE); }
|
@Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
@Test public void testCopy() { final InformationItem source = new InformationItem(new Id(ITEM_ID), new Description(DESCRIPTION), new Name(INFORMATION_ITEM_NAME), BuiltInType.BOOLEAN.asQName()); final InformationItem target = source.copy(); assertNotNull(target); assertNotEquals(ITEM_ID, target.getId().getValue()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(INFORMATION_ITEM_NAME, target.getName().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); }
|
public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInformationItem.name = Optional.ofNullable(name).map(Name::copy).orElse(null); clonedInformationItem.nameHolder = Optional.ofNullable(nameHolder).map(NameHolder::copy).orElse(null); clonedInformationItem.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInformationItem.typeRefHolder = Optional.ofNullable(typeRefHolder).map(QNameHolder::copy).orElse(null); return clonedInformationItem; }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInformationItem.name = Optional.ofNullable(name).map(Name::copy).orElse(null); clonedInformationItem.nameHolder = Optional.ofNullable(nameHolder).map(NameHolder::copy).orElse(null); clonedInformationItem.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInformationItem.typeRefHolder = Optional.ofNullable(typeRefHolder).map(QNameHolder::copy).orElse(null); return clonedInformationItem; } }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInformationItem.name = Optional.ofNullable(name).map(Name::copy).orElse(null); clonedInformationItem.nameHolder = Optional.ofNullable(nameHolder).map(NameHolder::copy).orElse(null); clonedInformationItem.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInformationItem.typeRefHolder = Optional.ofNullable(typeRefHolder).map(QNameHolder::copy).orElse(null); return clonedInformationItem; } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInformationItem.name = Optional.ofNullable(name).map(Name::copy).orElse(null); clonedInformationItem.nameHolder = Optional.ofNullable(nameHolder).map(NameHolder::copy).orElse(null); clonedInformationItem.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInformationItem.typeRefHolder = Optional.ofNullable(typeRefHolder).map(QNameHolder::copy).orElse(null); return clonedInformationItem; } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); InformationItem copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
InformationItem extends NamedElement implements DMNPropertySet,
IsInformationItem { public InformationItem copy() { final InformationItem clonedInformationItem = new InformationItem(); clonedInformationItem.description = Optional.ofNullable(description).map(Description::copy).orElse(null); clonedInformationItem.name = Optional.ofNullable(name).map(Name::copy).orElse(null); clonedInformationItem.nameHolder = Optional.ofNullable(nameHolder).map(NameHolder::copy).orElse(null); clonedInformationItem.typeRef = Optional.ofNullable(typeRef).map(QName::copy).orElse(null); clonedInformationItem.typeRefHolder = Optional.ofNullable(typeRefHolder).map(QNameHolder::copy).orElse(null); return clonedInformationItem; } InformationItem(); InformationItem(final Id id,
final Description description,
final Name name,
final QName typeRef); String getStunnerCategory(); Set<String> getStunnerLabels(); InformationItem copy(); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override List<HasTypeRef> getHasTypeRefs(); QNameHolder getTypeRefHolder(); void setTypeRefHolder(final QNameHolder typeRefHolder); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testGetHasTypeRefs() { final List<HasTypeRef> actualHasTypeRefs = outputClauseLiteralExpression.getHasTypeRefs(); final List<HasTypeRef> expectedHasTypeRefs = singletonList(outputClauseLiteralExpression); assertEquals(expectedHasTypeRefs, actualHasTypeRefs); }
|
@Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); OutputClauseLiteralExpression copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Id getId(); @Override Description getDescription(); void setDescription(final Description description); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override Text getText(); @Override void setText(final Text text); @Override ImportedValues getImportedValues(); void setImportedValues(final ImportedValues importedValues); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { @Override public List<HasTypeRef> getHasTypeRefs() { return new ArrayList<>(singletonList(this)); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); OutputClauseLiteralExpression copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Id getId(); @Override Description getDescription(); void setDescription(final Description description); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override Text getText(); @Override void setText(final Text text); @Override ImportedValues getImportedValues(); void setImportedValues(final ImportedValues importedValues); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testCopy() { final OutputClauseLiteralExpression source = new OutputClauseLiteralExpression( new Id(CLAUSE_ID), new Description(DESCRIPTION), BuiltInType.BOOLEAN.asQName(), new Text(TEXT), null ); final OutputClauseLiteralExpression target = source.copy(); assertNotNull(target); assertNotEquals(CLAUSE_ID, target.getId()); assertEquals(DESCRIPTION, target.getDescription().getValue()); assertEquals(BuiltInType.BOOLEAN.asQName(), target.getTypeRef()); assertEquals(TEXT, target.getText().getValue()); assertNull(target.getImportedValues()); }
|
public OutputClauseLiteralExpression copy() { return new OutputClauseLiteralExpression( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(typeRef).map(QName::copy).orElse(null), Optional.ofNullable(text).map(Text::copy).orElse(null), Optional.ofNullable(importedValues).map(ImportedValues::copy).orElse(null) ); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { public OutputClauseLiteralExpression copy() { return new OutputClauseLiteralExpression( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(typeRef).map(QName::copy).orElse(null), Optional.ofNullable(text).map(Text::copy).orElse(null), Optional.ofNullable(importedValues).map(ImportedValues::copy).orElse(null) ); } }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { public OutputClauseLiteralExpression copy() { return new OutputClauseLiteralExpression( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(typeRef).map(QName::copy).orElse(null), Optional.ofNullable(text).map(Text::copy).orElse(null), Optional.ofNullable(importedValues).map(ImportedValues::copy).orElse(null) ); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { public OutputClauseLiteralExpression copy() { return new OutputClauseLiteralExpression( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(typeRef).map(QName::copy).orElse(null), Optional.ofNullable(text).map(Text::copy).orElse(null), Optional.ofNullable(importedValues).map(ImportedValues::copy).orElse(null) ); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); OutputClauseLiteralExpression copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Id getId(); @Override Description getDescription(); void setDescription(final Description description); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override Text getText(); @Override void setText(final Text text); @Override ImportedValues getImportedValues(); void setImportedValues(final ImportedValues importedValues); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
OutputClauseLiteralExpression extends DMNModelInstrumentedBase implements IsLiteralExpression,
HasText,
HasTypeRef,
DMNPropertySet,
DomainObject { public OutputClauseLiteralExpression copy() { return new OutputClauseLiteralExpression( new Id(), Optional.ofNullable(description).map(Description::copy).orElse(null), Optional.ofNullable(typeRef).map(QName::copy).orElse(null), Optional.ofNullable(text).map(Text::copy).orElse(null), Optional.ofNullable(importedValues).map(ImportedValues::copy).orElse(null) ); } OutputClauseLiteralExpression(); OutputClauseLiteralExpression(final Id id,
final Description description,
final QName typeRef,
final Text text,
final ImportedValues importedValues); OutputClauseLiteralExpression copy(); @Override List<HasTypeRef> getHasTypeRefs(); String getStunnerCategory(); Set<String> getStunnerLabels(); @Override Id getId(); @Override Description getDescription(); void setDescription(final Description description); @Override QName getTypeRef(); @Override void setTypeRef(final QName typeRef); @Override Text getText(); @Override void setText(final Text text); @Override ImportedValues getImportedValues(); void setImportedValues(final ImportedValues importedValues); @Override DMNModelInstrumentedBase asDMNModelInstrumentedBase(); @Override String getDomainObjectUUID(); @Override String getDomainObjectNameTranslationKey(); @Override boolean equals(final Object o); @Override int hashCode(); }
|
@Test public void testLoadDataObjectsWithNullWorkspaceProject() { assertThat(dataObjectsService.loadDataObjects(null)).isEmpty(); }
|
@Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
@Test public void testLoadDataObjectsWithNonNullWorkspaceProject() { assertThat(dataObjectsService.loadDataObjects(workspaceProject)).isEmpty(); }
|
@Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
MockDataObjectsServiceImpl extends DataObjectsServiceImpl { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
@Test public void testInit() { final Widget screenPanelWidget = mock(Widget.class); final MultiPageEditor multiPageEditor = mock(MultiPageEditor.class); final DocumentationPage documentationPage = mock(DocumentationPage.class); final Supplier<Boolean> isDataTypesTabActiveSupplier = () -> true; final Supplier<Integer> hashcodeSupplier = () -> 123; doReturn(hashcodeSupplier).when(editor).getHashcodeSupplier(); doReturn(isDataTypesTabActiveSupplier).when(editor).getIsDataTypesTabActiveSupplier(); doReturn(documentationPage).when(editor).getDocumentationPage(); when(kieView.getMultiPage()).thenReturn(multiPageEditor); when(screenPanelView.asWidget()).thenReturn(screenPanelWidget); editor.init(); verify(decisionNavigatorDock).init(AuthoringPerspective.PERSPECTIVE_ID); verify(diagramPreviewAndExplorerDock).init(AuthoringPerspective.PERSPECTIVE_ID); verify(diagramPropertiesDock).init(AuthoringPerspective.PERSPECTIVE_ID); verify(kieView).setPresenter(editor); verify(kieView).clear(); verify(kieView).addMainEditorPage(screenPanelWidget); verify(multiPageEditor).addPage(dataTypesPage); verify(multiPageEditor).addPage(includedModelsPage); verify(multiPageEditor).addPage(documentationPage); verify(editorSearchIndex).setIsDataTypesTabActiveSupplier(isDataTypesTabActiveSupplier); verify(editorSearchIndex).setCurrentAssetHashcodeSupplier(hashcodeSupplier); verify(editor).setupSearchComponent(); }
|
@PostConstruct public void init() { decisionNavigatorDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPropertiesDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPreviewAndExplorerDock.init(AuthoringPerspective.PERSPECTIVE_ID); kieView.setPresenter(this); kieView.clear(); kieView.addMainEditorPage(screenPanelView.asWidget()); kieView.getMultiPage().addPage(getDocumentationPage()); kieView.getMultiPage().addPage(dataTypesPage); kieView.getMultiPage().addPage(includedModelsPage); setupEditorSearchIndex(); setupSearchComponent(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @PostConstruct public void init() { decisionNavigatorDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPropertiesDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPreviewAndExplorerDock.init(AuthoringPerspective.PERSPECTIVE_ID); kieView.setPresenter(this); kieView.clear(); kieView.addMainEditorPage(screenPanelView.asWidget()); kieView.getMultiPage().addPage(getDocumentationPage()); kieView.getMultiPage().addPage(dataTypesPage); kieView.getMultiPage().addPage(includedModelsPage); setupEditorSearchIndex(); setupSearchComponent(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @PostConstruct public void init() { decisionNavigatorDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPropertiesDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPreviewAndExplorerDock.init(AuthoringPerspective.PERSPECTIVE_ID); kieView.setPresenter(this); kieView.clear(); kieView.addMainEditorPage(screenPanelView.asWidget()); kieView.getMultiPage().addPage(getDocumentationPage()); kieView.getMultiPage().addPage(dataTypesPage); kieView.getMultiPage().addPage(includedModelsPage); setupEditorSearchIndex(); setupSearchComponent(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @PostConstruct public void init() { decisionNavigatorDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPropertiesDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPreviewAndExplorerDock.init(AuthoringPerspective.PERSPECTIVE_ID); kieView.setPresenter(this); kieView.clear(); kieView.addMainEditorPage(screenPanelView.asWidget()); kieView.getMultiPage().addPage(getDocumentationPage()); kieView.getMultiPage().addPage(dataTypesPage); kieView.getMultiPage().addPage(includedModelsPage); setupEditorSearchIndex(); setupSearchComponent(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @PostConstruct public void init() { decisionNavigatorDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPropertiesDock.init(AuthoringPerspective.PERSPECTIVE_ID); diagramPreviewAndExplorerDock.init(AuthoringPerspective.PERSPECTIVE_ID); kieView.setPresenter(this); kieView.clear(); kieView.addMainEditorPage(screenPanelView.asWidget()); kieView.getMultiPage().addPage(getDocumentationPage()); kieView.getMultiPage().addPage(dataTypesPage); kieView.getMultiPage().addPage(includedModelsPage); setupEditorSearchIndex(); setupSearchComponent(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetHashcodeSupplier() { final Diagram diagram = new DiagramImpl("something", null); final Integer expectedHashcode = diagram.hashCode(); doReturn(diagram).when(editor).getDiagram(); final Integer actualHashcode = editor.getHashcodeSupplier().get(); assertEquals(expectedHashcode, actualHashcode); }
|
Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Integer> getHashcodeSupplier() { return () -> getDiagram().hashCode(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetIsDataTypesTabActiveSupplierWhenDataTypesTabIsActive() { final MultiPageEditor multiPageEditor = mock(MultiPageEditor.class); when(kieView.getMultiPage()).thenReturn(multiPageEditor); when(multiPageEditor.selectedPage()).thenReturn(DATA_TYPES_PAGE_INDEX); assertTrue(editor.getIsDataTypesTabActiveSupplier().get()); }
|
Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetIsDataTypesTabActiveSupplierWhenDataTypesTabIsNotActive() { final MultiPageEditor multiPageEditor = mock(MultiPageEditor.class); when(kieView.getMultiPage()).thenReturn(multiPageEditor); when(multiPageEditor.selectedPage()).thenReturn(DATA_TYPES_PAGE_INDEX + 1); assertFalse(editor.getIsDataTypesTabActiveSupplier().get()); }
|
Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Supplier<Boolean> getIsDataTypesTabActiveSupplier() { return () -> { final int selectedPageIndex = kieView.getMultiPage().selectedPage(); return selectedPageIndex == DATA_TYPES_PAGE_INDEX; }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testSetupSearchComponent() { final MultiPageEditor multiPageEditor = mock(MultiPageEditor.class); when(kieView.getMultiPage()).thenReturn(multiPageEditor); editor.setupSearchComponent(); verify(searchBarComponent).init(editorSearchIndex); verify(multiPageEditor).addTabBarWidget(searchBarComponentWidget); }
|
void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void setupSearchComponent() { final HTMLElement element = searchBarComponent.getView().getElement(); searchBarComponent.init(editorSearchIndex); kieView.getMultiPage().addTabBarWidget(getWidget(element)); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetValue() { domElement.getValue(); verify(widget).getValue(); }
|
@Override public String getValue() { return getWidget().getValue(); }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
TextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } TextAreaDOMElement(final TextArea widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
@Test public void testOnClose() { final Metadata metadata = mock(Metadata.class); doNothing().when(editor).destroyDock(); doNothing().when(editor).destroySession(); doReturn(metadata).when(editor).getMetadata(); editor.onClose(); verify(editor).destroyDock(); verify(editor).destroySession(); verify(dataTypesPage).disableShortcuts(); verify(dataTypesPage).disableShortcuts(); verify(dmnDiagramsSession).destroyState(metadata); }
|
@OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { @OnClose public void onClose() { destroyDock(); destroySession(); dataTypesPage.disableShortcuts(); dmnDiagramsSession.destroyState(getMetadata()); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testBuildMetadata() { final String defSetId = "defSetId"; final String shapeSetId = "shapeSetId"; final String title = "title"; final String uuid = "00001111"; doReturn(uuid).when(editor).uuid(); final MetadataImpl metadata = (MetadataImpl) editor.buildMetadata(defSetId, shapeSetId, title); assertEquals(title, metadata.getTitle()); assertEquals("default: assertEquals("default: assertEquals(shapeSetId, metadata.getShapeSetId()); assertEquals(defSetId, metadata.getDefinitionSetId()); }
|
Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(title) .setRoot(root) .setPath(PathFactory.newPath(title, root.toURI() + "/" + uuid() + ".dmn")) .setShapeSetId(shapeSetId) .build(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(title) .setRoot(root) .setPath(PathFactory.newPath(title, root.toURI() + "/" + uuid() + ".dmn")) .setShapeSetId(shapeSetId) .build(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(title) .setRoot(root) .setPath(PathFactory.newPath(title, root.toURI() + "/" + uuid() + ".dmn")) .setShapeSetId(shapeSetId) .build(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(title) .setRoot(root) .setPath(PathFactory.newPath(title, root.toURI() + "/" + uuid() + ".dmn")) .setShapeSetId(shapeSetId) .build(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Metadata buildMetadata(final String defSetId, final String shapeSetId, final String title) { final Path root = PathFactory.newPath(".", ROOT); return new MetadataImpl.MetadataImplBuilder(defSetId, definitionManager) .setTitle(title) .setRoot(root) .setPath(PathFactory.newPath(title, root.toURI() + "/" + uuid() + ".dmn")) .setShapeSetId(shapeSetId) .build(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testOpenDock() { final EditorSession session = mock(EditorSession.class); final AbstractCanvasHandler canvasHandler = mock(AbstractCanvasHandler.class); when(session.getCanvasHandler()).thenReturn(canvasHandler); editor.openDock(); verify(decisionNavigatorDock).open(); }
|
void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void openDock() { decisionNavigatorDock.open(); diagramPropertiesDock.open(); diagramPreviewAndExplorerDock.open(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testDestroyDock() { editor.destroyDock(); verify(decisionNavigatorDock).close(); verify(decisionNavigatorDock).resetContent(); }
|
void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void destroyDock() { decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); diagramPropertiesDock.close(); diagramPreviewAndExplorerDock.close(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testOnDataTypePageNavTabActiveEvent() { final MultiPageEditor multiPageEditor = mock(MultiPageEditor.class); when(kieView.getMultiPage()).thenReturn(multiPageEditor); editor.onDataTypePageNavTabActiveEvent(mock(DataTypePageTabActiveEvent.class)); verify(multiPageEditor).selectPage(DMNDiagramEditor.DATA_TYPES_PAGE_INDEX); }
|
public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetOnStartupDiagramEditorCallback() { final Diagram diagram = mock(Diagram.class); final Metadata metadata = mock(Metadata.class); final String title = "title"; doNothing().when(editor).updateTitle(anyString()); doReturn(diagram).when(editor).getDiagram(); when(diagram.getMetadata()).thenReturn(metadata); when(metadata.getTitle()).thenReturn(title); editor.getOnStartupDiagramEditorCallback().execute(); verify(editor).updateTitle(title); verify(documentationView).initialize(diagram); }
|
Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { Command getOnStartupDiagramEditorCallback() { return () -> { final Diagram diagram = getDiagram(); if (null != diagram) { updateTitle(diagram.getMetadata().getTitle()); documentationView.initialize(diagram); } }; } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testGetDocumentationPage() { final DocumentationPage documentationPage = editor.getDocumentationPage(); assertEquals("Documentation", documentationPage.getLabel()); assertEquals(documentationView, documentationPage.getDocumentationView()); }
|
DocumentationPage getDocumentationPage() { return new DocumentationPage(documentationView, "Documentation", () -> { }, () -> true); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { DocumentationPage getDocumentationPage() { return new DocumentationPage(documentationView, "Documentation", () -> { }, () -> true); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { DocumentationPage getDocumentationPage() { return new DocumentationPage(documentationView, "Documentation", () -> { }, () -> true); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { DocumentationPage getDocumentationPage() { return new DocumentationPage(documentationView, "Documentation", () -> { }, () -> true); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { DocumentationPage getDocumentationPage() { return new DocumentationPage(documentationView, "Documentation", () -> { }, () -> true); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testOnEditExpressionEvent() { editor.onEditExpressionEvent(mock(EditExpressionEvent.class)); verify(searchBarComponent).disableSearch(); }
|
void onEditExpressionEvent(final @Observes EditExpressionEvent event) { searchBarComponent.disableSearch(); if (isSameSession(event.getSession())) { final DMNSession session = sessionManager.getCurrentSession(); final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor(); sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed())); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void onEditExpressionEvent(final @Observes EditExpressionEvent event) { searchBarComponent.disableSearch(); if (isSameSession(event.getSession())) { final DMNSession session = sessionManager.getCurrentSession(); final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor(); sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed())); } } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void onEditExpressionEvent(final @Observes EditExpressionEvent event) { searchBarComponent.disableSearch(); if (isSameSession(event.getSession())) { final DMNSession session = sessionManager.getCurrentSession(); final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor(); sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed())); } } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void onEditExpressionEvent(final @Observes EditExpressionEvent event) { searchBarComponent.disableSearch(); if (isSameSession(event.getSession())) { final DMNSession session = sessionManager.getCurrentSession(); final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor(); sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed())); } } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { void onEditExpressionEvent(final @Observes EditExpressionEvent event) { searchBarComponent.disableSearch(); if (isSameSession(event.getSession())) { final DMNSession session = sessionManager.getCurrentSession(); final ExpressionEditorView.Presenter expressionEditor = session.getExpressionEditor(); sessionCommandManager.execute(session.getCanvasHandler(), new NavigateToExpressionEditorCommand(expressionEditor, presenter, sessionManager, sessionCommandManager, refreshFormPropertiesEvent, event.getNodeUUID(), event.getHasExpression(), event.getHasName(), event.isOnlyVisualChangeAllowed())); } } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testOnMultiPageEditorSelectedPageEvent() { editor.onMultiPageEditorSelectedPageEvent(mock(MultiPageEditorSelectedPageEvent.class)); verify(searchBarComponent).disableSearch(); }
|
public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { searchBarComponent.disableSearch(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { searchBarComponent.disableSearch(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testOnRefreshFormPropertiesEvent() { editor.onRefreshFormPropertiesEvent(mock(RefreshFormPropertiesEvent.class)); verify(searchBarComponent).disableSearch(); }
|
public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); } }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); }
|
DMNDiagramEditor implements KieEditorWrapperView.KieEditorWrapperPresenter { public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final SessionEditorPresenter<EditorSession> presenter,
final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
final Event<ChangeTitleWidgetEvent> changeTitleNotificationEvent,
final Event<SessionFocusedEvent> sessionFocusedEvent,
final DecisionNavigatorDock decisionNavigatorDock,
final DiagramEditorPropertiesDock diagramPropertiesDock,
final PreviewDiagramDock diagramPreviewAndExplorerDock,
final @DMNEditor DMNLayoutHelper layoutHelper,
final OpenDiagramLayoutExecutor layoutExecutor,
final DataTypesPage dataTypesPage,
final IncludedModelsPage includedModelsPage,
final @DMNEditor DocumentationView<Diagram> documentationView,
final DMNEditorSearchIndex editorSearchIndex,
final SearchBarComponent<DMNSearchableElement> searchBarComponent,
final DefinitionManager definitionManager,
final ClientFactoryService clientFactoryServices,
final DMNShowcaseDiagramService diagramService,
final MenuDevCommandsBuilder menuDevCommandsBuilder,
final ScreenPanelView screenPanelView,
final ScreenErrorView screenErrorView,
final KieEditorWrapperView kieView,
final MonacoFEELInitializer feelInitializer,
final DMNDiagramsSession dmnDiagramsSession,
final DMNMarshallerService marshallerService,
final DRDNameChanger drdNameChanger,
final LazyCanvasFocusUtils lazyCanvasFocusUtils); @PostConstruct void init(); void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event); @OnStartup void onStartup(final PlaceRequest placeRequest); void onDataTypeEditModeToggle(final @Observes DataTypeEditModeToggleEvent editModeToggleEvent); void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event); void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event); @OnFocus void onFocus(); @OnClose void onClose(); @WorkbenchMenu void getMenu(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchContextId String getMyContextRef(); @Override void onSourceTabSelected(); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); static final String EDITOR_ID; }
|
@Test public void testSetValue() { domElement.setValue(VALUE); verify(widget).setValue(VALUE); }
|
@Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public void setValue(final String value) { getWidget().setValue(value); this.originalValue = value; } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
@Test public void testLoadDataObjectsWithNullWorkspaceProject() { assertThat(dataObjectsService.loadDataObjects(null)).isEmpty(); }
|
@Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
@Test public void testLoadDataObjectsWithNonNullWorkspaceProject() { assertThat(dataObjectsService.loadDataObjects(workspaceProject)).isEmpty(); }
|
@Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
MockDataObjectsServiceImpl implements DataObjectsService { @Override public List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject) { return Collections.emptyList(); } @Override List<DataObject> loadDataObjects(final WorkspaceProject workspaceProject); }
|
@Test public void testDefaultChannelPosition() { when(context.getChannel()).thenReturn(Channel.DEFAULT); assertEquals(UberfireDockPosition.WEST, dock.position()); }
|
@Override protected UberfireDockPosition position() { return getUberfireDockPosition(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
@Test public void testOnlineChannelPosition() { when(context.getChannel()).thenReturn(Channel.ONLINE); assertEquals(UberfireDockPosition.WEST, dock.position()); }
|
@Override protected UberfireDockPosition position() { return getUberfireDockPosition(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
@Test public void testVSCodeChannelPosition() { when(context.getChannel()).thenReturn(Channel.VSCODE); assertEquals(UberfireDockPosition.EAST, dock.position()); }
|
@Override protected UberfireDockPosition position() { return getUberfireDockPosition(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
@Test public void testGitHubChannelPosition() { when(context.getChannel()).thenReturn(Channel.GITHUB); assertEquals(UberfireDockPosition.EAST, dock.position()); }
|
@Override protected UberfireDockPosition position() { return getUberfireDockPosition(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
KogitoDecisionNavigatorDock extends DecisionNavigatorDock { @Override protected UberfireDockPosition position() { return getUberfireDockPosition(); } KogitoDecisionNavigatorDock(); @Inject KogitoDecisionNavigatorDock(final UberfireDocks uberfireDocks,
final DecisionNavigatorPresenter decisionNavigatorPresenter,
final TranslationService translationService,
final EditorContextProvider context); @Override void init(final String perspective); @Override void open(); @Override void close(); }
|
@Test public void fromJSInteropToMetadata_EmptyModels() { final PMMLDocumentData pmmlDocumentDataMock = PowerMockito.mock(PMMLDocumentData.class); PowerMockito.when(pmmlDocumentDataMock.getModels()).thenReturn(Collections.emptyList()); final PMMLDocumentMetadata metadata = PMMLMarshallerConverter.fromJSInteropToMetadata(PATH, pmmlDocumentDataMock); assertEquals(PATH, metadata.getPath()); assertEquals(UNDEFINED, metadata.getName()); assertEquals(0, metadata.getModels().size()); }
|
public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); static final String ACTIVE; }
|
@Test public void fromJSInteropToMetadata_WithModels() { final String modelName = "LinearRegression"; final List<PMMLModelData> modelsData = new ArrayList<>(); final PMMLFieldData fieldData1Mock = PowerMockito.mock(PMMLFieldData.class); final PMMLFieldData fieldData2Mock = PowerMockito.mock(PMMLFieldData.class); PowerMockito.when(fieldData1Mock.getFieldName()).thenReturn("field1"); PowerMockito.when(fieldData1Mock.getUsageType()).thenReturn(PMMLMarshallerConverter.ACTIVE); PowerMockito.when(fieldData2Mock.getFieldName()).thenReturn("field2"); PowerMockito.when(fieldData2Mock.getUsageType()).thenReturn(PMMLMarshallerConverter.ACTIVE); final List<PMMLFieldData> fieldsData = Arrays.asList(fieldData1Mock, fieldData2Mock); final PMMLModelData pmmlModelDataMock = PowerMockito.mock(PMMLModelData.class); modelsData.add(pmmlModelDataMock); PowerMockito.when(pmmlModelDataMock.getModelName()).thenReturn(modelName); PowerMockito.when(pmmlModelDataMock.getFields()).thenReturn(fieldsData); PMMLDocumentData pmmlDocumentDataMock = PowerMockito.mock(PMMLDocumentData.class); PowerMockito.when(pmmlDocumentDataMock.getModels()).thenReturn(modelsData); PMMLDocumentMetadata metadata = PMMLMarshallerConverter.fromJSInteropToMetadata(PATH, pmmlDocumentDataMock); assertEquals(PATH, metadata.getPath()); assertEquals(UNDEFINED, metadata.getName()); assertEquals(1, metadata.getModels().size()); assertEquals(modelName, metadata.getModels().get(0).getName()); ArrayList<PMMLParameterMetadata> fields = new ArrayList<>(metadata.getModels().get(0).getInputParameters()); Collections.sort(fields, Comparator.comparing(PMMLParameterMetadata::getName)); assertEquals(2, fields.size()); assertEquals("field1", fields.get(0).getName()); assertEquals("field2", fields.get(1).getName()); }
|
public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); static final String ACTIVE; }
|
@Test public void fromJSInteropToMetadata_WithModelsAndPredictedFields() { final String modelName = "LinearRegression"; final List<PMMLModelData> modelsData = new ArrayList<>(); final PMMLFieldData fieldData1Mock = PowerMockito.mock(PMMLFieldData.class); final PMMLFieldData fieldData2Mock = PowerMockito.mock(PMMLFieldData.class); PowerMockito.when(fieldData1Mock.getFieldName()).thenReturn("field1"); PowerMockito.when(fieldData1Mock.getUsageType()).thenReturn("predictive"); PowerMockito.when(fieldData2Mock.getFieldName()).thenReturn("field2"); PowerMockito.when(fieldData2Mock.getUsageType()).thenReturn(PMMLMarshallerConverter.ACTIVE); final List<PMMLFieldData> fieldsData = Arrays.asList(fieldData1Mock, fieldData2Mock); final PMMLModelData pmmlModelDataMock = PowerMockito.mock(PMMLModelData.class); modelsData.add(pmmlModelDataMock); PowerMockito.when(pmmlModelDataMock.getModelName()).thenReturn(modelName); PowerMockito.when(pmmlModelDataMock.getFields()).thenReturn(fieldsData); PMMLDocumentData pmmlDocumentDataMock = PowerMockito.mock(PMMLDocumentData.class); PowerMockito.when(pmmlDocumentDataMock.getModels()).thenReturn(modelsData); PMMLDocumentMetadata metadata = PMMLMarshallerConverter.fromJSInteropToMetadata(PATH, pmmlDocumentDataMock); assertEquals(PATH, metadata.getPath()); assertEquals(UNDEFINED, metadata.getName()); assertEquals(1, metadata.getModels().size()); assertEquals(modelName, metadata.getModels().get(0).getName()); assertEquals(1, metadata.getModels().get(0).getInputParameters().size()); ArrayList<PMMLParameterMetadata> fields = new ArrayList<>(metadata.getModels().get(0).getInputParameters()); Collections.sort(fields, Comparator.comparing(PMMLParameterMetadata::getName)); assertEquals(1, fields.size()); assertEquals("field2", fields.get(0).getName()); }
|
public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); }
|
PMMLMarshallerConverter { public static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath, final PMMLDocumentData pmmlDocumentData) { final List<PMMLModelMetadata> models = new ArrayList<>(); pmmlDocumentData.getModels().stream().forEach(pmmlModelData -> { final String modelName = pmmlModelData.getModelName(); final Set<PMMLParameterMetadata> fields = pmmlModelData.getFields().stream().filter(field -> isValidInputField(field.getUsageType())) .map(field -> new PMMLParameterMetadata(field.getFieldName())).collect(Collectors.toSet()); models.add(new PMMLModelMetadata(modelName, fields)); }); return new PMMLDocumentMetadata(pmmlFilePath, DMNImportTypes.PMML.getDefaultNamespace(), models); } private PMMLMarshallerConverter(); static PMMLDocumentMetadata fromJSInteropToMetadata(final String pmmlFilePath,
final PMMLDocumentData pmmlDocumentData); static final String ACTIVE; }
|
@Test public void testLoadModels() { final ServiceCallback<List<IncludedModel>> callback = newServiceCallback(actual -> assertThat(actual).isEmpty()); service.loadModels(path, callback); }
|
@Override public void loadModels(final Path path, final ServiceCallback<List<IncludedModel>> callback) { kogitoImportsHelper.loadModels(callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadModels(final Path path, final ServiceCallback<List<IncludedModel>> callback) { kogitoImportsHelper.loadModels(callback); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadModels(final Path path, final ServiceCallback<List<IncludedModel>> callback) { kogitoImportsHelper.loadModels(callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadModels(final Path path, final ServiceCallback<List<IncludedModel>> callback) { kogitoImportsHelper.loadModels(callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadModels(final Path path, final ServiceCallback<List<IncludedModel>> callback) { kogitoImportsHelper.loadModels(callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testGetValue() { domElement.getValue(); verify(widget).getValue(); }
|
@Override public String getValue() { return getWidget().getValue(); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { @Override public String getValue() { return getWidget().getValue(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
@Test public void testLoadNodesFromImports() { final List<DMNIncludedModel> includedModels = Collections.emptyList(); final ServiceCallback<List<DMNIncludedNode>> callback = newServiceCallback(actual -> assertThat(actual).isEmpty()); service.loadNodesFromImports(includedModels, callback); }
|
@Override public void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback) { kogitoImportsHelper.loadNodesFromModels(includedModels, callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback) { kogitoImportsHelper.loadNodesFromModels(includedModels, callback); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback) { kogitoImportsHelper.loadNodesFromModels(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback) { kogitoImportsHelper.loadNodesFromModels(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadNodesFromImports(final List<DMNIncludedModel> includedModels, final ServiceCallback<List<DMNIncludedNode>> callback) { kogitoImportsHelper.loadNodesFromModels(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testLoadPMMLDocumentsFromImports_EmptyModels() { final List<PMMLIncludedModel> includedModels = Collections.emptyList(); final ServiceCallback<List<PMMLDocumentMetadata>> callback = newServiceCallback(actual -> assertThat(actual).isEmpty()); service.loadPMMLDocumentsFromImports(path, includedModels, callback); verify(importsHelperKogito, times(1)).getPMMLDocumentsMetadataFromFiles(eq(Collections.emptyList()), eq(callback)); }
|
@Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testLoadPMMLDocumentsFromImports() { final List<PMMLIncludedModel> includedModels = Arrays.asList(new PMMLIncludedModel("test-name", "", "test.pmml", PMML.getDefaultNamespace(), 0)); final ServiceCallback<List<PMMLDocumentMetadata>> callback = newServiceCallback(actual -> assertThat(actual).isEmpty()); service.loadPMMLDocumentsFromImports(path, includedModels, callback); verify(importsHelperKogito, times(1)).getPMMLDocumentsMetadataFromFiles(eq(includedModels), eq(callback)); }
|
@Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadPMMLDocumentsFromImports(final Path path, final List<PMMLIncludedModel> includedModels, final ServiceCallback<List<PMMLDocumentMetadata>> callback) { kogitoImportsHelper.getPMMLDocumentsMetadataFromFiles(includedModels, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testLoadItemDefinitionsByNamespace() { final ServiceCallback<List<ItemDefinition>> callback = newServiceCallback(actual -> assertThat(actual).isEmpty()); service.loadItemDefinitionsByNamespace(MODEL_NAME, NAMESPACE, callback); }
|
@Override public void loadItemDefinitionsByNamespace(final String modelName, final String namespace, final ServiceCallback<List<ItemDefinition>> callback) { kogitoImportsHelper.getImportedItemDefinitionsByNamespaceAsync( modelName, namespace, callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadItemDefinitionsByNamespace(final String modelName, final String namespace, final ServiceCallback<List<ItemDefinition>> callback) { kogitoImportsHelper.getImportedItemDefinitionsByNamespaceAsync( modelName, namespace, callback); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadItemDefinitionsByNamespace(final String modelName, final String namespace, final ServiceCallback<List<ItemDefinition>> callback) { kogitoImportsHelper.getImportedItemDefinitionsByNamespaceAsync( modelName, namespace, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadItemDefinitionsByNamespace(final String modelName, final String namespace, final ServiceCallback<List<ItemDefinition>> callback) { kogitoImportsHelper.getImportedItemDefinitionsByNamespaceAsync( modelName, namespace, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void loadItemDefinitionsByNamespace(final String modelName, final String namespace, final ServiceCallback<List<ItemDefinition>> callback) { kogitoImportsHelper.getImportedItemDefinitionsByNamespaceAsync( modelName, namespace, callback); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testParseFEELList() { final ServiceCallback<List<String>> callback = newServiceCallback(actual -> assertThat(actual).containsOnly("\"a\"", "\"b\"")); service.parseFEELList("\"a\", \"b\"", callback); }
|
@Override public void parseFEELList(final String source, final ServiceCallback<List<String>> callback) { callback.onSuccess(FEELListParser.parse(source)); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseFEELList(final String source, final ServiceCallback<List<String>> callback) { callback.onSuccess(FEELListParser.parse(source)); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseFEELList(final String source, final ServiceCallback<List<String>> callback) { callback.onSuccess(FEELListParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseFEELList(final String source, final ServiceCallback<List<String>> callback) { callback.onSuccess(FEELListParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseFEELList(final String source, final ServiceCallback<List<String>> callback) { callback.onSuccess(FEELListParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testParseRangeValue() { final ServiceCallback<RangeValue> callback = newServiceCallback(actual -> { assertThat(actual.getIncludeStartValue()).isTrue(); assertThat(actual.getIncludeEndValue()).isTrue(); assertThat(actual.getStartValue()).isEqualTo("1"); assertThat(actual.getEndValue()).isEqualTo("2"); }); service.parseRangeValue("[1..2]", callback); }
|
@Override public void parseRangeValue(final String source, final ServiceCallback<RangeValue> callback) { callback.onSuccess(FEELRangeParser.parse(source)); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseRangeValue(final String source, final ServiceCallback<RangeValue> callback) { callback.onSuccess(FEELRangeParser.parse(source)); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseRangeValue(final String source, final ServiceCallback<RangeValue> callback) { callback.onSuccess(FEELRangeParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseRangeValue(final String source, final ServiceCallback<RangeValue> callback) { callback.onSuccess(FEELRangeParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void parseRangeValue(final String source, final ServiceCallback<RangeValue> callback) { callback.onSuccess(FEELRangeParser.parse(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testIsValidVariableName() { final ServiceCallback<Boolean> trueCallback = newServiceCallback(actual -> assertThat(actual).isTrue()); final ServiceCallback<Boolean> falseCallback = newServiceCallback(actual -> assertThat(actual).isFalse()); service.isValidVariableName("", falseCallback); service.isValidVariableName("anything", trueCallback); service.isValidVariableName(" accepted in business central ", trueCallback); }
|
@Override public void isValidVariableName(final String source, final ServiceCallback<Boolean> callback) { callback.onSuccess(FEELSyntaxLightValidator.isVariableNameValid(source)); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void isValidVariableName(final String source, final ServiceCallback<Boolean> callback) { callback.onSuccess(FEELSyntaxLightValidator.isVariableNameValid(source)); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void isValidVariableName(final String source, final ServiceCallback<Boolean> callback) { callback.onSuccess(FEELSyntaxLightValidator.isVariableNameValid(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void isValidVariableName(final String source, final ServiceCallback<Boolean> callback) { callback.onSuccess(FEELSyntaxLightValidator.isVariableNameValid(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void isValidVariableName(final String source, final ServiceCallback<Boolean> callback) { callback.onSuccess(FEELSyntaxLightValidator.isVariableNameValid(source)); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testGetTimeZones() { final ServiceCallback<List<DMNSimpleTimeZone>> callback = newServiceCallback(actual -> { assertThat(actual).isNotNull(); assertThat(actual).isNotEmpty(); }); service.getTimeZones(callback); }
|
@Override public void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback) { callback.onSuccess(timeZonesProvider.getTimeZones()); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback) { callback.onSuccess(timeZonesProvider.getTimeZones()); } }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback) { callback.onSuccess(timeZonesProvider.getTimeZones()); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback) { callback.onSuccess(timeZonesProvider.getTimeZones()); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
DMNClientServicesProxyImpl implements DMNClientServicesProxy { @Override public void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback) { callback.onSuccess(timeZonesProvider.getTimeZones()); } @Inject DMNClientServicesProxyImpl(final TimeZonesProvider timeZonesProvider,
final DMNMarshallerImportsClientHelper kogitoImportsHelper); @Override void loadModels(final Path path,
final ServiceCallback<List<IncludedModel>> callback); @Override void loadNodesFromImports(final List<DMNIncludedModel> includedModels,
final ServiceCallback<List<DMNIncludedNode>> callback); @Override void loadPMMLDocumentsFromImports(final Path path,
final List<PMMLIncludedModel> includedModels,
final ServiceCallback<List<PMMLDocumentMetadata>> callback); @Override void loadItemDefinitionsByNamespace(final String modelName,
final String namespace,
final ServiceCallback<List<ItemDefinition>> callback); @Override void parseFEELList(final String source,
final ServiceCallback<List<String>> callback); @Override void parseRangeValue(final String source,
final ServiceCallback<RangeValue> callback); @Override void isValidVariableName(final String source,
final ServiceCallback<Boolean> callback); @Override void getTimeZones(final ServiceCallback<List<DMNSimpleTimeZone>> callback); @Override void loadDataObjects(final ServiceCallback<List<DataObject>> callback); }
|
@Test public void testParsing() { final List<String> actual = FEELListParser.parse(input); assertThat(actual.size()).isEqualTo(expected.length); assertThat(actual).containsExactly(expected); }
|
public static List<String> parse(final String input) { final List<String> items = new ArrayList<>(); if (Objects.isNull(input)) { return items; } int start = 0; boolean inQuotes = false; for (int current = 0; current < input.length(); current++) { if (input.charAt(current) == '\"') { inQuotes = !inQuotes; } final boolean atLastChar = (current == input.length() - 1); if (atLastChar) { items.add(input.substring(start).trim()); } else if (input.charAt(current) == ',' && !inQuotes) { items.add(input.substring(start, current).trim()); start = current + 1; } } return items; }
|
FEELListParser { public static List<String> parse(final String input) { final List<String> items = new ArrayList<>(); if (Objects.isNull(input)) { return items; } int start = 0; boolean inQuotes = false; for (int current = 0; current < input.length(); current++) { if (input.charAt(current) == '\"') { inQuotes = !inQuotes; } final boolean atLastChar = (current == input.length() - 1); if (atLastChar) { items.add(input.substring(start).trim()); } else if (input.charAt(current) == ',' && !inQuotes) { items.add(input.substring(start, current).trim()); start = current + 1; } } return items; } }
|
FEELListParser { public static List<String> parse(final String input) { final List<String> items = new ArrayList<>(); if (Objects.isNull(input)) { return items; } int start = 0; boolean inQuotes = false; for (int current = 0; current < input.length(); current++) { if (input.charAt(current) == '\"') { inQuotes = !inQuotes; } final boolean atLastChar = (current == input.length() - 1); if (atLastChar) { items.add(input.substring(start).trim()); } else if (input.charAt(current) == ',' && !inQuotes) { items.add(input.substring(start, current).trim()); start = current + 1; } } return items; } }
|
FEELListParser { public static List<String> parse(final String input) { final List<String> items = new ArrayList<>(); if (Objects.isNull(input)) { return items; } int start = 0; boolean inQuotes = false; for (int current = 0; current < input.length(); current++) { if (input.charAt(current) == '\"') { inQuotes = !inQuotes; } final boolean atLastChar = (current == input.length() - 1); if (atLastChar) { items.add(input.substring(start).trim()); } else if (input.charAt(current) == ',' && !inQuotes) { items.add(input.substring(start, current).trim()); start = current + 1; } } return items; } static List<String> parse(final String input); }
|
FEELListParser { public static List<String> parse(final String input) { final List<String> items = new ArrayList<>(); if (Objects.isNull(input)) { return items; } int start = 0; boolean inQuotes = false; for (int current = 0; current < input.length(); current++) { if (input.charAt(current) == '\"') { inQuotes = !inQuotes; } final boolean atLastChar = (current == input.length() - 1); if (atLastChar) { items.add(input.substring(start).trim()); } else if (input.charAt(current) == ',' && !inQuotes) { items.add(input.substring(start, current).trim()); start = current + 1; } } return items; } static List<String> parse(final String input); }
|
@Test public void testParsing() { final RangeValue actual = FEELRangeParser.parse(input); assertThat(actual).isEqualTo(expected); }
|
public static RangeValue parse(final String input) { if (Objects.isNull(input)) { return new RangeValue(); } final String trimmedInput = input.trim(); if (!hasLeadingAndEndingParenthesis(trimmedInput)) { return new RangeValue(); } final boolean includeStartValue = trimmedInput.startsWith(INCLUDE_START); final boolean includeEndValue = trimmedInput.endsWith(INCLUDE_END); boolean inQuotes = false; String startValue = ""; String endValue = ""; for (int current = 0; current < trimmedInput.length(); current++) { if (trimmedInput.charAt(current) == '\"') { inQuotes = !inQuotes; } if (isSeparator(current, inQuotes, trimmedInput)) { startValue = trimmedInput.substring(1, current).trim(); endValue = trimmedInput.substring(current + SEPARATOR_LENGTH, trimmedInput.length() - 1).trim(); if (isRangeValueValid(startValue) && isRangeValueValid(endValue)) { final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(includeStartValue); rangeValue.setStartValue(startValue); rangeValue.setIncludeEndValue(includeEndValue); rangeValue.setEndValue(endValue); return rangeValue; } } } return new RangeValue(); }
|
FEELRangeParser { public static RangeValue parse(final String input) { if (Objects.isNull(input)) { return new RangeValue(); } final String trimmedInput = input.trim(); if (!hasLeadingAndEndingParenthesis(trimmedInput)) { return new RangeValue(); } final boolean includeStartValue = trimmedInput.startsWith(INCLUDE_START); final boolean includeEndValue = trimmedInput.endsWith(INCLUDE_END); boolean inQuotes = false; String startValue = ""; String endValue = ""; for (int current = 0; current < trimmedInput.length(); current++) { if (trimmedInput.charAt(current) == '\"') { inQuotes = !inQuotes; } if (isSeparator(current, inQuotes, trimmedInput)) { startValue = trimmedInput.substring(1, current).trim(); endValue = trimmedInput.substring(current + SEPARATOR_LENGTH, trimmedInput.length() - 1).trim(); if (isRangeValueValid(startValue) && isRangeValueValid(endValue)) { final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(includeStartValue); rangeValue.setStartValue(startValue); rangeValue.setIncludeEndValue(includeEndValue); rangeValue.setEndValue(endValue); return rangeValue; } } } return new RangeValue(); } }
|
FEELRangeParser { public static RangeValue parse(final String input) { if (Objects.isNull(input)) { return new RangeValue(); } final String trimmedInput = input.trim(); if (!hasLeadingAndEndingParenthesis(trimmedInput)) { return new RangeValue(); } final boolean includeStartValue = trimmedInput.startsWith(INCLUDE_START); final boolean includeEndValue = trimmedInput.endsWith(INCLUDE_END); boolean inQuotes = false; String startValue = ""; String endValue = ""; for (int current = 0; current < trimmedInput.length(); current++) { if (trimmedInput.charAt(current) == '\"') { inQuotes = !inQuotes; } if (isSeparator(current, inQuotes, trimmedInput)) { startValue = trimmedInput.substring(1, current).trim(); endValue = trimmedInput.substring(current + SEPARATOR_LENGTH, trimmedInput.length() - 1).trim(); if (isRangeValueValid(startValue) && isRangeValueValid(endValue)) { final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(includeStartValue); rangeValue.setStartValue(startValue); rangeValue.setIncludeEndValue(includeEndValue); rangeValue.setEndValue(endValue); return rangeValue; } } } return new RangeValue(); } }
|
FEELRangeParser { public static RangeValue parse(final String input) { if (Objects.isNull(input)) { return new RangeValue(); } final String trimmedInput = input.trim(); if (!hasLeadingAndEndingParenthesis(trimmedInput)) { return new RangeValue(); } final boolean includeStartValue = trimmedInput.startsWith(INCLUDE_START); final boolean includeEndValue = trimmedInput.endsWith(INCLUDE_END); boolean inQuotes = false; String startValue = ""; String endValue = ""; for (int current = 0; current < trimmedInput.length(); current++) { if (trimmedInput.charAt(current) == '\"') { inQuotes = !inQuotes; } if (isSeparator(current, inQuotes, trimmedInput)) { startValue = trimmedInput.substring(1, current).trim(); endValue = trimmedInput.substring(current + SEPARATOR_LENGTH, trimmedInput.length() - 1).trim(); if (isRangeValueValid(startValue) && isRangeValueValid(endValue)) { final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(includeStartValue); rangeValue.setStartValue(startValue); rangeValue.setIncludeEndValue(includeEndValue); rangeValue.setEndValue(endValue); return rangeValue; } } } return new RangeValue(); } static RangeValue parse(final String input); }
|
FEELRangeParser { public static RangeValue parse(final String input) { if (Objects.isNull(input)) { return new RangeValue(); } final String trimmedInput = input.trim(); if (!hasLeadingAndEndingParenthesis(trimmedInput)) { return new RangeValue(); } final boolean includeStartValue = trimmedInput.startsWith(INCLUDE_START); final boolean includeEndValue = trimmedInput.endsWith(INCLUDE_END); boolean inQuotes = false; String startValue = ""; String endValue = ""; for (int current = 0; current < trimmedInput.length(); current++) { if (trimmedInput.charAt(current) == '\"') { inQuotes = !inQuotes; } if (isSeparator(current, inQuotes, trimmedInput)) { startValue = trimmedInput.substring(1, current).trim(); endValue = trimmedInput.substring(current + SEPARATOR_LENGTH, trimmedInput.length() - 1).trim(); if (isRangeValueValid(startValue) && isRangeValueValid(endValue)) { final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(includeStartValue); rangeValue.setStartValue(startValue); rangeValue.setIncludeEndValue(includeEndValue); rangeValue.setEndValue(endValue); return rangeValue; } } } return new RangeValue(); } static RangeValue parse(final String input); }
|
@Test public void testSetupElements() { doNothing().when(domElement).setupContainerComponent(); doNothing().when(domElement).setupInternalComponent(); domElement.setupElements(); verify(domElement).setupContainerComponent(); verify(domElement).setupInternalComponent(); }
|
public void setupElements() { setupContainerComponent(); setupInternalComponent(); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { public void setupElements() { setupContainerComponent(); setupInternalComponent(); } }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { public void setupElements() { setupContainerComponent(); setupInternalComponent(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { public void setupElements() { setupContainerComponent(); setupInternalComponent(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
Focusable { public void setupElements() { setupContainerComponent(); setupInternalComponent(); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
final GridLayer gridLayer,
final GridWidget gridWidget,
final SessionManager sessionManager,
final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
final Function<GridCellTuple, Command> hasNoValueCommand,
final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value); }
|
@Test public void testValidationWhenVariableNameIsEmpty() { assertThat(FEELSyntaxLightValidator.isVariableNameValid("")).isFalse(); assertThat(FEELSyntaxLightValidator.isVariableNameValid(null)).isFalse(); }
|
public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); }
|
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); } }
|
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); } }
|
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); } static boolean isVariableNameValid(final String variableName); }
|
FEELSyntaxLightValidator { public static boolean isVariableNameValid(final String variableName) { return notEmpty(variableName) && firstCharacterIsValid(variableName) && firstWordIsNotReservedKeyword(variableName) && doesNotContainForbiddenChars(variableName); } static boolean isVariableNameValid(final String variableName); }
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.