Class Icon
The icon element contains a URI reference to a small image that provides iconic visual identification for the feed. Icons are typically small, square images suitable for display in feed readers and aggregators.
Per RFC 4287 recommendations:
- Should be square (aspect ratio of 1:1)
- Should be small (e.g., 16x16, 32x32 pixels)
- Common formats: PNG, ICO, GIF
Schema
atomIcon = element atom:icon { atomCommonAttributes, (atomUri) }
Example:
Icon
Specification:
Represents an
See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Icon
Normal constructor.The value can be of any of the following types:
URI
,URL
,String
. Strings must be valid URIs.URIs defined by
UriResolver
can be used for values.- Parameters:
uri
- The URI of the icon.
-
Icon
public Icon()Bean constructor.
-
-
Method Details
-
getUri
Bean property getter:uri .The URI of this icon.
- Returns:
- The property value, or
null if it is not set.
-
setUri
Bean property setter:uri .The URI of this icon.
The value can be of any of the following types:
URI
,URL
,String
. Strings must be valid URIs.- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setBase
Description copied from class:Common
-
setLang
Description copied from class:Common
Bean property setter:lang .Sets the natural language of the element's content (xml:lang attribute).
Example:
Text
title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );
-