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

com.activitystream.EntityRoleType 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;

public class EntityRoleType {
    public static final EntityRoleType MESSAGING = new EntityRoleType("MESSAGING");
    public static final EntityRoleType SENT_TO = new EntityRoleType("SENT_TO");
    public static final EntityRoleType SENT_BY = new EntityRoleType("SENT_BY");
    public static final EntityRoleType SENT_TO_BCC = new EntityRoleType("SENT_TO_BCC");
    public static final EntityRoleType SENT_TO_CC = new EntityRoleType("SENT_TO_CC");


    public static final EntityRoleType VIEWED = new EntityRoleType("VIEWED");
    public static final EntityRoleType TRADE = new EntityRoleType("TRADE");
    public static final EntityRoleType ACTOR = new EntityRoleType("ACTOR");
    public static final EntityRoleType AFFECTS = new EntityRoleType("AFFECTS");
    public static final EntityRoleType INVOLVES = new EntityRoleType("INVOLVES");
    public static final EntityRoleType OBSERVED = new EntityRoleType("OBSERVED");
    public static final EntityRoleType REFERENCES = new EntityRoleType("REFERENCES");
    private final String actor;

    private EntityRoleType(String actor) {
        this.actor = actor;
    }

    public String value() {
        return actor;
    }

    public EntityRoleType extend(String ext) {
        return new EntityRoleType(actor + ":" + ext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy