private Vertex getSimpleVertex(VertexRef reference) { if (reference != null && getNamespace().equals(reference.getNamespace())) { return m_vertexMap.get(reference.getId()); } return null; }
public SearchResult(VertexRef vertexRef, boolean collapsible, boolean collapsed) { this(vertexRef.getNamespace(), vertexRef.getId(), vertexRef.getLabel(), null, collapsible, collapsed); }
@Override public String getNamespace() { return vertexRef.getNamespace(); }
@Override public Integer apply(VertexRef input) { return Integer.valueOf(input.getId()); } }));
public NavigationMenuItem(GraphProvider targetGraphProvider, VertexRef sourceVertex) { this.targetGraphProvider = Objects.requireNonNull(targetGraphProvider); this.sourceVertex = Objects.requireNonNull(sourceVertex); setLabel(String.format("%s (%s)", targetGraphProvider.getTopologyProviderInfo().getName(), sourceVertex.getLabel())); }
@Override public String getNamespace() { return vertexRef.getNamespace(); }
private void removeVertices(List<? extends VertexRef> vertices) { for(VertexRef vertex : vertices) { LoggerFactory.getLogger(this.getClass()).trace("Removing vertex: {}", vertex); // Remove the vertex from the main map m_vertexMap.remove(vertex.getId()); // Remove the vertex from the parent and child maps m_children.remove(vertex); m_parents.remove(vertex); } }
public NavigationMenuItem(GraphProvider targetGraphProvider, VertexRef sourceVertex) { this.targetGraphProvider = Objects.requireNonNull(targetGraphProvider); this.sourceVertex = Objects.requireNonNull(sourceVertex); setLabel(String.format("%s (%s)", targetGraphProvider.getTopologyProviderInfo().getName(), sourceVertex.getLabel())); }
private Vertex getSimpleVertex(VertexRef reference) { if (reference != null && getVertexNamespace().equals(reference.getNamespace())) { return m_vertexMap.get(reference.getId()); } return null; }
public SearchResult(VertexRef vertexRef, boolean collapsible, boolean collapsed) { this(vertexRef.getNamespace(), vertexRef.getId(), vertexRef.getLabel(), null, collapsible, collapsed); }
@Override public String getNamespace() { return vertexRef.getNamespace(); }
private void removeVertices(List<? extends VertexRef> vertices) { for(VertexRef vertex : vertices) { LoggerFactory.getLogger(this.getClass()).trace("Removing vertex: {}", vertex); // Remove the vertex from the main map m_vertexMap.remove(vertex.getId()); // Remove the vertex from the parent and child maps m_children.remove(vertex); m_parents.remove(vertex); } }
@Override public String toString() { StringBuffer retval = new StringBuffer(); retval.append("Edge:").append(getNamespace()).append(":").append(getId()); retval.append("["); retval.append("label=").append(getLabel()); retval.append(","); retval.append("styleName=").append(getStyleName()); retval.append(","); retval.append("source=").append(getSource().getVertex().getLabel()); retval.append(","); retval.append("target=").append(getTarget().getVertex().getLabel()); retval.append("]"); return retval.toString(); } }
private Vertex getSimpleVertex(VertexRef reference) { if (reference != null && getNamespace().equals(reference.getNamespace())) { return m_vertexMap.get(reference.getId()); } return null; }
public SearchResult(VertexRef vertexRef) { this(vertexRef.getNamespace(), vertexRef.getId(), vertexRef.getLabel(), null); }
@Override protected boolean contributeTo(VertexRef vertexRef, GraphContainer container) { return vertexRef.getNamespace().equals(BusinessServicesTopologyProvider.TOPOLOGY_NAMESPACE); }
public AbstractEdge(String namespace, String id, VertexRef source, VertexRef target) { super(namespace, id); if (source == null) { throw new IllegalArgumentException("Source is null"); } else if (target == null) { throw new IllegalArgumentException("Target is null"); } m_source = new SimpleConnector(namespace, id + "::" + source.getId(), source.getLabel() + " Connector", source, this); m_target = new SimpleConnector(namespace, id + "::" + target.getId(), target.getLabel() + " Connector", target, this); m_styleName = "edge"; }