public class InspireResourceLocator extends Object
Modifier and Type | Field and Description |
---|---|
private Set<MediaType> |
mediaTypes |
private String |
url |
Constructor and Description |
---|
InspireResourceLocator(String url) |
Modifier and Type | Method and Description |
---|---|
InspireResourceLocator |
addMediaType(MediaType mediaType)
Add a
MediaType |
Set<MediaType> |
getMediaTypes()
Get the
MediaType s |
String |
getURL()
Get the URL
|
boolean |
isSetMediaTypes()
Check if media types are set
|
boolean |
isSetUrl()
Check if the URL is set
|
InspireResourceLocator |
setMediaTypes(Collection<MediaType> mediaTypes)
Set the
MediaType s, clears the existing collection |
private void |
setURL(String url)
Set the URL
|
String |
toString() |
public InspireResourceLocator(String url)
public String getURL()
private void setURL(String url)
url
- the URL to setpublic boolean isSetUrl()
true
, if the URL is setpublic InspireResourceLocator setMediaTypes(Collection<MediaType> mediaTypes)
MediaType
s, clears the existing collectionmediaTypes
- the media types to setpublic InspireResourceLocator addMediaType(MediaType mediaType)
MediaType
mediaType
- the media type to addpublic boolean isSetMediaTypes()
true
, if media types are setCopyright © 2012-2015 52north.org. All Rights Reserved.