Class ImageAttributes
- java.lang.Object
-
- crawlercommons.sitemaps.extension.ExtensionMetadata
-
- crawlercommons.sitemaps.extension.ImageAttributes
-
- All Implemented Interfaces:
Serializable
public class ImageAttributes extends ExtensionMetadata
Data model for Google extension to the sitemap protocol regarding images indexing, as per http://www.google.com/schemas/sitemap-image/1.1- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageAttributes()
ImageAttributes(URL loc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String[]>
asMap()
boolean
equals(Object other)
String
getCaption()
String
getGeoLocation()
URL
getLicense()
URL
getLoc()
String
getTitle()
boolean
isValid()
void
setCaption(String caption)
void
setGeoLocation(String geoLocation)
void
setLicense(URL license)
void
setLoc(URL loc)
void
setTitle(String title)
String
toString()
-
Methods inherited from class crawlercommons.sitemaps.extension.ExtensionMetadata
urlEquals
-
-
-
-
Field Detail
-
LOC
public static final String LOC
- See Also:
- Constant Field Values
-
CAPTION
public static final String CAPTION
- See Also:
- Constant Field Values
-
GEO_LOCATION
public static final String GEO_LOCATION
- See Also:
- Constant Field Values
-
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
-
LICENSE
public static final String LICENSE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageAttributes
public ImageAttributes()
-
ImageAttributes
public ImageAttributes(URL loc)
-
-
Method Detail
-
getLoc
public URL getLoc()
-
setLoc
public void setLoc(URL loc)
-
getCaption
public String getCaption()
-
setCaption
public void setCaption(String caption)
-
getGeoLocation
public String getGeoLocation()
-
setGeoLocation
public void setGeoLocation(String geoLocation)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getLicense
public URL getLicense()
-
setLicense
public void setLicense(URL license)
-
isValid
public boolean isValid()
- Overrides:
isValid
in classExtensionMetadata
-
equals
public boolean equals(Object other)
- Specified by:
equals
in classExtensionMetadata
-
asMap
public Map<String,String[]> asMap()
- Specified by:
asMap
in classExtensionMetadata
-
-