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

com.activitystream.aspects.LocaleAspect Maven / Gradle / Ivy

Go to download

For a description please see https://github.com/activitystream/as-sdk-java

There is a newer version: 0.5.8
Show newest version
package com.activitystream.aspects;

import java.util.TimeZone;

public class LocaleAspect extends AspectBase {

    public LocaleAspect() {
        aspectPropertyMap.put("locale.locale", new AspectProperty(IsRequired.False));
        aspectPropertyMap.put("locale.currency", new AspectProperty(IsRequired.False));
        aspectPropertyMap.put("locale.timezone", new AspectProperty(IsRequired.False));
    }

    public LocaleAspect locale(String locale) {
        aspectPropertyMap.get("locale.locale").value = locale;
        return this;
    }

    public LocaleAspect currency(String currency) {
        aspectPropertyMap.get("locale.currency").value = currency;
        return this;
    }

    public LocaleAspect timezone(TimeZone timezone) {
        aspectPropertyMap.get("locale.timezone").value = timezone.getID();
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy