X
Namespaces

dojox/atom/io/model.js

  • Provides:

    • dojox.atom.io.model
  • Requires:

    • dojox.xml.parser in common
    • dojo.string in common in project dojo
    • dojo.date.stamp in common in project dojo
  • dojox.atom.io.model.Node

    • type
      Function
    • parameters:
      • name_space: (typeof )
      • name: (typeof )
      • attributes: (typeof )
      • content: (typeof )
      • shortNs: (typeof )
    • source: [view]
        this.name_space = name_space;
        this.name = name;
        this.attributes = [];
        if(attributes){
         this.attributes = attributes;
        }
        this.content = [];
        this.rawNodes = [];
        this.textContent = null;
        if(content){
         this.content.push(content);
        }
        this.shortNs = shortNs;
        this._objName = "Node";//for debugging purposes
    • summary
  • dojox.atom.io.model.Node.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof )
    • source: [view]
        this._saveAttributes(node);
        this.name_space = node.namespaceURI;
        this.shortNs = node.prefix;
        this.name = dojox.atom.io.model.util.getNodename(node);
        for(var x=0; x < node.childNodes.length; x++){
         var c = node.childNodes[x];
         if(dojox.atom.io.model.util.getNodename(c) != "#text" ){
          this.rawNodes.push(c);
          var n = new dojox.atom.io.model.Node();
          n.buildFromDom(c, true);
          this.content.push(n);
         }else{
          this.content.push(c.nodeValue);
         }
        }
        this.textContent = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model.Node._saveAttributes

    • type
      Function
    • parameters:
      • node: (typeof )
    • source: [view]
        if(!this.attributes){this.attributes = [];}
        // Work around lack of hasAttributes() in IE
        var hasAttributes = function(node){
         var attrs = node.attributes;
         if(attrs === null){return false;}
         return (attrs.length !== 0);
        };

       
        if(hasAttributes(node) && this._getAttributeNames){
         var names = this._getAttributeNames(node);
         if(names && names.length > 0){
          for(var x in names){
           var attrib = node.getAttribute(names[x]);
           if(attrib){this.attributes[names[x]] = attrib;}
          }
         }
        }
    • summary
  • dojox.atom.io.model.Node.addAttribute

    • type
      Function
    • parameters:
      • name: (typeof )
      • value: (typeof )
    • source: [view]
        this.attributes[name]=value;
    • summary
  • dojox.atom.io.model.Node.getAttribute

    • type
      Function
    • parameters:
      • name: (typeof )
    • source: [view]
        return this.attributes[name];
    • summary
  • dojox.atom.io.model.Node._getAttributeNames

    • type
      Function
    • parameters:
      • node: (typeof )
    • source: [view]
        var names = [];
        for(var i =0; i   names.push(node.attributes[i].nodeName);
        }
        return names;
    • summary
  • dojox.atom.io.model.Node.toString

    • type
      Function
    • source: [view]
        var xml = [];
        var x;
        var name = (this.shortNs?this.shortNs+":":'')+this.name;
        var cdata = (this.name == "#cdata-section");
        if(cdata){
         xml.push("   xml.push(this.textContent);
         xml.push("]]>");
        }else{
         xml.push("<");
         xml.push(name);
         if(this.name_space){
          xml.push(" xmlns='" + this.name_space + "'");
         }
         if(this.attributes){
          for(x in this.attributes){
           xml.push(" " + x + "='" + this.attributes[x] + "'");
          }
         }
         if(this.content){
          xml.push(">");
          for(x in this.content){
           xml.push(this.content[x]);
          }
          xml.push("\n");
         }else{
          xml.push("/>\n");
         }
        }
        return xml.join('');
    • summary
  • dojox.atom.io.model.Node.addContent

    • type
      Function
    • parameters:
      • content: (typeof )
    • source: [view]
        this.content.push(content);
    • summary
  • dojox.atom.io.model.Node.name_space

    • summary
  • dojox.atom.io.model.Node.shortNs

    • summary
  • dojox.atom.io.model.Node.name

    • summary
  • dojox.atom.io.model.Node.textContent

    • summary
  • dojox.atom.io.model.Node.attributes

    • summary
  • dojox.atom.io.model.Node.content

    • summary
  • dojox.atom.io.model.Node.rawNodes

    • summary
  • dojox.atom.io.model.Node._objName

    • summary
  • dojox.atom.io.model.AtomItem

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for generic Atom items.
    • description
      Class container for generic Atom items.
    • parameters:
      • args: (typeof )
    • source: [view]
        this.ATOM_URI = dojox.atom.io.model._Constants.ATOM_URI;
        this.links = null;      //Array of Link
        this.authors = null;     //Array of Person
        this.categories = null;     //Array of Category
        this.contributors = null;    //Array of Person
        this.icon = this.id = this.logo = this.xmlBase = this.rights = null; //String
        this.subtitle = this.title = null;  //Content
        this.updated = this.published = null; //Date
        // Google news
        this.issued = this.modified = null;  //Date
        this.content = null;     //Content
        this.extensions = null;     //Array of Node, non atom based
        this.entries = null;     //Array of Entry
        this.name_spaces = {};
        this._objName = "AtomItem";    //for debugging purposes
  • dojox.atom.io.model.AtomItem._getAttributeNames

    • type
      Function
    • source: [view]
       _getAttributeNames: function(){return null;
    • summary
  • dojox.atom.io.model.AtomItem._accepts

    • type
      Object
    • summary
  • dojox.atom.io.model.AtomItem.accept

    • type
      Function
    • parameters:
      • tag: (typeof )
    • source: [view]
       accept: function(tag){return Boolean(this._accepts[tag]);
    • summary
  • dojox.atom.io.model.AtomItem._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.AtomItem.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof )
    • source: [view]
        var i, c, n;
        for(i=0; i   c = node.attributes.item(i);
         n = dojox.atom.io.model.util.getNodename(c);
         if(c.prefix == "xmlns" && c.prefix != n){
          this.addNamespace(c.nodeValue, n);
         }
        }
        c = node.childNodes;
        for(i = 0; i< c.length; i++){
         if(c[i].nodeType == 1) {
          var name = dojox.atom.io.model.util.getNodename(c[i]);
          if(!name){continue;}
          if(c[i].namespaceURI != dojox.atom.io.model._Constants.ATOM_NS && name != "#text"){
           if(!this.extensions){this.extensions = [];}
           var extensionNode = new dojox.atom.io.model.Node();
           extensionNode.buildFromDom(c[i]);
           this.extensions.push(extensionNode);
          }
          if(!this.accept(name.toLowerCase())){
           continue;
          }
          var fn = dojox.atom.io.model._actions[name];
          if(fn) {
           fn(this,c[i]);
          }
         }
        }
        this._saveAttributes(node);
        if(this._postBuild){this._postBuild();}
    • summary
  • dojox.atom.io.model.AtomItem.addNamespace

    • type
      Function
    • parameters:
      • fullName: (typeof )
      • shortName: (typeof )
    • source: [view]
        if(fullName && shortName){
         this.name_spaces[shortName] = fullName;
        }
    • summary
  • dojox.atom.io.model.AtomItem.addAuthor

    • type
      Function
    • parameters:
      • name: (typeof String)
        The author's name.
      • email: (typeof String)
        The author's e-mail address.
      • uri: (typeof String)
        A URI associated with the author.
    • source: [view]
        if(!this.authors){this.authors = [];}
        this.authors.push(new dojox.atom.io.model.Person("author",name,email,uri));
    • summary
      Function to add in an author to the list of authors.
    • description
      Function to add in an author to the list of authors.
  • dojox.atom.io.model.AtomItem.addContributor

    • type
      Function
    • parameters:
      • name: (typeof String)
        The author's name.
      • email: (typeof String)
        The author's e-mail address.
      • uri: (typeof String)
        A URI associated with the author.
    • source: [view]
        if(!this.contributors){this.contributors = [];}
        this.contributors.push(new dojox.atom.io.model.Person("contributor",name,email,uri));
    • summary
      Function to add in an author to the list of authors.
    • description
      Function to add in an author to the list of authors.
  • dojox.atom.io.model.AtomItem.addLink

    • type
      Function
    • parameters:
      • href: (typeof String)
        The href.
      • rel: (typeof String)
      • hrefLang: (typeof String)
      • title: (typeof String)
        A title to associate with the link.
      • type: (typeof String)
        The type of link is is.
    • source: [view]
        if(!this.links){this.links=[];}
        this.links.push(new dojox.atom.io.model.Link(href,rel,hrefLang,title,type));
    • summary
      Function to add in a link to the list of links.
    • description
      Function to add in a link to the list of links.
  • dojox.atom.io.model.AtomItem.removeLink

    • type
      Function
    • parameters:
      • href: (typeof String)
        The href.
      • rel: (typeof String)
    • source: [view]
        if(!this.links || !dojo.isArray(this.links)){return;}
        var count = 0;
        for(var i = 0; i < this.links.length; i++){
         if((!href || this.links[i].href === href) && (!rel || this.links[i].rel === rel)){
          this.links.splice(i,1); count++;
         }
        }
        return count;
    • summary
      Function to remove a link from the list of links.
    • description
      Function to remove a link from the list of links.
  • dojox.atom.io.model.AtomItem.removeBasicLinks

    • type
      Function
    • source: [view]
        if(!this.links){return;}
        var count = 0;
        for(var i = 0; i < this.links.length; i++){
         if(!this.links[i].rel){this.links.splice(i,1); count++; i--;}
        }
        return count;
    • summary
      Function to remove all basic links from the list of links.
    • description
      Function to remove all basic link from the list of links.
  • dojox.atom.io.model.AtomItem.addCategory

    • type
      Function
    • parameters:
      • scheme: (typeof String)
      • term: (typeof String)
      • label: (typeof String)
    • source: [view]
        if(!this.categories){this.categories = [];}
        this.categories.push(new dojox.atom.io.model.Category(scheme,term,label));
    • summary
      Function to add in a category to the list of categories.
    • description
      Function to add in a category to the list of categories.
  • dojox.atom.io.model.AtomItem.getCategories

    • type
      Function
    • parameters:
      • scheme: (typeof String)
        The scheme to filter on.
    • source: [view]
        if(!scheme){return this.categories;}
        //If categories belonging to a particular scheme are required, then create a new array containing these
        var arr = [];
        for(var x in this.categories){
         if(this.categories[x].scheme === scheme){arr.push(this.categories[x]);}
        }
        return arr;
    • summary
      Function to get all categories that match a particular scheme.
    • description
      Function to get all categories that match a particular scheme.
  • dojox.atom.io.model.AtomItem.removeCategories

    • type
      Function
    • parameters:
      • scheme: (typeof String)
        The scheme to filter on.
      • term: (typeof String)
        The term to filter on.
    • source: [view]
        if(!this.categories){return;}
        var count = 0;
        for(var i=0; i   if((!scheme || this.categories[i].scheme === scheme) && (!term || this.categories[i].term === term)){
          this.categories.splice(i, 1); count++; i--;
         }
        }
        return count;
    • summary
      Function to remove all categories that match a particular scheme and term.
    • description
      Function to remove all categories that match a particular scheme and term.
  • dojox.atom.io.model.AtomItem.setTitle

    • type
      Function
    • parameters:
      • str: (typeof String)
        The title to set.
      • type: (typeof String)
        The type of title format, text, xml, xhtml, etc.
    • source: [view]
        if(!str){return;}
        this.title = new dojox.atom.io.model.Content("title");
        this.title.value = str;
        if(type){this.title.type = type;}
    • summary
      Function to set the title of the item.
    • description
      Function to set the title of the item.
  • dojox.atom.io.model.AtomItem.addExtension

    • type
      Function
    • parameters:
      • name_space: (typeof String)
        The namespace of the extension.
      • name: (typeof String)
        The name of the extension
      • attributes: (typeof Array)
        The attributes associated with the extension.
      • content: (typeof String)
        The content of the extension.
      • shortNS: (typeof String)
    • source: [view]
        if(!this.extensions){this.extensions=[];}
        this.extensions.push(new dojox.atom.io.model.Node(name_space,name,attributes,content, shortNS || "ns"+this.extensions.length));
    • summary
      Function to add in an extension namespace into the item.
    • description
      Function to add in an extension namespace into the item.
  • dojox.atom.io.model.AtomItem.getExtensions

    • type
      Function
    • parameters:
      • name_space: (typeof String)
        The namespace of the extension.
      • name: (typeof String)
        The name of the extension
    • source: [view]
        var arr = [];
        if(!this.extensions){return arr;}
        for(var x in this.extensions){
         if((this.extensions[x].name_space === name_space || this.extensions[x].shortNs === name_space) && (!name || this.extensions[x].name === name)){
          arr.push(this.extensions[x]);
         }
        }
        return arr;
    • summary
      Function to get extensions that match a namespace and name.
    • description
      Function to get extensions that match a namespace and name.
  • dojox.atom.io.model.AtomItem.removeExtensions

    • type
      Function
    • parameters:
      • name_space: (typeof String)
        The namespace of the extension.
      • name: (typeof String)
        The name of the extension
    • source: [view]
        if(!this.extensions){return;}
        for(var i=0; i< this.extensions.length; i++){
         if((this.extensions[i].name_space == name_space || this.extensions[i].shortNs === name_space) && this.extensions[i].name === name){
          this.extensions.splice(i,1);
          i--;
         }
        }
    • summary
      Function to remove extensions that match a namespace and name.
    • description
      Function to remove extensions that match a namespace and name.
  • dojox.atom.io.model.AtomItem.destroy

    • type
      Function
    • source: [view]
        this.links = null;
        this.authors = null;
        this.categories = null;
        this.contributors = null;
        this.icon = this.id = this.logo = this.xmlBase = this.rights = null;
        this.subtitle = this.title = null;
        this.updated = this.published = null;
        // Google news
        this.issued = this.modified = null;
        this.content = null;
        this.extensions = null;
        this.entries = null;
    • summary
  • dojox.atom.io.model.AtomItem.extensions

    • summary
  • dojox.atom.io.model.AtomItem.authors

    • summary
  • dojox.atom.io.model.AtomItem.contributors

    • summary
  • dojox.atom.io.model.AtomItem.links

    • summary
  • dojox.atom.io.model.AtomItem.categories

    • summary
  • dojox.atom.io.model.AtomItem.title

    • summary
  • dojox.atom.io.model.AtomItem.title.value

    • summary
  • dojox.atom.io.model.AtomItem.title.type

    • summary
  • dojox.atom.io.model.AtomItem.icon

    • summary
  • dojox.atom.io.model.AtomItem.subtitle

    • summary
  • dojox.atom.io.model.AtomItem.updated

    • summary
  • dojox.atom.io.model.AtomItem.issued

    • summary
  • dojox.atom.io.model.AtomItem.content

    • summary
  • dojox.atom.io.model.AtomItem.entries

    • summary
  • dojox.atom.io.model.AtomItem.ATOM_URI

    • summary
  • dojox.atom.io.model.AtomItem.name_spaces

    • summary
  • dojox.atom.io.model.AtomItem._objName

    • summary
  • dojox.atom.io.model.Category

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for 'Category' types.
    • description
      Class container for 'Category' types.
    • parameters:
      • scheme: (typeof String)
      • term: (typeof String)
      • label: (typeof String)
    • source: [view]
        this.scheme = scheme; this.term = term; this.label = label;
        this._objName = "Category";//for debugging
  • dojox.atom.io.model.Category._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.Category._getAttributeNames

    • type
      Function
    • source: [view]
        return ["label","scheme","term"];
    • summary
  • dojox.atom.io.model.Category.toString

    • type
      Function
    • source: [view]
        var s = [];
        s.push('  if(this.label){s.push(' label="'+this.label+'" ');}
        if(this.scheme){s.push(' scheme="'+this.scheme+'" ');}
        if(this.term){s.push(' term="'+this.term+'" ');}
        s.push('/>\n');
        return s.join('');
    • summary
      Function to construct string form of the category tag, which is an XML structure.
    • description
      Function to construct string form of the category tag, which is an XML structure.
  • dojox.atom.io.model.Category.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to process for content.
    • source: [view]
        this._saveAttributes(node);//just get the attributes from the node
        this.label = this.attributes.label;
        this.scheme = this.attributes.scheme;
        this.term = this.attributes.term;
        if(this._postBuild){this._postBuild();}
    • summary
      Function to do construction of the Category data from the DOM node containing it.
    • description
      Function to do construction of the Category data from the DOM node containing it.
  • dojox.atom.io.model.Category.label

    • summary
  • dojox.atom.io.model.Category.scheme

    • summary
  • dojox.atom.io.model.Category.term

    • summary
  • dojox.atom.io.model.Category._objName

    • summary
  • dojox.atom.io.model.Content

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for 'Content' types. Such as summary, content, username, and so on types of data.
    • description
      Class container for 'Content' types. Such as summary, content, username, and so on types of data.
    • parameters:
      • tagName: (typeof )
      • value: (typeof )
      • src: (typeof )
      • type: (typeof )
      • xmlLang: (typeof )
    • source: [view]
        this.tagName = tagName; this.value = value; this.src = src; this.type=type; this.xmlLang = xmlLang;
        this.HTML = "html"; this.TEXT = "text"; this.XHTML = "xhtml"; this.XML="xml";
        this._useTextContent = "true";
  • dojox.atom.io.model.Content._getAttributeNames

    • type
      Function
    • source: [view]
       _getAttributeNames: function(){return ["type","src"];
    • summary
  • dojox.atom.io.model.Content._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.Content.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to process for content.
        Handle checking for XML content as the content type
    • source: [view]
        var type = node.getAttribute("type");
        if(type){
         type = type.toLowerCase();
         if(type == "xml" || "text/xml"){
          type = this.XML;
         }
        }else{
         type="text";
        }
        if(type === this.XML){
         if(node.firstChild){
          var i;
          this.value = "";
          for(i = 0; i < node.childNodes.length; i++){
           var c = node.childNodes[i];
           if(c){
            this.value += dojox.xml.parser.innerXML(c);
           }
          }
         }
        } else if(node.innerHTML){
         this.value = node.innerHTML;
        }else{
         this.value = dojox.xml.parser.textContent(node);
        }


        this._saveAttributes(node);


        if(this.attributes){
         this.type = this.attributes.type;
         this.scheme = this.attributes.scheme;
         this.term = this.attributes.term;
        }
        if(!this.type){this.type = "text";}


        //We need to unescape the HTML content here so that it can be displayed correctly when the value is fetched.
        var lowerType = this.type.toLowerCase();
        if(lowerType === "html" || lowerType === "text/html" || lowerType === "xhtml" || lowerType === "text/xhtml"){
         this.value = this.value?dojox.atom.io.model.util.unEscapeHtml(this.value):"";
        }


        if(this._postBuild){this._postBuild();}
    • summary
      Function to do construction of the Content data from the DOM node containing it.
    • description
      Function to do construction of the Content data from the DOM node containing it.
  • dojox.atom.io.model.Content.toString

    • type
      Function
    • source: [view]
        var s = [];
        s.push('<'+this.tagName+' ');
        if(!this.type){this.type = "text";}
        if(this.type){s.push(' type="'+this.type+'" ');}
        if(this.xmlLang){s.push(' xml:lang="'+this.xmlLang+'" ');}
        if(this.xmlBase){s.push(' xml:base="'+this.xmlBase+'" ');}

        
        //all HTML must be escaped
        if(this.type.toLowerCase() == this.HTML){
         s.push('>'+dojox.atom.io.model.util.escapeHtml(this.value)+'\n');
        }else{
         s.push('>'+this.value+'\n');
        }
        var ret = s.join('');
        return ret;
    • summary
      Function to construct string form of the content tag, which is an XML structure.
    • description
      Function to construct string form of the content tag, which is an XML structure.
  • dojox.atom.io.model.Content.value

    • summary
  • dojox.atom.io.model.Content.type

    • summary
  • dojox.atom.io.model.Content.scheme

    • summary
  • dojox.atom.io.model.Content.term

    • summary
  • dojox.atom.io.model.Content.tagName

    • summary
  • dojox.atom.io.model.Content.HTML

    • summary
  • dojox.atom.io.model.Content._useTextContent

    • summary
  • dojox.atom.io.model.Link

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for 'link' types.
    • description
      Class container for 'link' types.
    • parameters:
      • href: (typeof )
      • rel: (typeof )
      • hrefLang: (typeof )
      • title: (typeof )
      • type: (typeof )
    • source: [view]
        this.href = href; this.hrefLang = hrefLang; this.rel = rel; this.title = title;this.type = type;
  • dojox.atom.io.model.Link._getAttributeNames

    • type
      Function
    • source: [view]
       _getAttributeNames: function(){return ["href","jrefLang","rel","title","type"];
    • summary
  • dojox.atom.io.model.Link._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.Link.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof The)
        DOM node to process for link data.
    • source: [view]
        this._saveAttributes(node);//just get the attributes from the node
        this.href = this.attributes.href;
        this.hrefLang = this.attributes.hreflang;
        this.rel = this.attributes.rel;
        this.title = this.attributes.title;
        this.type = this.attributes.type;
        if(this._postBuild){this._postBuild();}
    • summary
      Function to do construction of the link data from the DOM node containing it.
    • description
      Function to do construction of the link data from the DOM node containing it.
  • dojox.atom.io.model.Link.toString

    • type
      Function
    • source: [view]
        var s = [];
        s.push('  if(this.href){s.push(' href="'+this.href+'" ');}
        if(this.hrefLang){s.push(' hrefLang="'+this.hrefLang+'" ');}
        if(this.rel){s.push(' rel="'+this.rel+'" ');}
        if(this.title){s.push(' title="'+this.title+'" ');}
        if(this.type){s.push(' type = "'+this.type+'" ');}
        s.push('/>\n');
        return s.join('');
    • summary
      Function to construct string form of the link tag, which is an XML structure.
    • description
      Function to construct string form of the link tag, which is an XML structure.
  • dojox.atom.io.model.Link.href

    • summary
  • dojox.atom.io.model.Link.hrefLang

    • summary
  • dojox.atom.io.model.Link.rel

    • summary
  • dojox.atom.io.model.Link.title

    • summary
  • dojox.atom.io.model.Link.type

    • summary
  • dojox.atom.io.model.Person

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for 'person' types, such as Author, controbutors, and so on.
    • description
      Class container for 'person' types, such as Author, controbutors, and so on.
    • parameters:
      • personType: (typeof )
      • name: (typeof )
      • email: (typeof )
      • uri: (typeof )
    • source: [view]
        this.author = "author";
        this.contributor = "contributor";
        if(!personType){
         personType = this.author;
        }
        this.personType = personType;
        this.name = name || '';
        this.email = email || '';
        this.uri = uri || '';
        this._objName = "Person";//for debugging
  • dojox.atom.io.model.Person._getAttributeNames

    • type
      Function
    • source: [view]
       _getAttributeNames: function(){return null;
    • summary
  • dojox.atom.io.model.Person._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.Person.accept

    • type
      Function
    • parameters:
      • tag: (typeof )
    • source: [view]
       accept: function(tag){return Boolean(this._accepts[tag]);
    • summary
  • dojox.atom.io.model.Person.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof The)
        DOM node to process for person data.
    • source: [view]
        var c = node.childNodes;
        for(var i = 0; i< c.length; i++){
         var name = dojox.atom.io.model.util.getNodename(c[i]);

         
         if(!name){continue;}


         if(c[i].namespaceURI != dojox.atom.io.model._Constants.ATOM_NS && name != "#text"){
          if(!this.extensions){this.extensions = [];}
          var extensionNode = new dojox.atom.io.model.Node();
          extensionNode.buildFromDom(c[i]);
          this.extensions.push(extensionNode);
         }
         if(!this.accept(name.toLowerCase())){
          continue;
         }
         var fn = dojox.atom.io.model._actions[name];
         if(fn) {
          fn(this,c[i]);
         }
        }
        this._saveAttributes(node);
        if(this._postBuild){this._postBuild();}
    • summary
      Function to do construction of the person data from the DOM node containing it.
    • description
      Function to do construction of the person data from the DOM node containing it.
  • dojox.atom.io.model.Person._accepts

    • type
      Object
    • summary
  • dojox.atom.io.model.Person.toString

    • type
      Function
    • source: [view]
        var s = [];
        s.push('<'+this.personType+'>\n');
        if(this.name){s.push('\t'+this.name+'\n');}
        if(this.email){s.push('\t'+this.email+'\n');}
        if(this.uri){s.push('\t'+this.uri+'\n');}
        s.push('\n');
        return s.join('');
    • summary
      Function to construct string form of the Person tag, which is an XML structure.
    • description
      Function to construct string form of the Person tag, which is an XML structure.
  • dojox.atom.io.model.Person.extensions

    • summary
  • dojox.atom.io.model.Person.author

    • summary
  • dojox.atom.io.model.Person.contributor

    • summary
  • dojox.atom.io.model.Person.personType

    • summary
  • dojox.atom.io.model.Person.name

    • summary
  • dojox.atom.io.model.Person.email

    • summary
  • dojox.atom.io.model.Person.uri

    • summary
  • dojox.atom.io.model.Person._objName

    • summary
  • dojox.atom.io.model.Generator

    • type
      Function
    • chains:
      • dojox.atom.io.model.Node: (prototype)
      • dojox.atom.io.model.Node: (call)
    • summary
      Class container for 'Generator' types.
    • description
      Class container for 'Generator' types.
    • parameters:
      • uri: (typeof String)
      • version: (typeof String)
      • value: (typeof String)
    • source: [view]
        this.uri = uri;
        this.version = version;
        this.value = value;
  • dojox.atom.io.model.Generator._postBuild

    • type
      Function
    • source: [view]
      }
    • summary
  • dojox.atom.io.model.Generator.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof The)
        DOM node to process for link data.
    • source: [view]
        this.value = dojox.xml.parser.textContent(node);
        this._saveAttributes(node);


        this.uri = this.attributes.uri;
        this.version = this.attributes.version;


        if(this._postBuild){this._postBuild();}
    • summary
      Function to do construction of the generator data from the DOM node containing it.
    • description
      Function to do construction of the generator data from the DOM node containing it.
  • dojox.atom.io.model.Generator.toString

    • type
      Function
    • source: [view]
        var s = [];
        s.push('  if(this.uri){s.push(' uri="'+this.uri+'" ');}
        if(this.version){s.push(' version="'+this.version+'" ');}
        s.push('>'+this.value+'
      \n');
        var ret = s.join('');
        return ret;
    • summary
      Function to construct string form of the Generator tag, which is an XML structure.
    • description
      Function to construct string form of the Generator tag, which is an XML structure.
  • dojox.atom.io.model.Generator.value

    • summary
  • dojox.atom.io.model.Generator.uri

    • summary
  • dojox.atom.io.model.Generator.version

    • summary
  • dojox.atom.io.model.Entry

    • type
      Function
    • chains:
      • dojox.atom.io.model.AtomItem: (prototype)
      • dojox.atom.io.model.AtomItem: (call)
    • summary
      Class container for 'Entry' types.
    • description
      Class container for 'Entry' types.
    • parameters:
      • id: (typeof String)
    • source: [view]
        this.id = id; this._objName = "Entry"; this.feedUrl = null;
  • dojox.atom.io.model.Entry._getAttributeNames

    • type
      Function
    • source: [view]
       _getAttributeNames: function(){return null;
    • summary
  • dojox.atom.io.model.Entry._accepts

    • type
      Object
    • summary
  • dojox.atom.io.model.Entry.toString

    • type
      Function
    • parameters:
      • amPrimary: (typeof )
    • source: [view]
        var s = [];
        var i;
        if(amPrimary){
         s.push("");
         s.push("  }else{s.push("  if(this.xmlBase){s.push(' xml:base="'+this.xmlBase+'" ');}
        for(i in this.name_spaces){s.push(' xmlns:'+i+'="'+this.name_spaces[i]+'"');}
        s.push('>\n');
        s.push('' + (this.id ? this.id: '') + '\n');
        if(this.issued && !this.published){this.published = this.issued;}
        if(this.published){s.push(''+dojo.date.stamp.toISOString(this.published)+'\n');}
        if(this.created){s.push(''+dojo.date.stamp.toISOString(this.created)+'\n');}
        //Google News
        if(this.issued){s.push(''+dojo.date.stamp.toISOString(this.issued)+'\n');}


        //Google News
        if(this.modified){s.push(''+dojo.date.stamp.toISOString(this.modified)+'\n');}


        if(this.modified && !this.updated){this.updated = this.modified;}
        if(this.updated){s.push(''+dojo.date.stamp.toISOString(this.updated)+'\n');}
        if(this.rights){s.push(''+this.rights+'\n');}
        if(this.title){s.push(this.title.toString());}
        if(this.summary){s.push(this.summary.toString());}
        var arrays = [this.authors,this.categories,this.links,this.contributors,this.extensions];
        for(var x in arrays){
         if(arrays[x]){
          for(var y in arrays[x]){
           s.push(arrays[x][y]);
          }
         }
        }
        if(this.content){s.push(this.content.toString());}
        s.push("
      \n");
        return s.join(''); //string
    • summary
      Function to construct string form of the entry tag, which is an XML structure.
    • description
      Function to construct string form of the entry tag, which is an XML structure.
    • returns
      string
  • dojox.atom.io.model.Entry.getEditHref

    • type
      Function
    • source: [view]
        if(this.links === null || this.links.length === 0){
         return null;
        }
        for(var x in this.links){
         if(this.links[x].rel && this.links[x].rel == "edit"){
          return this.links[x].href; //string
         }
        }
        return null;
    • summary
      Function to get the href that allows editing of this feed entry.
    • description
      Function to get the href that allows editing of this feed entry.
    • return_summary
      The href that specifies edit capability.
    • returns
      string
  • dojox.atom.io.model.Entry.setEditHref

    • type
      Function
    • parameters:
      • url: (typeof )
    • source: [view]
        if(this.links === null){
         this.links = [];
        }
        for(var x in this.links){
         if(this.links[x].rel && this.links[x].rel == "edit"){
          this.links[x].href = url;
          return;
         }
        }
        this.addLink(url, 'edit');
    • summary
  • dojox.atom.io.model.Entry.published

    • summary
  • dojox.atom.io.model.Entry.updated

    • summary
  • dojox.atom.io.model.Entry.links

    • summary
  • dojox.atom.io.model.Entry.id

    • summary
  • dojox.atom.io.model.Feed

    • type
      Function
    • chains:
      • dojox.atom.io.model.AtomItem: (prototype)
      • dojox.atom.io.model.AtomItem: (call)
    • summary
      Class container for 'Feed' types.
    • description
      Class container for 'Feed' types.
  • dojox.atom.io.model.Feed._accepts

    • type
      Object
    • summary
  • dojox.atom.io.model.Feed.addEntry

    • type
      Function
    • parameters:
      • entry: (typeof object)
        The entry object to add.
    • source: [view]
        if(!entry.id){
         throw new Error("The entry object must be assigned an ID attribute.");
        }
        if(!this.entries){this.entries = [];}
        entry.feedUrl = this.getSelfHref();
        this.entries.push(entry);
    • summary
      Function to add an entry to this feed.
    • description
      Function to add an entry to this feed.
  • dojox.atom.io.model.Feed.getFirstEntry

    • type
      Function
    • source: [view]
        if(!this.entries || this.entries.length === 0){return null;}
        return this.entries[0]; //object
    • summary
      Function to get the first entry of the feed.
    • description
      Function to get the first entry of the feed.
    • return_summary
      The first entry in the feed.
    • returns
      object
  • dojox.atom.io.model.Feed.getEntry

    • type
      Function
    • parameters:
      • entryId: (typeof String)
    • source: [view]
        if(!this.entries){return null;}
        for(var x in this.entries){
         if(this.entries[x].id == entryId){
          return this.entries[x];
         }
        }
        return null;
    • summary
      Function to get an entry by its id.
    • description
      Function to get an entry by its id.
    • return_summary
      The entry desired, or null if none.
  • dojox.atom.io.model.Feed.removeEntry

    • type
      Function
    • parameters:
      • entry: (typeof object)
        The entry.
    • source: [view]
        if(!this.entries){return;}
        var count = 0;
        for(var i = 0; i < this.entries.length; i++){
         if(this.entries[i] === entry){
          this.entries.splice(i,1);
          count++;
         }
        }
        return count;
    • summary
      Function to remove an entry from the list of links.
    • description
      Function to remove an entry from the list of links.
  • dojox.atom.io.model.Feed.setEntries

    • type
      Function
    • parameters:
      • arrayOfEntry: (typeof array)
        An array of entry objects to add to the feed.
    • source: [view]
        for(var x in arrayOfEntry){
         this.addEntry(arrayOfEntry[x]);
        }
    • summary
      Function to add a set of entries to the feed.
    • description
      Function to get an entry by its id.
  • dojox.atom.io.model.Feed.toString

    • type
      Function
    • source: [view]
        var s = [];
        var i;
        s.push('\n');
        s.push('  if(this.xmlBase){s.push(' xml:base="'+this.xmlBase+'"');}
        for(i in this.name_spaces){s.push(' xmlns:'+i+'="'+this.name_spaces[i]+'"');}
        s.push('>\n');
        s.push('' + (this.id ? this.id: '') + '\n');
        if(this.title){s.push(this.title);}
        if(this.copyright && !this.rights){this.rights = this.copyright;}
        if(this.rights){s.push('' + this.rights + '\n');}

        
        // Google news
        if(this.issued){s.push(''+dojo.date.stamp.toISOString(this.issued)+'\n');}
        if(this.modified){s.push(''+dojo.date.stamp.toISOString(this.modified)+'\n');}


        if(this.modified && !this.updated){this.updated=this.modified;}
        if(this.updated){s.push(''+dojo.date.stamp.toISOString(this.updated)+'\n');}
        if(this.published){s.push(''+dojo.date.stamp.toISOString(this.published)+'\n');}
        if(this.icon){s.push(''+this.icon+'\n');}
        if(this.language){s.push(''+this.language+'\n');}
        if(this.logo){s.push(''+this.logo+'\n');}
        if(this.subtitle){s.push(this.subtitle.toString());}
        if(this.tagline){s.push(this.tagline.toString());}
        //TODO: need to figure out what to do with xmlBase
        var arrays = [this.alternateLinks,this.authors,this.categories,this.contributors,this.otherLinks,this.extensions,this.entries];
        for(i in arrays){
         if(arrays[i]){
          for(var x in arrays[i]){
           s.push(arrays[i][x]);
          }
         }
        }
        s.push('
      ');
        return s.join('');
    • summary
      Function to construct string form of the feed tag, which is an XML structure.
    • description
      Function to construct string form of the feed tag, which is an XML structure.
  • dojox.atom.io.model.Feed.createEntry

    • type
      Function
    • source: [view]
        var entry = new dojox.atom.io.model.Entry();
        entry.feedUrl = this.getSelfHref();
        return entry; //object
    • summary
      Function to Create a new entry object in the feed.
    • description
      Function to Create a new entry object in the feed.
    • return_summary
      An empty entry object in the feed.
    • returns
      object
  • dojox.atom.io.model.Feed.getSelfHref

    • type
      Function
    • source: [view]
        if(this.links === null || this.links.length === 0){
         return null;
        }
        for(var x in this.links){
         if(this.links[x].rel && this.links[x].rel == "self"){
          return this.links[x].href; //string
         }
        }
        return null;
    • summary
      Function to get the href that refers to this feed.
    • description
      Function to get the href that refers to this feed.
    • return_summary
      The href that refers to this feed or null if none.
    • returns
      string
  • dojox.atom.io.model.Feed.entries

    • summary
  • dojox.atom.io.model.Feed.entries.length

    • summary
  • dojox.atom.io.model.Feed.rights

    • summary
  • dojox.atom.io.model.Feed.updated

    • summary
  • dojox.atom.io.model.Feed.links

    • summary
  • dojox.atom.io.model.Service

    • type
      Function
    • chains:
      • dojox.atom.io.model.AtomItem: (prototype)
      • dojox.atom.io.model.AtomItem: (call)
    • summary
      Class container for 'Feed' types.
    • description
      Class container for 'Feed' types.
    • parameters:
      • href: (typeof )
    • source: [view]
        this.href = href;
  • dojox.atom.io.model.Service.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to process for content.
    • source: [view]
        var i;
        this.workspaces = [];
        if(node.tagName != "service"){
         // FIXME: Need 0.9 DOM util...
         //node = dojox.xml.parser.firstElement(node,"service");
         //if(!node){return;}
         return;
        }
        if(node.namespaceURI != dojox.atom.io.model._Constants.PURL_NS && node.namespaceURI != dojox.atom.io.model._Constants.APP_NS){return;}
        var ns = node.namespaceURI;
        this.name_space = node.namespaceURI;
        //find all workspaces, and create them
        var workspaces ;
        if(typeof(node.getElementsByTagNameNS)!= "undefined"){
         workspaces = node.getElementsByTagNameNS(ns,"workspace");
        }else{
         // This block is IE only, which doesn't have a 'getElementsByTagNameNS' function
         workspaces = [];
         var temp = node.getElementsByTagName('workspace');
         for(i=0; i    if(temp[i].namespaceURI == ns){
           workspaces.push(temp[i]);
          }
         }
        }
        if(workspaces && workspaces.length > 0){
         var wkLen = 0;
         var workspace;
         for(i = 0; i< workspaces.length; i++){
          workspace = (typeof(workspaces.item)==="undefined"?workspaces[i]:workspaces.item(i));
          var wkspace = new dojox.atom.io.model.Workspace();
          wkspace.buildFromDom(workspace);
          this.workspaces[wkLen++] = wkspace;
         }
        }
    • summary
      Function to do construction of the Service data from the DOM node containing it.
    • description
      Function to do construction of the Service data from the DOM node containing it.
  • dojox.atom.io.model.Service.getCollection

    • type
      Function
    • parameters:
      • url: (typeof String)
        e URL to match collections against.
    • source: [view]
        for(var i=0;i   var coll=this.workspaces[i].collections;
         for(var j=0;j    if(coll[j].href == url){
           return coll;
          }
         }
        }
        return null;
    • summary
      Function to collections that match a specific url.
    • description
      Function to collections that match a specific url.
  • dojox.atom.io.model.Service.workspaces

    • summary
  • dojox.atom.io.model.Service.name_space

    • summary
  • dojox.atom.io.model.Service.href

    • summary
  • dojox.atom.io.model.Workspace

    • type
      Function
    • chains:
      • dojox.atom.io.model.AtomItem: (prototype)
      • dojox.atom.io.model.AtomItem: (call)
    • summary
      Class container for 'Workspace' types.
    • description
      Class container for 'Workspace' types.
    • parameters:
      • title: (typeof )
    • source: [view]
        this.title = title;
        this.collections = [];
  • dojox.atom.io.model.Workspace.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to process for content.
    • source: [view]
        var name = dojox.atom.io.model.util.getNodename(node);
        if(name != "workspace"){return;}
        var c = node.childNodes;
        var len = 0;
        for(var i = 0; i< c.length; i++){
         var child = c[i];
         if(child.nodeType === 1){
          name = dojox.atom.io.model.util.getNodename(child);
          if(child.namespaceURI == dojox.atom.io.model._Constants.PURL_NS || child.namespaceURI == dojox.atom.io.model._Constants.APP_NS){
           if(name === "collection"){
            var coll = new dojox.atom.io.model.Collection();
            coll.buildFromDom(child);
            this.collections[len++] = coll;
           }
          }else if(child.namespaceURI === dojox.atom.io.model._Constants.ATOM_NS){
           if(name === "title"){
            this.title = dojox.xml.parser.textContent(child);
           }
          }
          //FIXME: Add an extension point so others can impl different namespaces. For now just
          //ignore unknown namespace tags.
         }
        }
    • summary
      Function to do construction of the Workspace data from the DOM node containing it.
    • description
      Function to do construction of the Workspace data from the DOM node containing it.
  • dojox.atom.io.model.Workspace.title

    • summary
  • dojox.atom.io.model.Workspace.collections

    • summary
  • dojox.atom.io.model.Collection

    • type
      Function
    • chains:
      • dojox.atom.io.model.AtomItem: (prototype)
      • dojox.atom.io.model.AtomItem: (call)
    • summary
      Class container for 'Collection' types.
    • description
      Class container for 'Collection' types.
    • parameters:
      • href: (typeof )
      • title: (typeof )
    • source: [view]
        this.href = href;
        this.title = title;
        this.attributes = [];
        this.features = [];
        this.children = [];
        this.memberType = null;
        this.id = null;
  • dojox.atom.io.model.Collection.buildFromDom

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to process for content.
    • source: [view]
        this.href = node.getAttribute("href");
        var c = node.childNodes;
        for(var i = 0; i< c.length; i++){
         var child = c[i];
         if(child.nodeType === 1){
          var name = dojox.atom.io.model.util.getNodename(child);
          if(child.namespaceURI == dojox.atom.io.model._Constants.PURL_NS || child.namespaceURI == dojox.atom.io.model._Constants.APP_NS){
           if(name === "member-type"){
            this.memberType = dojox.xml.parser.textContent(child);
           }else if(name == "feature"){//this IF stmt might need some more work
            if(child.getAttribute("id")){this.features.push(child.getAttribute("id"));}
           }else{
            var unknownTypeChild = new dojox.atom.io.model.Node();
            unknownTypeChild.buildFromDom(child);
            this.children.push(unknownTypeChild);
           }
          }else if(child.namespaceURI === dojox.atom.io.model._Constants.ATOM_NS){
           if(name === "id"){
            this.id = dojox.xml.parser.textContent(child);
           }else if(name === "title"){
            this.title = dojox.xml.parser.textContent(child);
           }
          }
         }
        }
    • summary
      Function to do construction of the Collection data from the DOM node containing it.
    • description
      Function to do construction of the Collection data from the DOM node containing it.
  • dojox.atom.io.model.Collection.href

    • summary
  • dojox.atom.io.model.Collection.memberType

    • summary
  • dojox.atom.io.model.Collection.id

    • summary
  • dojox.atom.io.model.Collection.title

    • summary
  • dojox.atom.io.model.Collection.attributes

    • summary
  • dojox.atom.io.model.Collection.features

    • summary
  • dojox.atom.io.model.Collection.children

    • summary
  • dojox.atom.io.model._Constants

    • type
      Object
    • summary
      Container for general constants.
    • description
      Container for general constants.
  • dojox.atom.io.model._Constants.ATOM_URI

    • summary
  • dojox.atom.io.model._Constants.ATOM_NS

    • summary
  • dojox.atom.io.model._Constants.PURL_NS

    • summary
  • dojox.atom.io.model._Constants.APP_NS

    • summary
  • dojox.atom.io.model._actions

    • type
      Object
    • summary
      Container for tag handling functions.
    • description
      Container for tag handling functions.  Each child of this container is
      a handler function for the given type of node. Each accepts two parameters:
      obj:  Object.
      The object to insert data into.
      node: DOM Node.
      The dom node containing the data
  • dojox.atom.io.model._actions.link

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        if(obj.links === null){obj.links = [];}
        var link = new dojox.atom.io.model.Link();
        link.buildFromDom(node);
        obj.links.push(link);
    • summary
  • dojox.atom.io.model._actions.author

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        if(obj.authors === null){obj.authors = [];}
        var person = new dojox.atom.io.model.Person("author");
        person.buildFromDom(node);
        obj.authors.push(person);
    • summary
  • dojox.atom.io.model._actions.contributor

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        if(obj.contributors === null){obj.contributors = [];}
        var person = new dojox.atom.io.model.Person("contributor");
        person.buildFromDom(node);
        obj.contributors.push(person);
    • summary
  • dojox.atom.io.model._actions.category

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        if(obj.categories === null){obj.categories = [];}
        var cat = new dojox.atom.io.model.Category();
        cat.buildFromDom(node);
        obj.categories.push(cat);
    • summary
  • dojox.atom.io.model._actions.icon

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.icon = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.id

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.id = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.rights

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.rights = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.subtitle

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        var cnt = new dojox.atom.io.model.Content("subtitle");
        cnt.buildFromDom(node);
        obj.subtitle = cnt;
    • summary
  • dojox.atom.io.model._actions.title

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        var cnt = new dojox.atom.io.model.Content("title");
        cnt.buildFromDom(node);
        obj.title = cnt;
    • summary
  • dojox.atom.io.model._actions.updated

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.updated = dojox.atom.io.model.util.createDate(node);
    • summary
  • dojox.atom.io.model._actions.issued

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.issued = dojox.atom.io.model.util.createDate(node);
    • summary
  • dojox.atom.io.model._actions.modified

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.modified = dojox.atom.io.model.util.createDate(node);
    • summary
  • dojox.atom.io.model._actions.published

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.published = dojox.atom.io.model.util.createDate(node);
    • summary
  • dojox.atom.io.model._actions.entry

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        if(obj.entries === null){obj.entries = [];}
        //The object passed in should be a Feed object, since only feeds can contain Entries
        var entry = obj.createEntry ? obj.createEntry() : new dojox.atom.io.model.Entry();
        entry.buildFromDom(node);
        obj.entries.push(entry);
    • summary
  • dojox.atom.io.model._actions.content

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        var cnt = new dojox.atom.io.model.Content("content");
        cnt.buildFromDom(node);
        obj.content = cnt;
    • summary
  • dojox.atom.io.model._actions.summary

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        var summary = new dojox.atom.io.model.Content("summary");
        summary.buildFromDom(node);
        obj.summary = summary;
    • summary
  • dojox.atom.io.model._actions.name

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.name = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.email"

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.email = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.uri"

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.uri = dojox.xml.parser.textContent(node);
    • summary
  • dojox.atom.io.model._actions.generator"

    • type
      Function
    • parameters:
      • obj: (typeof )
      • node: (typeof )
    • source: [view]
        obj.generator = new dojox.atom.io.model.Generator();
        obj.generator.buildFromDom(node);
    • summary
  • dojox.atom.io.model.util

    • type
      Object
    • summary
  • dojox.atom.io.model.util.createDate

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node to inspect.
    • source: [view]
        var textContent = dojox.xml.parser.textContent(node);
        if(textContent){
         return dojo.date.stamp.fromISOString(dojo.trim(textContent));
        }
        return null;
    • summary
      Utility function to create a date from a DOM node's text content.
    • description
      Utility function to create a date from a DOM node's text content.
    • return_summary
      Date object from a DOM Node containing a ISO-8610 string.
  • dojox.atom.io.model.util.escapeHtml

    • type
      Function
    • parameters:
      • str: (typeof String)
        The string to escape
    • source: [view]
        return str.replace(/&/gm, "&").replace(//gm, ">").replace(/"/gm, """)
         .replace(/'/gm, "'"); // String
    • summary
      Utility function to escape XML special characters in an HTML string.
    • description
      Utility function to escape XML special characters in an HTML string.
    • return_summary
      HTML String with special characters (<,>,&, ", etc,) escaped.
  • dojox.atom.io.model.util.unEscapeHtml

    • type
      Function
    • parameters:
      • str: (typeof String)
        The string to un-escape.
    • source: [view]
        return str.replace(/</gm, "<").replace(/>/gm, ">").replace(/"/gm, "\"")
         .replace(/'/gm, "'").replace(/&/gm, "&"); // String
    • summary
      Utility function to un-escape XML special characters in an HTML string.
    • description
      Utility function to un-escape XML special characters in an HTML string.
    • return_summary
      HTML String converted back to the normal text (unescaped) characters (<,>,&, ", etc,).
  • dojox.atom.io.model.util.getNodename

    • type
      Function
    • parameters:
      • node: (typeof DOM node)
        The DOM node whose name to retrieve.
    • source: [view]
        var name = null;
        if(node !== null){
         name = node.localName ? node.localName: node.nodeName;
         if(name !== null){
          var nsSep = name.indexOf(":");
          if(nsSep !== -1){
           name = name.substring((nsSep + 1), name.length);
          }
         }
        }
        return name;
    • summary
      Utility function to get a node name and deal with IE's bad handling of namespaces
      on tag names.
    • description
      Utility function to get a node name and deal with IE's bad handling of namespaces
      on tag names.
    • return_summary
      String
      The name without namespace prefixes.
  • dojox.atom.io.model

    • type
      Object
    • summary
  • dojox.atom.io

    • type
      Object
    • summary
  • dojox.atom

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary