oms3.dsl.Buildable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oms Show documentation
Show all versions of oms Show documentation
Object Modeling System (OMS) is a pure Java object-oriented framework.
OMS v3.+ is a highly interoperable and lightweight modeling framework for component-based model and simulation development on multiple platforms.
/*
* $Id: Buildable.java 50798ee5e25c 2013-01-09 [email protected] $
*
* This file is part of the Object Modeling System (OMS),
* 2007-2012, Olaf David and others, Colorado State University.
*
* OMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, version 2.1.
*
* OMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with OMS. If not, see .
*/
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 final Buildable LEAF = new Buildable() {
@Override
public Buildable create(Object name, Object value) {
throw new Error("Cannot add to a leaf node.");
}
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy