org.visallo.web.clientapi.model.ClientApiVertex Maven / Gradle / Ivy
package org.visallo.web.clientapi.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.ArrayList;
import java.util.List;
@JsonTypeName("vertex")
public class ClientApiVertex extends ClientApiElement {
private String conceptType;
private List edgeLabels = null;
private List edgeInfos = null;
public String getConceptType() {
return conceptType;
}
public void setConceptType(String conceptType) {
this.conceptType = conceptType;
}
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getEdgeLabels() {
return edgeLabels;
}
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getEdgeInfos() {
return edgeInfos;
}
public void addEdgeLabel(String edgeLabel) {
if (edgeLabels == null) {
edgeLabels = new ArrayList();
}
edgeLabels.add(edgeLabel);
}
public void addEdgeInfo(ClientApiEdgeInfo edgeInfo) {
if (edgeInfos == null) {
edgeInfos = new ArrayList();
}
edgeInfos.add(edgeInfo);
}
}