portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml FragmentImpl.java
Date Tue, 04 Jan 2005 15:52:30 GMT
weaver      2005/01/04 07:52:30

  Modified:    components/page-manager/src/java/org/apache/jetspeed/om/page/psml
                        FragmentImpl.java
  Log:
  see: http://issues.apache.org/jira/browse/JS2-183
  
  Revision  Changes    Path
  1.5       +38 -1     jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/FragmentImpl.java
  
  Index: FragmentImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/om/page/psml/FragmentImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FragmentImpl.java	3 Sep 2004 13:22:05 -0000	1.4
  +++ FragmentImpl.java	4 Jan 2005 15:52:30 -0000	1.5
  @@ -43,6 +43,8 @@
       private List properties = new Vector();
       
       private String name;
  +    
  +    private String renderedContent;
   
       public FragmentImpl()
       {}
  @@ -302,5 +304,40 @@
       {
          this.name = name;
   
  +    }
  +    
  +    /**
  +     * 
  +     * <p>
  +     * getRenderedContent
  +     * </p>
  +     *
  +     * @see org.apache.jetspeed.om.page.Fragment#getRenderedContent()
  +     * @return
  +     */
  +    public String getRenderedContent()
  +    {
  +        if(renderedContent != null)
  +        {
  +            return renderedContent;
  +        }
  +        else
  +        {
  +            throw new IllegalStateException("You cannot invoke getRenderedContent() until
the content has been set.");
  +        }
  +    }
  +    
  +    /**
  +     * 
  +     * <p>
  +     * setRenderedContent
  +     * </p>
  +     *
  +     * @see org.apache.jetspeed.om.page.Fragment#setRenderedContent(java.lang.String)
  +     * @param renderedContent
  +     */
  +    public void setRenderedContent( String renderedContent )
  +    {
  +        this.renderedContent = renderedContent;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message