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

org.technologybrewery.fermenter.mda.metamodel.element.Enumeration Maven / Gradle / Ivy

The newest version!
package org.technologybrewery.fermenter.mda.metamodel.element;

import java.util.List;

/**
 * Defines the contract for an enumeration that contains multiple constants (i.e., enums).
 */
public interface Enumeration extends NamespacedMetamodel {

    /**
     * Returns the longest size of the enum constants provided in this model to all this type to have a restricted size
     * in input or persistence contexts.
     * 
     * @return length of longest enum
     */
    Integer getMaxLength();

    /**
     * Returns the enum instances within this enumeration.
     * 
     * @return enums
     */
    List getEnums();

    /**
     * Returns true if the constants are named (no values associated).
     * 
     * @return true if named
     */
    boolean isNamed();

    /**
     * Returns true if the constants are valued (values associated).
     * 
     * @return true if values
     */
    boolean isValued();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy