public class BabelImage extends Object implements Comparable<BabelImage>
Constructor and Description |
---|
BabelImage(String title,
String language,
String url,
String thumbUrl,
String source,
String license,
boolean isBad)
Creates an image
|
Modifier and Type | Method and Description |
---|---|
void |
addLanguage(it.uniroma1.lcl.jlt.util.Language language)
Add a new
Language |
int |
compareTo(BabelImage o) |
boolean |
equals(Object o) |
Set<it.uniroma1.lcl.jlt.util.Language> |
getLanguages()
Gets the MediaWiki page languages for this image.
|
BabelLicense |
getLicense()
Returns the license for this Babel sense
|
String |
getName()
Gets the MediaWiki page name for this image.
|
BabelImageSource |
getSource()
Returns the source for this Babel sense
|
String |
getThumbURL()
Gets the thumb URL this image.
|
String |
getURL()
Gets the full URL this image.
|
String |
getValidatedThumbURL()
Deprecated.
use getThumbURL()
Gets a verified version of the Thumb URL this image. Checks whether
possible URLs of this image (including redirections)
|
String |
getValidatedURL()
Deprecated.
use getURL()
Gets a verified version of the full URL this image.
Checks whether possible URLs of this image (including redirections)
|
boolean |
isBadImage()
Is it a bad or censored image
|
String |
toString() |
public BabelImage(String title, String language, String url, String thumbUrl, String source, String license, boolean isBad)
title
- image titlelanguage
- image languageurl
- image URLthumbUrl
- image thumbnail URLsource
- URL sourcelicense
- image licenseisBad
- is it a bad/censored image?public String getName()
public Set<it.uniroma1.lcl.jlt.util.Language> getLanguages()
public void addLanguage(it.uniroma1.lcl.jlt.util.Language language)
Language
language
- the language to addpublic String getURL()
public String getThumbURL()
public boolean isBadImage()
@Deprecated public String getValidatedURL()
@Deprecated public String getValidatedThumbURL()
public BabelLicense getLicense()
public BabelImageSource getSource()
public int compareTo(BabelImage o)
compareTo
in interface Comparable<BabelImage>
Copyright © 2016–2021. All rights reserved.