Package org.rometools.feed.module.slash

Examples of org.rometools.feed.module.slash.Slash


    }
   
    public void generate(Module module, Element element) {
  if( !( module instanceof Slash) )
      return;
  Slash slash = (Slash) module;
  if(slash.getComments() != null ){
      element.addContent( this.generateSimpleElement("comments", slash.getComments().toString()));     
  }
  if(slash.getDepartment() != null){
      element.addContent( this.generateSimpleElement("department", slash.getDepartment()));     
  }
  if(slash.getSection() != null){
      element.addContent( this.generateSimpleElement("section", slash.getSection()));     
  }
  if(slash.getHitParade() != null && slash.getHitParade().length > 0 ){
      StringBuffer buff = new StringBuffer();
      Integer[] p = slash.getHitParade();
      for(int i=0; i < p.length; i++){
    if(i!= 0)
        buff.append(",");
    buff.append( p[i] );
      }
View Full Code Here

TOP

Related Classes of org.rometools.feed.module.slash.Slash

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.