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

org.nuiton.eugene.models.object.ObjectModelParameter Maven / Gradle / Ivy

/*
 * #%L
 * EUGene :: EUGene
 * 
 * $Id: ObjectModelParameter.java 863 2010-04-15 14:22:49Z tchemit $
 * $HeadURL: http://svn.nuiton.org/svn/eugene/tags/eugene-2.0.2/eugene/src/main/java/org/nuiton/eugene/models/object/ObjectModelParameter.java $
 * %%
 * Copyright (C) 2004 - 2010 CodeLutin
 * %%
 * This program 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, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program 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 General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */

package org.nuiton.eugene.models.object;

/**
* Abstraction for the parameter node of object model trees.
* This object presents all information concerning the given parameter.
* 
* Created: 14 janv. 2004
*
* @author Cédric Pineau 
* Copyright Code Lutin
* @version $Revision: 863 $
*
* Last update : $Date: 2010-04-15 16:22:49 +0200 (jeu., 15 avril 2010) $
* by : $Author: tchemit $
*/
public interface ObjectModelParameter extends ObjectModelElement {

    /**
     * Returns the type of this parameter.
     *
     * @return the type of this parameter.
     */
    String getType();

    /**
     * Returns the minimal multiplicity of this parameter.
     * The -1 value means infinite.
     *
     * @return the minimal multiplicity of this parameter.
     */
    int getMinMultiplicity();

    /**
     * Returns the maximal multiplicity of this parameter.
     * The -1 value means infinite.
     *
     * @return the maximal multiplicity of this parameter.
     */
    int getMaxMultiplicity();

    /**
     * true if this parameter is isOrdered
     *
     * @return {@code true} if this parameter is isOrdered
     */
    boolean isOrdered();

    /**
     * true if this parameter is isUnique
     *
     * @return {@code true} if this parameter is isUnique
     */
    boolean isUnique();

    /**
     * default value of this parameter
     *
     * @return a String for the defaultValue (must be interpreted depending on the parameter type)
     */
    String getDefaultValue();

} //ObjectModelParameter




© 2015 - 2025 Weber Informatics LLC | Privacy Policy