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

com.alipay.sofa.common.profile.enumeration.internal.EnumConstant Maven / Gradle / Ivy

The newest version!
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.alipay.sofa.common.profile.enumeration.internal;

/**
 *
 * @author luoguimu123
 * @version $Id: EnumConstant.java, v 0.1 2017年08月01日 上午11:57 luoguimu123 Exp $
 */
public interface EnumConstant {
    String CREATE_ENUM_TYPE_METHOD_NAME      = "createEnumType";
    String FLAG_SET_INNER_CLASS_NAME         = "FlagSet";
    String ENUM_NAME_IS_EMPTY                = "The Enum name must not be empty";
    String ENUM_VALUE_IS_NULL                = "The Enum value must not be null";
    String DUPLICATED_ENUM_NAME              = "Duplicated name \"{0}\" of Enum class \"{1}\"";
    String ENUM_CLASS_IS_NULL                = "The Enum class must not be null";
    String CLASS_IS_NOT_ENUM                 = "Class \"{0}\" is not a subclass of Enum";
    String FAILED_CREATING_ENUM_TYPE         = "Could not create EnumType for class \"{0}\"";
    String COMPARE_TYPE_MISMATCH             = "Could not compare object of \"{0}\" with object of \"{1}\"";
    String VALUE_OUT_OF_RANGE                = "The flag value is out of range";
    String ENUM_IS_NOT_A_FLAG                = "The Enum class \"{0}\" is not an implementation of Flags";
    String CREATE_FLAG_SET_IS_UNSUPPORTED    = "Creating FlagSet is not supported by Enum class \"{0}\".  Make sure there is a static inner class \"{0}.FlagSet\" with a constructor without parameters";
    String ILLEGAL_CLASS                     = "Class \"{0}\" is not a subclass of \"{1}\"";
    String ILLEGAL_INTERFACE                 = "Class \"{0}\" is not an implementation of \"{1}\"";
    String CLONE_NOT_SUPPORTED               = "Clone not supported by class \"{0}\"";
    String COMPARE_UNDERLYING_CLASS_MISMATCH = "Could not compare FlagSet of underlying class \"{0}\" with FlagSet of underlying class \"{1}\"";
    String FLAGS_IS_NULL                     = "Flags must not be null";
    String FLAT_SET_VALUE_IS_NULL            = "FlagSet value must not be null";
    String ILLEGAL_FLAGS_OBJECT              = "Flags must be of \"{0}\" or \"{1}\"";
    String FLAG_SET_IS_IMMUTABLE             = "FlagSet is immutable";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy