org.millscript.millscript.datatypes
Class CDATA

java.lang.Object
  extended by org.millscript.millscript.datatypes.CDATA
All Implemented Interfaces:
java.io.Serializable, Renderable

public final class CDATA
extends java.lang.Object
implements Renderable, java.io.Serializable

The class implements the CDATA type for MillScript. CDATA is

See Also:
Serialized Form

Constructor Summary
CDATA(java.lang.Object[] x)
          Constructs a new CDATA object using the specified array as it's backing array.
 
Method Summary
 java.lang.Object[] getStore()
          Returns the backing array used by this CDATA object.
 void render(Renderer r)
          This method is called to render the implementing object to the specified renderer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDATA

public CDATA(java.lang.Object[] x)
Constructs a new CDATA object using the specified array as it's backing array.

Parameters:
x - the array to use as a backing array for this CDATA object
Method Detail

getStore

public java.lang.Object[] getStore()
Returns the backing array used by this CDATA object.

Returns:
Returns the store for this CDATA object

render

public void render(Renderer r)
            throws java.io.IOException
Description copied from interface: Renderable
This method is called to render the implementing object to the specified renderer.

If the implementing object is not a core part of MillScript you may need to query what type of renderer it is, so you can further customise your rendering as appropriate.

Specified by:
render in interface Renderable
Parameters:
r - the renderer to render this object with
Throws:
java.io.IOException - thrown if an IO problem occurs
See Also:
Renderable.render(org.millscript.millscript.render.Renderer)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.