Class LinkAttributes
- java.lang.Object
-
- crawlercommons.sitemaps.extension.ExtensionMetadata
-
- crawlercommons.sitemaps.extension.LinkAttributes
-
- All Implemented Interfaces:
Serializable
public class LinkAttributes extends ExtensionMetadata
Data model for Google extension to the sitemap protocol regarding alternate links indexing. Cf. https://support.google.com/webmasters/answer/189077:Each
<url>element must have a child element:<xhtml:link rel="alternate" hreflang="supported_language-code">that lists every alternate version of the page, including itself. The order of these child<xhtml:link>elements doesn't matter, though you might want to keep them in the same order to make them easier for you to check for mistakes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkAttributes()LinkAttributes(URL href)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String[]>asMap()booleanequals(Object other)URLgetHref()Map<String,String>getParams()voidsetHref(URL href)voidsetParams(Map<String,String> params)StringtoString()-
Methods inherited from class crawlercommons.sitemaps.extension.ExtensionMetadata
isValid, urlEquals
-
-
-
-
Field Detail
-
HREF
public static final String HREF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LinkAttributes
public LinkAttributes()
-
LinkAttributes
public LinkAttributes(URL href)
-
-
Method Detail
-
getHref
public URL getHref()
-
setHref
public void setHref(URL href)
-
equals
public boolean equals(Object other)
- Specified by:
equalsin classExtensionMetadata
-
asMap
public Map<String,String[]> asMap()
- Specified by:
asMapin classExtensionMetadata
-
-