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

de.escalon.hypermedia.spring.siren.SirenEmbeddedLink Maven / Gradle / Ivy

package de.escalon.hypermedia.spring.siren;

import java.util.List;

/**
 * Created by Dietrich on 17.04.2016.
 */
public class SirenEmbeddedLink extends SirenSubEntity {

    protected String href;
    protected String type;

    /**
     * Siren embedded link.
     *
     * @param sirenClasses
     *         Describes the nature of an entity's content based on the current representation. Possible values are
     *         implementation-dependent and should be documented. MUST be an array of strings. Optional.
     * @param rels
     *         Defines the relationship of the sub-entity to its parent, per Web Linking (RFC5899). MUST be an array of
     *         strings. Required.
     * @param href
     *         The URI of the linked sub-entity. Required.
     * @param type
     *         Defines media type of the linked sub-entity, per Web Linking (RFC5899). Optional.
     */
    public SirenEmbeddedLink(List sirenClasses, List rels, String href, String type, String title) {
        super(rels, title, sirenClasses);
        this.href = href;
        this.type = type;
    }

    public String getHref() {
        return href;
    }

    public String getType() {
        return type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy