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

oms3.dsl.Buildable Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
package oms3.dsl;

/**
 * Anything that can be built using a GenericBuilder
 * 
 * @author od
 */
public interface Buildable {

    /**
     * Create a node.
     * 
     * @param name the node name
     * @param value  the value
     * @return a new Subnode
     */
    Buildable create(Object name, Object value);

    /**
     * Default LEAF
     */
    public static Buildable LEAF = new Buildable() {

        @Override
        public Buildable create(Object name, Object value) {
            throw new Error("Cannot add to a leaf node.");
        }
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy