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

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

There is a newer version: 3.0
Show newest version
/*
 * #%L
 * EUGene :: EUGene
 * %%
 * Copyright (C) 2004 - 2012 CodeLutin Chatellier Eric
 * %%
 * 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;

import java.util.Collection;

/**
 * Abstraction for the class node of object model trees.
 * This object presents all information concerning the given class.
 *
 * Created: 14 janv. 2004
 *
 * @author Cédric Pineau - [email protected]
 */
public interface ObjectModelClass extends ObjectModelClassifier {

    /**
     * Returns all parent classes for this class.
     *
     * @return a Collection containing all parent ObjectModelClass for this class.
     */
    Collection getSuperclasses();

    /**
     * Returns all inner classes for this class.
     *
     * @return a Collection containing all inner ObjectModelClass for this class.
     */
    Collection getInnerClassifiers();

    /**
     * Returns the discriminator for the given superclass.
     * (name of the inheritance relation).
     *
     * @param superclass super class to get discriminator
     * @return the discriminator for the given superclass as a String if it exists, null otherwise.
     */
    String getDiscriminator(ObjectModelClass superclass);

    /**
     * Returns all known direct specialized classes for this class.
     *
     * @return a Collection containing all known direct specialized ObjectModelClass for this class.
     */
    Collection getSpecialisations();

    /**
     * Returns all known direct specialized classes for this class for the
     * specified discriminator.
     *
     * @param discriminator discriminator to get specialisations
     * @return a Collection containing all known direct specialized
     * ObjectModelClass for this class for the specified discriminator.
     */
    Collection getSpecialisations(String discriminator);

    /**
     * Returns whether this class is abstract or not.
     *
     * @return a boolean indicating whether this class is abstract or not.
     */
    boolean isAbstract();

//    /**
//    * Returns whether this class is inner an other class or not.
//    *
//    * @return a boolean indicating whether this class is inner an other class or not.
//    */
//    boolean isInner();

    /**
     * Returns all operations defined on all Super class extended by this
     * classifier, directly or indirectly. and all interface implemented by the
     * super class.
     *
     * @param distinct if this boolean is true only distinct operation
     *                 are add to list.
     * @return a Collection of ObjectModelOperation
     */
    Collection getAllSuperclassOperations(boolean distinct);

} //ObjectModelClass




© 2015 - 2024 Weber Informatics LLC | Privacy Policy