Examples of StringElement


Examples of org.apache.ecs.StringElement

        }
       
        if (result == null)
        {
            result = new StringElement("Error retrieving Portal Page: " + msg);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.ecs.StringElement

                    Entry entry = doc.getEntryById(id);
                    if (null == entry)
                    {
                        // FIXME: need to write this function
                        // Portlets ps = doc.getPortletsById(id);
                        result = new  StringElement("not implemented - PortletElement");
                    }
                    else
                    {
                        Portlet p = PortletFactory.getPortlet( entry );
                        if (p != null)
                        {
                            result = p.getContent(rundata);
                        }
                        else
                           result = new  StringElement("Error retrieving PortletElement");

                    }
                }               
            }
            catch (Exception e)
            {
                logger.error("Exception",  e);
            }
        }
       
        if (result == null)
        {
            result = new StringElement("Error fetching pane");
        }

        return result;

    }
View Full Code Here

Examples of org.apache.ecs.StringElement

            //save the portlet markup after you have made the changes.
            this.getContentMarkup( this.getURL( provider ) ).save();

        } catch ( Throwable t ) {
            logger.error("Throwable", t);
            return new StringElement( "Can't use this provider: " + t.getMessage() );
        }
       
        ec.addElement( "Your article '" + title + "' has been posted within '" + topic + "'" );
       
        return ec;
View Full Code Here

Examples of simplenlg.framework.StringElement

    // add a premodifier the coordinate phrase, yielding
    // "seriously and undeniably incredibly salacious or amazingly beautiful
    // and stunning"
    CoordinatedPhraseElement preMod = new CoordinatedPhraseElement(
        new StringElement("seriously"), new StringElement("undeniably")); //$NON-NLS-1$//$NON-NLS-2$

    coord2.addPreModifier(preMod);
    Assert
        .assertEquals(
            "seriously and undeniably incredibly salacious or amazingly beautiful and stunning", //$NON-NLS-1$
View Full Code Here

Examples of weblogic.html.StringElement

   */
  static private void printElement(String message, ServletPage sp)
    throws IOException {
    sp.getBody()
      .addElement(new BreakElement())
      .addElement(new StringElement(message));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.