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

android.databinding.tool.processing.ErrorMessages Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
/*
 * Copyright (C) 2015 The Android Open Source Project
 *
 * Licensed 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 android.databinding.tool.processing;

public class ErrorMessages {
    public static final String INCLUDE_INSIDE_MERGE =
            "Data binding does not support include elements as direct children of a merge element.";
    public static final String UNDEFINED_VARIABLE =
            "Identifiers must have user defined types from the XML file. %s is missing it";
    public static final String CANNOT_FIND_SETTER_CALL =
            "Cannot find the setter for attribute '%s' with parameter type %s on %s.";
    public static final String CANNOT_RESOLVE_TYPE =
            "Cannot resolve type for %s";
    public static final String MULTI_CONFIG_LAYOUT_CLASS_NAME_MISMATCH =
            "Classname (%s) does not match the class name defined for layout(%s) in other"
                    + " configurations";
    public static final String MULTI_CONFIG_VARIABLE_TYPE_MISMATCH =
            "Variable declaration (%s - %s) does not match the type defined for layout(%s) in other"
                    + " configurations";
    public static final String MULTI_CONFIG_IMPORT_TYPE_MISMATCH =
            "Import declaration (%s - %s) does not match the import defined for layout(%s) in other"
                    + " configurations";
    public static final String MULTI_CONFIG_ID_USED_AS_IMPORT =
            "Cannot use the same id (%s) for a View and an include tag.";
    public static final String ROOT_TAG_NOT_SUPPORTED = "android:tag is not supported on root " +
            "elements of data bound layouts unless targeting API version 14 or greater. Value " +
            "is '%s'";
    public static final String SYNTAX_ERROR = "Syntax error: %s";
    public static final String CANNOT_FIND_GETTER_CALL =
            "Cannot find the getter for attribute '%s' with value type %s on %s.";
    public static final String EXPRESSION_NOT_INVERTIBLE =
            "The expression %s cannot cannot be inverted: %s";
    public static final String TWO_WAY_EVENT_ATTRIBUTE =
            "The attribute %s is a two-way binding event attribute and cannot be assigned.";
    public static final String CANNOT_FIND_ABSTRACT_METHOD =
            "Cannot find the proper callback class for %s. Tried %s but it has %d abstract methods,"
                    + " should have %d abstract methods.";
    public static final String CALLBACK_ARGUMENT_COUNT_MISMATCH = "The callback %s#%s has %s"
            + " methods but the lambda defined has %d. It should have either 0 or equal number of"
            + " parameters.";
    public static final String UNDEFINED_CALLBACK_ARGUMENT =
            "%s is not defined. It should either be a variable defined in the layout file or a"
                    + " parameter of the Callback.";
    public static final String DUPLICATE_CALLBACK_ARGUMENT =
            "Callback arguments must have unique names. %s is used twice or more.";
    public static final String CALLBACK_VARIABLE_NAME_CLASH =
            "%s in the callback definition will override the variable %s (%s) in the callback"
                    + " scope.";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy