Package org.apache.stratos.manager.feature.dashbord.ui.beans

Examples of org.apache.stratos.manager.feature.dashbord.ui.beans.Story


    return link;
  }
 
  private static Story getStory(OMElement storyEle) {
    OMAttribute storyAttribtute = storyEle.getAttribute(new QName("title"));
    Story storyInfo = new Story();
    storyInfo.setTitle(storyAttribtute.getAttributeValue());
    OMElement storyContentEle = storyEle.getFirstChildWithName(new QName("story-content"));
    if (storyContentEle != null) {
      storyInfo.setContent(storyContentEle.getText());
    }
    OMElement storyLinkEle = storyEle.getFirstChildWithName(new QName("story-links"));
    if (storyLinkEle != null) {
      Iterator<OMElement> linkElements = storyLinkEle.getChildrenWithName(new QName("link"));
      while (linkElements.hasNext()) {
        OMElement linkEle = linkElements.next();
        storyInfo.addLink(getLink(linkEle));
      }
    }
   
    return storyInfo;
  }
View Full Code Here

TOP

Related Classes of org.apache.stratos.manager.feature.dashbord.ui.beans.Story

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.