All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.visallo.web.clientapi.model.ClientApiVertex Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy