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

com.github.jeanmerelis.jeanson.mapper.JsonViewModel Maven / Gradle / Ivy

There is a newer version: 2.0.0-rc.2
Show newest version
/*
 * Copyright - Jeandeson O. Merelis
 */
package com.github.jeanmerelis.jeanson.mapper;

/*
 * #%L
 * jeanson
 * %%
 * Copyright (C) 2015 Jeandeson O. Merelis
 * %%
 * 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.
 * #L%
 */

import com.github.jeanmerelis.jeanson.typehandler.AccessorType;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 *
 * @author Jeandeson O. Merelis
 */
public class JsonViewModel {

    private AccessorType accessorType = AccessorType.DEFAULT;
    private String ignoreFields;
    private String usesFields = "{all}";
    private Set fields = new LinkedHashSet<>();

    public AccessorType getAccessorType() {
        return accessorType;
    }

    public void setAccessorType(AccessorType accessorType) {
        this.accessorType = accessorType;
    }

    public String getIgnoreFields() {
        return ignoreFields;
    }

    public void setIgnoreFields(String ignoreFields) {
        this.ignoreFields = ignoreFields;
    }

    public String getUsesFields() {
        return usesFields;
    }

    public void setUsesFields(String usesFields) {
        this.usesFields = usesFields;
    }

    public Set getFields() {
        return fields;
    }

    public void setFields(Set fields) {
        this.fields = fields;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy