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 SummaryConstructors Constructor Description LinkAttributes()LinkAttributes(URL href)
 - 
Method SummaryAll 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.ExtensionMetadataisValid, urlEquals
 
- 
 
- 
- 
- 
Field Detail- 
HREFpublic static final String HREF - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
LinkAttributespublic LinkAttributes() 
 - 
LinkAttributespublic LinkAttributes(URL href) 
 
- 
 - 
Method Detail- 
getHrefpublic URL getHref() 
 - 
setHrefpublic void setHref(URL href) 
 - 
equalspublic boolean equals(Object other) - Specified by:
- equalsin class- ExtensionMetadata
 
 - 
asMappublic Map<String,String[]> asMap() - Specified by:
- asMapin class- ExtensionMetadata
 
 
- 
 
-