View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  package org.apache.commons.scxml.semantics;
    18
    19  /***
    20   * Errors reported by the default SCXMLSemantics implementation.
    21   *
    22   */
    23  public class ErrorConstants {
    24
    25      /***
    26       * Missing initial state for a composite state or for the scxml root.
    27       *
    28       * @see org.apache.commons.scxml.model.SCXML#getInitialState()
    29       * @see org.apache.commons.scxml.model.State#getInitial()
    30       */
    31      public static final String NO_INITIAL = "NO_INITIAL";
    32
    33      /***
    34       * An initial state for a composite state whose Transition does not.
    35       * Map to a descendant of the composite state.
    36       *
    37       */
    38      public static final String ILLEGAL_INITIAL = "ILLEGAL_INITIAL";
    39
    40      /***
    41       * Unknown action - unsupported executable content. List of supported.
    42       * actions: assign, cancel, elseif, else, if, log, send, var
    43       */
    44      public static final String UNKNOWN_ACTION = "UNKNOWN_ACTION";
    45
    46      /***
    47       * Illegal state machine configuration.
    48       * Either a parallel exists which does not have all its AND sub-states
    49       * active or there are multiple enabled OR states on the same level.
    50       */
    51      public static final String ILLEGAL_CONFIG = "ILLEGAL_CONFIG";
    52
    53      /***
    54       * Non-deterministic situation has occured - there are more than
    55       * one enabled transitions in conflict.
    56       *
    57       * @deprecated Non deterministic behavior is now resolved using
    58       *             state heirarchy and document order priorities.
    59       */
    60      public static final String NON_DETERMINISTIC = "NON_DETERMINISTIC";
    61
    62      /***
    63       * A variable referred to by assign name attribute is undefined.
    64       */
    65      public static final String UNDEFINED_VARIABLE = "UNDEFINED_VARIABLE";
    66
    67      /***
    68       * An expression language error.
    69       */
    70      public static final String EXPRESSION_ERROR = "EXPRESSION_ERROR";
    71
    72      //---------------------------------------------- STATIC CONSTANTS ONLY
    73
    74      /***
    75       * Discourage instantiation.
    76       */
    77      private ErrorConstants() {
    78          super(); // humor checkstyle
    79      }
    80
    81  }