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

org.seedstack.i18n.rest.internal.io.CSVRepresentation Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2013-2018, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.i18n.rest.internal.io;


import org.seedstack.business.assembler.MatchingEntityId;
import org.seedstack.business.assembler.MatchingFactoryParameter;

import java.util.Map;

/**
 * Data representation for export.
 *
 * @author [email protected]
 */
public class CSVRepresentation {

    private String key;

    private Map value;

    /**
     * Default constructor.
     */
    public CSVRepresentation() {
    }

    /**
     * Gets the locale
     *
     * @return locale code
     */
    @MatchingFactoryParameter(index = 0)
    @MatchingEntityId
    public String getKey() {
        return key;
    }

    /**
     * Sets the locale.
     *
     * @param key locale code
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * Gets the association of key and translation
     *
     * @return key/translation map
     */
    public Map getValue() {
        return value;
    }

    /**
     * Sets the association of key and translation
     *
     * @param value key/translation map
     */
    public void setValue(Map value) {
        this.value = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy