//# 0 errors, 175 messages
//#
/*
    //#AtomService.java:1:1: class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
* Licensed to the Apache Software Foundation (ASF) under one or more
*  contributor license agreements.  The ASF licenses this file to You
* under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.  For additional information regarding
* copyright in this work, please see the NOTICE file in the top level
* directory of this distribution.
*/ 
package org.apache.roller.weblogger.webservices.atomprotocol;


import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.Namespace;

/**
 * This class models an Atom Publishing Protocol AtomService Document.
 * Based on: draft-ietf-atompub-protocol-15.txt.
 * Designed to be Roller independent.
 */
public class AtomService {

    private List workspaces = new ArrayList();
    
    /** Namespace for Atom Syndication Format */
    public static Namespace ATOM_FORMAT = 
    //#AtomService.java:39: method: org.apache.roller.weblogger.webservices.atomprotocol.AtomService.org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init
    //#AtomService.java:39: Warning: method not available
    //#    -- call on Namespace org.jdom.Namespace:getNamespace(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init
    //#    unanalyzed callee: Namespace org.jdom.Namespace:getNamespace(String, String)
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): ATOM_FORMAT
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): ATOM_PROTOCOL
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/AtomService]
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.addWorkspace(Lorg/apache/roller/weblogger/webservices/atomprotocol/Workspace;)V
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.findWorkspace(Ljava/lang/String;)Lorg/apache/roller/weblogger/webservices/atomprotocol/Workspace;
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.getWorkspaces()Ljava/util/List;
    //#output(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.setWorkspaces(Ljava/util/List;)V
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): init'ed(ATOM_FORMAT)
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): init'ed(ATOM_PROTOCOL)
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/AtomService] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.addWorkspace(Lorg/apache/roller/weblogger/webservices/atomprotocol/Workspace;)V == &addWorkspace
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.findWorkspace(Ljava/lang/String;)Lorg/apache/roller/weblogger/webservices/atomprotocol/Workspace; == &findWorkspace
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.getWorkspaces()Ljava/util/List; == &getWorkspaces
    //#post(org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init): __Dispatch_Table.setWorkspaces(Ljava/util/List;)V == &setWorkspaces
        Namespace.getNamespace("atom","http://www.w3.org/2005/Atom");
    
    /** Namespace for Atom Publishing Protocol */
    public static Namespace ATOM_PROTOCOL = 
    //#AtomService.java:43: Warning: method not available
    //#    -- call on Namespace org.jdom.Namespace:getNamespace(String, String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init
    //#    unanalyzed callee: Namespace org.jdom.Namespace:getNamespace(String, String)
    //#AtomService.java:43: end of method: org.apache.roller.weblogger.webservices.atomprotocol.AtomService.org.apache.roller.weblogger.webservices.atomprotocol.AtomService__static_init
        Namespace.getNamespace("app","http://www.w3.org/2007/app");  
        
    public AtomService() {
    //#AtomService.java:46: method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.org.apache.roller.weblogger.webservices.atomprotocol.AtomService()
    //#input(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): this
    //#output(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): new ArrayList(AtomService#1) num objects
    //#output(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): this.workspaces
    //#new obj(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): new ArrayList(AtomService#1)
    //#post(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): this.workspaces == &new ArrayList(AtomService#1)
    //#post(void org.apache.roller.weblogger.webservices.atomprotocol.AtomService()): new ArrayList(AtomService#1) num objects == 1
    }
    //#AtomService.java:47: end of method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.org.apache.roller.weblogger.webservices.atomprotocol.AtomService()
    
    public void addWorkspace(Workspace workspace) {
        workspaces.add(workspace);
    //#AtomService.java:50: method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.addWorkspace(Workspace)
    //#input(void addWorkspace(Workspace)): this
    //#input(void addWorkspace(Workspace)): this.workspaces
    //#input(void addWorkspace(Workspace)): workspace
    //#pre[2] (void addWorkspace(Workspace)): this.workspaces != null
    }
    //#AtomService.java:51: end of method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.addWorkspace(Workspace)
    
    public List getWorkspaces() {
        return workspaces;
    //#AtomService.java:54: method: List org.apache.roller.weblogger.webservices.atomprotocol.AtomService.getWorkspaces()
    //#input(List getWorkspaces()): this
    //#input(List getWorkspaces()): this.workspaces
    //#output(List getWorkspaces()): return_value
    //#pre[2] (List getWorkspaces()): init'ed(this.workspaces)
    //#post(List getWorkspaces()): return_value == this.workspaces
    //#post(List getWorkspaces()): init'ed(return_value)
    //#AtomService.java:54: end of method: List org.apache.roller.weblogger.webservices.atomprotocol.AtomService.getWorkspaces()
    }
    
    public void setWorkspaces(List workspaces) {
        this.workspaces = workspaces;
    //#AtomService.java:58: method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.setWorkspaces(List)
    //#input(void setWorkspaces(List)): this
    //#input(void setWorkspaces(List)): workspaces
    //#output(void setWorkspaces(List)): this.workspaces
    //#post(void setWorkspaces(List)): this.workspaces == workspaces
    //#post(void setWorkspaces(List)): init'ed(this.workspaces)
    }
    //#AtomService.java:59: end of method: void org.apache.roller.weblogger.webservices.atomprotocol.AtomService.setWorkspaces(List)
    
    public Workspace findWorkspace(String title) {
        for (Iterator it = workspaces.iterator(); it.hasNext();) {
    //#AtomService.java:62: method: Workspace org.apache.roller.weblogger.webservices.atomprotocol.AtomService.findWorkspace(String)
    //#input(Workspace findWorkspace(String)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Workspace]
    //#input(Workspace findWorkspace(String)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Descendant_Table[others]
    //#input(Workspace findWorkspace(String)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(Workspace findWorkspace(String)): this
    //#input(Workspace findWorkspace(String)): this.workspaces
    //#input(Workspace findWorkspace(String)): title
    //#output(Workspace findWorkspace(String)): return_value
    //#pre[2] (Workspace findWorkspace(String)): this.workspaces != null
    //#pre[3] (Workspace findWorkspace(String)): (soft) title != null
    //#presumption(Workspace findWorkspace(String)): java.util.Iterator:next(...).__Tag@63 == org/apache/roller/weblogger/webservices/atomprotocol/Workspace
    //#presumption(Workspace findWorkspace(String)): java.util.Iterator:next(...)@63 != null
    //#post(Workspace findWorkspace(String)): (soft) init'ed(return_value)
    //#test_vector(Workspace findWorkspace(String)): java.lang.String:equals(...)@64: {0}, {1}
    //#test_vector(Workspace findWorkspace(String)): java.util.Iterator:hasNext(...)@62: {0}, {1}
            Workspace ws = (Workspace) it.next();
            if (title.equals(ws.getTitle())) {
                return ws;
            }
        }
        return null;
    //#AtomService.java:68: end of method: Workspace org.apache.roller.weblogger.webservices.atomprotocol.AtomService.findWorkspace(String)
    }

    /** Deserialize an Atom service XML document into an object */
    public static AtomService documentToService(Document document) {
        AtomService service = new AtomService();
    //#AtomService.java:73: method: AtomService org.apache.roller.weblogger.webservices.atomprotocol.AtomService.documentToService(Document)
    //#input(AtomService documentToService(Document)): ATOM_FORMAT
    //#input(AtomService documentToService(Document)): ATOM_PROTOCOL
    //#input(AtomService documentToService(Document)): __Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/AtomService]
    //#input(AtomService documentToService(Document)): __Dispatch_Table.addWorkspace(Lorg/apache/roller/weblogger/webservices/atomprotocol/Workspace;)V
    //#input(AtomService documentToService(Document)): document
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Categories]
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Dispatch_Table.addCategory(Lcom/sun/syndication/feed/atom/Category;)V
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Dispatch_Table.setFixed(Z)V
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Collection]
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.addAccept(Ljava/lang/String;)V
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.addCategories(Lorg/apache/roller/weblogger/webservices/atomprotocol/Categories;)V
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Workspace]
    //#input(AtomService documentToService(Document)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Dispatch_Table.addCollection(Lorg/apache/roller/weblogger/webservices/atomprotocol/Collection;)V
    //#output(AtomService documentToService(Document)): new ArrayList(AtomService#1) num objects
    //#output(AtomService documentToService(Document)): new AtomService(documentToService#1) num objects
    //#output(AtomService documentToService(Document)): return_value.__Tag
    //#output(AtomService documentToService(Document)): return_value.workspaces
    //#output(AtomService documentToService(Document)): return_value
    //#new obj(AtomService documentToService(Document)): new ArrayList(AtomService#1)
    //#new obj(AtomService documentToService(Document)): new AtomService(documentToService#1)
    //#pre[2] (AtomService documentToService(Document)): init'ed(ATOM_PROTOCOL)
    //#pre[3] (AtomService documentToService(Document)): document != null
    //#pre[1] (AtomService documentToService(Document)): (soft) init'ed(ATOM_FORMAT)
    //#presumption(AtomService documentToService(Document)): java.util.Iterator:next(...)@78 != null
    //#presumption(AtomService documentToService(Document)): org.jdom.Document:getRootElement(...)@74 != null
    //#presumption(AtomService documentToService(Document)): org.jdom.Element:getChildren(...)@75 != null
    //#post(AtomService documentToService(Document)): return_value == &new AtomService(documentToService#1)
    //#post(AtomService documentToService(Document)): new ArrayList(AtomService#1) num objects == 1
    //#post(AtomService documentToService(Document)): new AtomService(documentToService#1) num objects == 1
    //#post(AtomService documentToService(Document)): return_value.__Tag == org/apache/roller/weblogger/webservices/atomprotocol/AtomService
    //#post(AtomService documentToService(Document)): return_value.workspaces == &new ArrayList(AtomService#1)
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.List:add
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:java.util.List:size
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getChild
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getText
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getAttribute
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Attribute:getValue
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getChildren
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getTextTrim
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:com.sun.syndication.feed.atom.Category
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:org.jdom.Element:getAttributeValue
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:com.sun.syndication.feed.atom.Category:setTerm
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:com.sun.syndication.feed.atom.Category:setLabel
    //#unanalyzed(AtomService documentToService(Document)): Effects-of-calling:com.sun.syndication.feed.atom.Category:setScheme
    //#test_vector(AtomService documentToService(Document)): java.util.Iterator:hasNext(...)@77: {0}, {1}
        Element root = document.getRootElement();
    //#AtomService.java:74: Warning: method not available
    //#    -- call on Element org.jdom.Document:getRootElement()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: AtomService documentToService(Document)
    //#    unanalyzed callee: Element org.jdom.Document:getRootElement()
        List spaces = root.getChildren("workspace", ATOM_PROTOCOL);
    //#AtomService.java:75: Warning: method not available
    //#    -- call on List org.jdom.Element:getChildren(String, Namespace)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: AtomService documentToService(Document)
    //#    unanalyzed callee: List org.jdom.Element:getChildren(String, Namespace)
        Iterator iter = spaces.iterator();
        while (iter.hasNext()) {
            Element e = (Element) iter.next();
            service.addWorkspace(Workspace.elementToWorkspace(e));
        }
        return service;
    //#AtomService.java:81: end of method: AtomService org.apache.roller.weblogger.webservices.atomprotocol.AtomService.documentToService(Document)
    }
    
    /**
     * Serialize an AtomService object into an XML document
     */
    public static Document serviceToDocument(AtomService service) {
        Document doc = new Document();
    //#AtomService.java:88: method: Document org.apache.roller.weblogger.webservices.atomprotocol.AtomService.serviceToDocument(AtomService)
    //#AtomService.java:88: Warning: method not available
    //#    -- call on void org.jdom.Document()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: Document serviceToDocument(AtomService)
    //#    unanalyzed callee: void org.jdom.Document()
    //#input(Document serviceToDocument(AtomService)): ATOM_FORMAT
    //#input(Document serviceToDocument(AtomService)): ATOM_PROTOCOL
    //#input(Document serviceToDocument(AtomService)): __Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/AtomService]
    //#input(Document serviceToDocument(AtomService)): __Descendant_Table[others]
    //#input(Document serviceToDocument(AtomService)): __Dispatch_Table.getWorkspaces()Ljava/util/List;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Categories]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Descendant_Table[others]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Dispatch_Table.getCategories()Ljava/util/List;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Dispatch_Table.getScheme()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Categories.__Dispatch_Table.isFixed()Z
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Collection]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Descendant_Table[others]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.getAccepts()Ljava/util/List;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.getCategories()Ljava/util/List;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.getHref()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Collection.__Dispatch_Table.getTitleType()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Descendant_Table[org/apache/roller/weblogger/webservices/atomprotocol/Workspace]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Descendant_Table[others]
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Dispatch_Table.getCollections()Ljava/util/List;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Dispatch_Table.getTitle()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): org/apache/roller/weblogger/webservices/atomprotocol/Workspace.__Dispatch_Table.getTitleType()Ljava/lang/String;
    //#input(Document serviceToDocument(AtomService)): service
    //#input(Document serviceToDocument(AtomService)): service.__Tag
    //#input(Document serviceToDocument(AtomService)): service.workspaces
    //#output(Document serviceToDocument(AtomService)): new Document(serviceToDocument#1) num objects
    //#output(Document serviceToDocument(AtomService)): return_value
    //#new obj(Document serviceToDocument(AtomService)): new Document(serviceToDocument#1)
    //#pre[2] (Document serviceToDocument(AtomService)): init'ed(ATOM_PROTOCOL)
    //#pre[3] (Document serviceToDocument(AtomService)): service != null
    //#pre[4] (Document serviceToDocument(AtomService)): service.__Tag == org/apache/roller/weblogger/webservices/atomprotocol/AtomService
    //#pre[5] (Document serviceToDocument(AtomService)): service.workspaces != null
    //#pre[1] (Document serviceToDocument(AtomService)): (soft) init'ed(ATOM_FORMAT)
    //#presumption(Document serviceToDocument(AtomService)): java.util.Iterator:next(...).__Tag@93 == org/apache/roller/weblogger/webservices/atomprotocol/Workspace
    //#presumption(Document serviceToDocument(AtomService)): java.util.Iterator:next(...)@93 != null
    //#presumption(Document serviceToDocument(AtomService)): space.collections@93 != null
    //#post(Document serviceToDocument(AtomService)): return_value == &new Document(serviceToDocument#1)
    //#post(Document serviceToDocument(AtomService)): new Document(serviceToDocument#1) num objects == 1
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:org.jdom.Element
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:org.jdom.Element:setText
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:org.jdom.Element:addContent
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:org.jdom.Element:setAttribute
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:com.sun.syndication.feed.atom.Category:getTerm
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:com.sun.syndication.feed.atom.Category:getScheme
    //#unanalyzed(Document serviceToDocument(AtomService)): Effects-of-calling:com.sun.syndication.feed.atom.Category:getLabel
    //#test_vector(Document serviceToDocument(AtomService)): java.util.Iterator:hasNext(...)@92: {0}, {1}
        Element root = new Element("service", ATOM_PROTOCOL);
    //#AtomService.java:89: Warning: method not available
    //#    -- call on void org.jdom.Element(String, Namespace)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: Document serviceToDocument(AtomService)
    //#    unanalyzed callee: void org.jdom.Element(String, Namespace)
        doc.setRootElement(root);
    //#AtomService.java:90: Warning: method not available
    //#    -- call on Document org.jdom.Document:setRootElement(Element)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: Document serviceToDocument(AtomService)
    //#    unanalyzed callee: Document org.jdom.Document:setRootElement(Element)
        Iterator iter = service.getWorkspaces().iterator();
        while (iter.hasNext()) {
            Workspace space = (Workspace) iter.next();
            root.addContent(Workspace.workspaceToElement(space));
    //#AtomService.java:94: Warning: method not available
    //#    -- call on Element org.jdom.Element:addContent(Content)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
    //#    method: Document serviceToDocument(AtomService)
    //#    unanalyzed callee: Element org.jdom.Element:addContent(Content)
        }
        return doc;
    //#AtomService.java:96: end of method: Document org.apache.roller.weblogger.webservices.atomprotocol.AtomService.serviceToDocument(AtomService)
    }

}

    //#AtomService.java:: end of class: org.apache.roller.weblogger.webservices.atomprotocol.AtomService
