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

com.taotao.boot.sensitive.houbb.api.IContext Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
 *
 * 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
 *
 *      https://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.taotao.boot.sensitive.houbb.api;

import java.lang.reflect.Field;
import java.util.List;

/** 脱敏的执行上下文 */
public interface IContext {

    /**
     * 获取所有的字段信息
     *
     * @return field 列表
     */
    List getAllFieldList();

    /**
     * 获得当前字段信息
     *
     * @return 字段信息
     */
    Field getCurrentField();

    /**
     * 获取当前字段名称
     *
     * @return 字段名称
     */
    String getCurrentFieldName();

    /**
     * 获取当前字段值
     *
     * @return 字段值
     */
    Object getCurrentFieldValue();

    /**
     * 获取当前对象
     *
     * @return 当前对象
     */
    Object getCurrentObject();

    /**
     * 类信息
     *
     * @return 当前类信息
     */
    Class getBeanClass();

    /**
     * 获取当前的明细信息 (1)普通字段,默认等于 {@link #getCurrentFieldValue()} 字段值 (2)列表/集合/数组,则等于具体的明细信息。
     *
     * 

比如 arrays=[1,2,3] 都是字段值 对应的 entry 可能是其中的 {1} 或者元素中的其他一个。 * * @return 明细信息 */ Object getEntry(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy