RssCloud.parse constructor
RssCloud.parse(
- XmlElement node
Factory method to create an RssCloud
object from an XmlElement
.
This method parses the node
and extracts the attributes ('domain', 'port', 'path', 'registerProcedure', and 'protocol')
from it to create an RssCloud
object and returns it.
The extracted attribute values are assigned to the corresponding properties of the RssCloud
object.
Implementation
factory RssCloud.parse(XmlElement node) {
var domain = node.getAttribute('domain');
var port = node.getAttribute('port');
var path = node.getAttribute('path');
var registerProcedure = node.getAttribute('registerProcedure');
var protocol = node.getAttribute('protocol');
return RssCloud(domain, port, path, registerProcedure, protocol);
}