com.plumtree.portaluiinfrastructure.tags.xml
Interface IXMLFragment

All Known Implementing Classes:
XMLFragment

public interface IXMLFragment

This interface is used to access data in an xml markup fragment. IMPORTANT: DO NOT ADD ANY SETTERS to the IMarkupFragment interface! i.e. do NOT add a method like SetFragmentValue(...) A shallow copy of markup array is put into the portlet content cache. This means that if an actual object (i.e. MarkupFragment) that's inside the array changes in PostProcess, then what's inside the cache changes as well! So instead of having setters on a MarkupFragment, in PostProcess we create new MarkupFragments and place them into the array that will be returned to the UI. This assures that the cached markup array will not be affected by PostProcess.


Method Summary
 java.lang.String GetName(int _nRowIndex)
           
 int GetNumberOfRows()
           
 java.lang.Object[][] GetObjectXML()
           
 int GetType(int _nRowIndex)
           
 java.lang.String GetValue(int _nRowIndex)
           
 

Method Detail

GetType

int GetType(int _nRowIndex)
Returns:
int The XML type (should be from PT_XML_TYPES).

GetName

java.lang.String GetName(int _nRowIndex)
Returns:
The name of the tag or attribute.

GetValue

java.lang.String GetValue(int _nRowIndex)
Returns:
The value of an attribute.

GetNumberOfRows

int GetNumberOfRows()
Returns:
The number of rows in the XML fragment.

GetObjectXML

java.lang.Object[][] GetObjectXML()
Returns:
The underlying object XML.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.