
pl.chilldev.web.spring.model.Link Maven / Gradle / Ivy
/**
* This file is part of the ChillDev-Web.
*
* @license http://mit-license.org/ The MIT license
* @copyright 2014 - 2015 © by Rafał Wrzeszcz - Wrzasq.pl.
*/
package pl.chilldev.web.spring.model;
import java.util.Set;
/**
* `<link>` element properties.
*/
public class Link
{
/**
* Link destination.
*/
private String href;
/**
* Relation types.
*/
private Set rels;
/**
* MIME type.
*/
private String type;
/**
* Media query.
*/
private String media;
/**
* Initializes properties.
*
* @param href Link location.
* @param rels Relations.
* @param type MIME type.
* @param media Media query.
*/
public Link(String href, Set rels, String type, String media)
{
this.href = href;
this.rels = rels;
this.type = type;
this.media = media;
}
/**
* Returns link location.
*
* @return Link location.
*/
public String getHref()
{
return this.href;
}
/**
* Returns link relations.
*
* @return Relation types.
*/
public Set getRels()
{
return this.rels;
}
/**
* Returns link content type.
*
* @return MIME type.
*/
public String getType()
{
return this.type;
}
/**
* Returns link media query.
*
* @return Media query string.
*/
public String getMedia()
{
return this.media;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy