com.plumtree.portaluiinfrastructure.tags.xml
Class TransformerMarkupFragment

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.tags.xml.TransformerMarkupFragment
All Implemented Interfaces:
IMarkupFragment

public class TransformerMarkupFragment
extends java.lang.Object
implements IMarkupFragment

Implementation of IMarkupFragment.


Constructor Summary
TransformerMarkupFragment(int _type)
          Construct a marker fragment with no body.
TransformerMarkupFragment(IXMLFragment tag)
          A parsed PT XML tag for later post-processing.
TransformerMarkupFragment(java.lang.String sMarkup)
          Construct a finished fragment.
 
Method Summary
 java.lang.Object GetFragment()
          Get the fragment.
 int GetFragmentType()
           
 java.lang.String GetStringFragment()
          Get the string fragment.
 IXMLFragment GetXMLFragment()
          Get the xml fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerMarkupFragment

public TransformerMarkupFragment(int _type)
Construct a marker fragment with no body.

Parameters:
_type - The type of the marker fragment.

TransformerMarkupFragment

public TransformerMarkupFragment(java.lang.String sMarkup)
Construct a finished fragment.

Parameters:
sMarkup - the markup

TransformerMarkupFragment

public TransformerMarkupFragment(IXMLFragment tag)
A parsed PT XML tag for later post-processing.

Parameters:
tag -
Method Detail

GetFragmentType

public int GetFragmentType()
Specified by:
GetFragmentType in interface IMarkupFragment
Returns:
int The fragment type (should be from PT_MARKUP_FRAGMENT_TYPES).
See Also:
com.plumtree.transformer.xml.IMarkupFragment#GetFragmentType()

GetStringFragment

public java.lang.String GetStringFragment()
Description copied from interface: IMarkupFragment
Get the string fragment. This can only be called for Fragments of type PTMarkupFragmentTypes.PT_MARKUP_FRAGMENT_TYPE_FINISHED.

Specified by:
GetStringFragment in interface IMarkupFragment
Returns:
the String.
See Also:
com.plumtree.transformer.xml.IMarkupFragment#GetStringFragment()

GetXMLFragment

public IXMLFragment GetXMLFragment()
Description copied from interface: IMarkupFragment
Get the xml fragment. This can only be called for Fragments of type PTMarkupFragmentTypes.PT_MARKUP_FRAGMENT_TYPE_PT_XML.

Specified by:
GetXMLFragment in interface IMarkupFragment
Returns:
the XML Fragment.
See Also:
com.plumtree.transformer.xml.IMarkupFragment#GetXMLFragment()

GetFragment

public java.lang.Object GetFragment()
Description copied from interface: IMarkupFragment
Get the fragment. This can be called for any type of Fragment.

Specified by:
GetFragment in interface IMarkupFragment
Returns:
The underlying fragment object.
See Also:
com.plumtree.transformer.xml.IMarkupFragment#GetFragment()



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