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

org.objectweb.fractal.mind.adl.ADLErrors Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2009 STMicroelectronics
 *
 * This file is part of "Mind Compiler" 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 Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see .
 *
 * Contact: [email protected]
 *
 * Authors: Matthieu Leclercq
 * Contributors: 
 */

package org.objectweb.fractal.mind.adl;

import static org.objectweb.fractal.adl.error.ErrorTemplateValidator.validErrorTemplate;

import org.objectweb.fractal.adl.error.ErrorTemplate;

/**
 * Enumeration of Errors that can be raised by the ADL-front-end.
 */
public enum ADLErrors implements ErrorTemplate {

  /** */
  INVALID_DEFINITION_NAME("\"%s\" is not a valid definition name",
      ""),

  /** */
  INVALID_REFERENCE_NOT_A_TYPE(
      "Invalid reference: %s does not refer to a type definition.",
      ""),

  /** */
  INVALID_REFERENCE_NOT_A_COMPOSITE(
      "Invalid reference: %s does not refer to a composite.", ""),

  /** */
  INVALID_REFERENCE_NOT_A_PRIMITIVE(
      "Invalid reference: %s does not refer to a primitive.", ""),

  /** */
  INVALID_REFERENCE_FOR_SUB_COMPONENT(
      "Invalid reference: %s refer to a type or an abstract definition.",
      ""),

  /** */
  INVALID_SUB_COMPONENT("Invalid sub-component."),

  /** */
  INVALID_REFERENCE_MISSING_TEMPLATE_VALUE(
      "Invalid reference: missing type arguments."),

  /** */
  INVALID_REFERENCE_TOO_MANY_TEMPLATE_VALUE(
      "Invalid reference: too many type arguments."),

  /** */
  INVALID_REFERENCE_ANY_TEMPLATE_VALUE(
      "Invalid reference: \"any\" type argument is not allowed here."),

  /** */
  INVALID_ANY_TEMPLATE_VALUE(
      "Invalid reference: sub-component \"%s\" must be overridden or \"any\" type argument is not allowed here.",
      ""),

  /** */
  INVALID_REFERENCE_NO_SUCH_TEMPLATE_VARIABLE(
      "Invalid reference: no such type parameter \"%s\".", ""),

  /** */
  INVALID_REFERENCE_NO_TEMPLATE_VARIABLE(
      "Invalid reference: %s has no type parameter.", ""),

  /** */
  UNDEFINED_TEMPALTE_VARIABLE(
      "Type parameter \"%s\" is not defined in current definition",
      ""),

  /** */
  DUPLICATED_TEMPALTE_VARIABLE_NAME("Duplicated type parameter \"%s\"",
      ""),

  /** */
  INVALID_TEMPLATE_VALUE_TYPE_DEFINITON(
      "Invalid type argument: %s is a type or abstract definition.",
      "