Class Generator
The generator element provides information about the software that created the feed. This is useful for debugging, analytics, and understanding the tools used in feed creation.
The generator has three components:
- Text content (required) - Human-readable name of the generating agent
- uri attribute (optional) - URI identifying or describing the generating agent
- version attribute (optional) - Version of the generating agent
Schema
atomGenerator = element atom:generator { atomCommonAttributes, attribute uri { atomUri }?, attribute version { text }?, text }
Example:
Generator
Specification:
Represents an
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()Bean property getter:text .getUri()Bean property getter:uri .Bean property getter:version .Bean property setter:base .Bean property setter:lang .Bean property setter:text .Bean property setter:uri .setVersion(String value) Bean property setter:version .
-
Constructor Details
-
Generator
public Generator()Bean constructor. -
Generator
Normal constructor.- Parameters:
text- The generator statement content.
-
-
Method Details
-
getText
Bean property getter:text .The content of this generator statement.
- Returns:
- The property value, or
null if it is not set.
-
getUri
Bean property getter:uri .The URI of this generator statement.
- Returns:
- The property value, or
null if it is not set.
-
getVersion
Bean property getter:version .The version of this generator statement.
- Returns:
- The property value, or
null if it is not set.
-
setBase
Description copied from class:Common -
setLang
Description copied from class:CommonBean 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" ); -
setText
Bean property setter:text .The content of this generator statement.
- Parameters:
value- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setUri
Bean property setter:uri .The URI of this generator statement.
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
-
setVersion
Bean property setter:version .The version of this generator statement.
- Parameters:
value- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-