@Override public Optional<Status> map(Status source) { return Optional.of(getStatus()); }
@Override public Void visit(SetTo setTo) { setTo.setStatus((Status) m_mapFunctionSeveritySelect.getValue()); return null; } });
@Override public Void visit(SetTo setTo) { setTo.setStatus((Status) m_mapFunctionSeveritySelect.getValue()); return null; } });
@Override public Optional<Status> map(Status source) { return Optional.of(getStatus()); }
@Override public String toString() { return com.google.common.base.Objects.toStringHelper(this) .add("severity", getStatus()) .toString(); }
@Override public String toString() { return com.google.common.base.Objects.toStringHelper(this) .add("severity", getStatus()) .toString(); }
@Override public String visit(SetTo function) { return String.format("%s (%s)", function.getClass().getSimpleName(), function.getStatus().getLabel()); } });
@Override public Void visit(SetTo setTo) { m_mapFunctionSeveritySelect.setValue(((SetTo) edge.getMapFunction()).getStatus()); return null; } });
@Override public Void visit(SetTo setTo) { m_mapFunctionSeveritySelect.setValue(((SetTo) edge.getMapFunction()).getStatus()); return null; } });
public static String describeEdge(final Edge edge) { String edgePrefix = getEdgePrefix(edge); String itemDescription = getChildDescription(edge); return String.format("%s: %s, Map: %s, Weight: %s", edgePrefix, itemDescription, edge.getMapFunction().getClass()== SetTo.class ? String.format("%s (%s)", edge.getMapFunction().getClass().getSimpleName(), ((SetTo)edge.getMapFunction()).getStatus()) : edge.getMapFunction().getClass().getSimpleName(), edge.getWeight()); } }
public static String describeEdge(final Edge edge) { String edgePrefix = getEdgePrefix(edge); String itemDescription = getChildDescription(edge); return String.format("%s: %s, Map: %s, Weight: %s", edgePrefix, itemDescription, edge.getMapFunction().getClass()== SetTo.class ? String.format("%s (%s)", edge.getMapFunction().getClass().getSimpleName(), ((SetTo)edge.getMapFunction()).getStatus()) : edge.getMapFunction().getClass().getSimpleName(), edge.getWeight()); } }
@Override public AbstractMapFunctionEntity visit(SetTo setTo) { SetToEntity entity = new SetToEntity(); entity.setSeverity(SeverityMapper.toSeverity(setTo.getStatus())); return entity; } };