public class LinkAttributes extends ExtensionMetadata
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.
| Constructor and Description |
|---|
LinkAttributes() |
LinkAttributes(URL href) |
| Modifier and Type | Method and 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() |
isValid, urlEqualspublic static final String HREF
public LinkAttributes()
public LinkAttributes(URL href)
public URL getHref()
public void setHref(URL href)
public boolean equals(Object other)
equals in class ExtensionMetadatapublic Map<String,String[]> asMap()
asMap in class ExtensionMetadataCopyright © 2009–2021 Crawler-Commons. All rights reserved.