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()
boolean
equals(Object other)
URL
getHref()
Map<String,String>
getParams()
void
setHref(URL href)
void
setParams(Map<String,String> params)
String
toString()
-
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:
equals
in classExtensionMetadata
-
asMap
public Map<String,String[]> asMap()
- Specified by:
asMap
in classExtensionMetadata
-
-