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

edu.uci.ics.jung.io.graphml.EndpointMetadata Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2008, The JUNG Authors
 *
 * All rights reserved.
 *
 * This software is open-source under the BSD license; see either
 * "license.txt" or
 * https://github.com/jrtom/jung/blob/master/LICENSE for a description.
 */

package edu.uci.ics.jung.io.graphml;

/**
 * Metadata structure for the 'endpoint' GraphML element.
 *
 * @author Nathan Mittler - [email protected]
 *
 * @see "http://graphml.graphdrawing.org/specification.html"
 */
public class EndpointMetadata extends AbstractMetadata {

    public enum EndpointType {
        IN,
        OUT,
        UNDIR
    }
    
    private String id;
    private String port;
    private String node;
    private String description;
    private EndpointType endpointType = EndpointType.UNDIR;
    
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getPort() {
        return port;
    }
    public void setPort(String port) {
        this.port = port;
    }
    public String getNode() {
        return node;
    }
    public void setNode(String node) {
        this.node = node;
    }
    public EndpointType getEndpointType() {
        return endpointType;
    }
    public void setEndpointType(EndpointType endpointType) {
        this.endpointType = endpointType;
    }        
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public MetadataType getMetadataType() {
        return MetadataType.ENDPOINT;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy