com.melloware.jspiff.jaxp
Class RString

java.lang.Object
  extended by com.melloware.jspiff.jaxp.RString
All Implemented Interfaces:
IXspfAnythingMixed, IXspfExtensionMixed, Serializable, Cloneable

public class RString
extends Object
implements Serializable, Cloneable, IXspfExtensionMixed, IXspfAnythingMixed

RString is a text container class which is used for mixed.

Version:
xspf.rng 1.0 (Wed Sep 27 17:36:25 EDT 2006)
Author:
Relaxer 1.1b (http://www.relaxer.org), Emil A. Lefkof III
See Also:
Serialized Form

Constructor Summary
RString()
          Creates a RString.
RString(Node node)
          Creates a RString by the DOM node node.
RString(Object object)
          Creates a RString by the Object object.
RString(RStack stack)
          Creates a RString by the Stack stack.
RString(RString source)
          Creates a RString by the Rstring source.
RString(String text)
          Creates a RString by the String text.
 
Method Summary
 Object clone()
          Clones the String.
 Object getContent()
          Gets the content.
 String getContentAsString()
          Gets the text content as String.
 Node getNode()
          Gets the DOM node.
 Object getObject()
          Gets the object.
 String getText()
          Gets the text.
 boolean isCdata()
          Checks whether cdata or not.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the RString.
 void makeElement(Node node)
          Creates a DOM representation of the object.
 void makeTextAttribute(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextAttribute(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextAttribute(Writer buffer)
          Makes an XML text representation.
 void makeTextElement(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextElement(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextElement(Writer buffer)
          Makes an XML text representation.
 void setCdata(boolean cdata)
          Sets wheter cdata or not.
 void setContent(Object value)
          Sets the content.
 void setNode(Node node)
          Sets the DOM node.
 void setObject(Object object)
          Sets the DOM node.
 void setText(String text)
          Sets the text.
 void setup(RStack stack)
          Initializes the RString by the Stack stack that contains Elements.
 String toString()
          Gets the String.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RString

public RString()
Creates a RString.


RString

public RString(String text)
Creates a RString by the String text.

Parameters:
text -

RString

public RString(Node node)
Creates a RString by the DOM node node.

Parameters:
node -

RString

public RString(Object object)
Creates a RString by the Object object.

Parameters:
object -

RString

public RString(RString source)
Creates a RString by the Rstring source.

Parameters:
source -

RString

public RString(RStack stack)
Creates a RString by the Stack stack. This constructor is supposed to be used internallyby the Relaxer system.

Parameters:
stack -
Method Detail

isMatch

public static boolean isMatch(RStack stack)
Tests if elements contained in a Stack stack is valid for the RString. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean

getContent

public Object getContent()
Gets the content.

Returns:
Object

getContentAsString

public String getContentAsString()
Gets the text content as String.

Returns:
String

getNode

public Node getNode()
Gets the DOM node.

Returns:
org.w3c.dom.Node

getObject

public Object getObject()
Gets the object.

Returns:
Object

getText

public String getText()
Gets the text.

Returns:
String

setCdata

public void setCdata(boolean cdata)
Sets wheter cdata or not.

Parameters:
cdata -

setContent

public void setContent(Object value)
Sets the content.

Parameters:
value -

setNode

public void setNode(Node node)
Sets the DOM node.

Parameters:
node -

setObject

public void setObject(Object object)
Sets the DOM node.

Parameters:
object -

setText

public void setText(String text)
Sets the text.

Parameters:
text -

isCdata

public boolean isCdata()
Checks whether cdata or not.

Returns:
boolean

clone

public Object clone()
Clones the String.

Specified by:
clone in interface IXspfAnythingMixed
Specified by:
clone in interface IXspfExtensionMixed
Overrides:
clone in class Object
Returns:
Object

makeElement

public void makeElement(Node node)
Creates a DOM representation of the object. Result is appended to the Node parent.

Specified by:
makeElement in interface IXspfAnythingMixed
Specified by:
makeElement in interface IXspfExtensionMixed
Parameters:
node -

makeTextAttribute

public void makeTextAttribute(StringBuffer buffer)
Makes an XML text representation.

Specified by:
makeTextAttribute in interface IXspfAnythingMixed
Specified by:
makeTextAttribute in interface IXspfExtensionMixed
Parameters:
buffer -

makeTextAttribute

public void makeTextAttribute(Writer buffer)
                       throws IOException
Makes an XML text representation.

Specified by:
makeTextAttribute in interface IXspfAnythingMixed
Specified by:
makeTextAttribute in interface IXspfExtensionMixed
Parameters:
buffer -
Throws:
IOException

makeTextAttribute

public void makeTextAttribute(PrintWriter buffer)
Makes an XML text representation.

Specified by:
makeTextAttribute in interface IXspfAnythingMixed
Specified by:
makeTextAttribute in interface IXspfExtensionMixed
Parameters:
buffer -

makeTextElement

public void makeTextElement(StringBuffer buffer)
Makes an XML text representation.

Specified by:
makeTextElement in interface IXspfAnythingMixed
Specified by:
makeTextElement in interface IXspfExtensionMixed
Parameters:
buffer -

makeTextElement

public void makeTextElement(Writer buffer)
                     throws IOException
Makes an XML text representation.

Specified by:
makeTextElement in interface IXspfAnythingMixed
Specified by:
makeTextElement in interface IXspfExtensionMixed
Parameters:
buffer -
Throws:
IOException

makeTextElement

public void makeTextElement(PrintWriter buffer)
Makes an XML text representation.

Specified by:
makeTextElement in interface IXspfAnythingMixed
Specified by:
makeTextElement in interface IXspfExtensionMixed
Parameters:
buffer -

setup

public void setup(RStack stack)
Initializes the RString by the Stack stack that contains Elements. This constructor is supposed to be used internallyby the Relaxer system.

Specified by:
setup in interface IXspfAnythingMixed
Specified by:
setup in interface IXspfExtensionMixed
Parameters:
stack -

toString

public String toString()
Gets the String.

Specified by:
toString in interface IXspfAnythingMixed
Specified by:
toString in interface IXspfExtensionMixed
Overrides:
toString in class Object
Returns:
String


Copyright © 1999-2006 Melloware Inc. All Rights Reserved.