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

com.icfolson.sling.translate.api.model.TranslationModel Maven / Gradle / Ivy

The newest version!
package com.icfolson.sling.translate.api.model;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

/**
 * The model used to represent a translation entry, as defined by a method in an annotated dictionary class
 */
public class TranslationModel {

    private final Method entryMethod;
    private final Map defaultValues = new HashMap();
    private String translationKey;
    private String comment;

    public TranslationModel(final Method entryMethod) {
        this.entryMethod = entryMethod;
    }

    public Map getDefaultValues() {
        return defaultValues;
    }

    public Method getEntryMethod() {
        return entryMethod;
    }

    public String getTranslationKey() {
        return translationKey;
    }

    public void setTranslationKey(final String translationKey) {
        this.translationKey = translationKey;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(final String comment) {
        this.comment = comment;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy