KeyFor.java

package org.thewonderlemming.c4plantuml.graphml.model.builder;

/**
 * Holds values for the <for> property of the <key> tag.
 *
 * @author thewonderlemming
 *
 */
public enum KeyFor {

    /**
     * The key is usable by any element of the GraphML.
     */
    ALL("all"),

    /**
     * The key is targeted at <edge> tags.
     */
    EDGE("edge"),

    /**
     * The key is targeted at <graph> tags..
     */
    GRAPH("graph"),

    /**
     * The key is targeted at <node> tags.
     */
    NODE("node");


    private final String value;


    private KeyFor(final String value) {
        this.value = value;
    }

    /**
     * Returns the value of the <for> property.
     *
     * @return the value of the for property.
     */
    public String getValue() {
        return this.value;
    }
}