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

io.github.leheyue.magicapi.nebula.response.Element Maven / Gradle / Ivy

There is a newer version: 2.1.1.6.7
Show newest version
package io.github.leheyue.magicapi.nebula.response;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        property = "type")
@JsonSubTypes(value = {
        @JsonSubTypes.Type(value = EdgeElement.class, name = "edge"),
        @JsonSubTypes.Type(value = Vertex.class, name = "vertex")
})
public abstract class Element {

    protected String type;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy