net.sf.sqs_xml.reader.model
Class FormElementsTextarea

java.lang.Object
  extended bynet.sf.sqs_xml.reader.model.FormElementsTextarea
All Implemented Interfaces:
java.lang.Cloneable, IFormElementsChoice, IRNode, IRNSContainer, java.io.Serializable

public class FormElementsTextarea
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, IRNSContainer, IRNode, IFormElementsChoice

FormElementsTextarea is generated from reader.rng by Relaxer. This class is derived from:

 <element name="textarea" ns="http://sqs.cmr.sfc.keio.ac.jp/2004/reader">
                           <attribute name="ref" java:mapKey="true"><data type="string"/></attribute>
                             <ref name="TextareaImage"/>
                         </element>

Version:
reader.rng (Fri Aug 06 03:48:33 GMT+09:00 2004)
Author:
Relaxer 1.1b (http://www.relaxer.org)
See Also:
Serialized Form

Constructor Summary
FormElementsTextarea()
          Creates a FormElementsTextarea.
FormElementsTextarea(org.w3c.dom.Document doc)
          Creates a FormElementsTextarea by the Document doc.
FormElementsTextarea(org.w3c.dom.Element element)
          Creates a FormElementsTextarea by the Element element.
FormElementsTextarea(java.io.File file)
          Creates a FormElementsTextarea by the File file.
FormElementsTextarea(FormElementsTextarea source)
          Creates a FormElementsTextarea.
FormElementsTextarea(org.xml.sax.InputSource is)
          Creates a FormElementsTextarea by the InputSource is.
FormElementsTextarea(java.io.InputStream in)
          Creates a FormElementsTextarea by the InputStream in.
FormElementsTextarea(java.io.Reader reader)
          Creates a FormElementsTextarea by the Reader reader.
FormElementsTextarea(RStack stack)
          Creates a FormElementsTextarea by the Stack stack that contains Elements.
FormElementsTextarea(java.lang.String uri)
          Creates a FormElementsTextarea by the String representation of URI uri.
FormElementsTextarea(java.net.URL url)
          Creates a FormElementsTextarea by the URL url.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getRef()
          Gets the String property ref.
 java.lang.String getRefAsString()
          Gets the property value as String.
 TextareaImage getTextareaImage()
          Gets the TextareaImage property TextareaImage.
static boolean isMatch(org.w3c.dom.Element element)
          Tests if a Element element is valid for the FormElementsTextarea.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the FormElementsTextarea.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the FormElementsTextarea.
 org.w3c.dom.Document makeDocument()
          Creates a DOM document representation of the object.
 void makeElement(org.w3c.dom.Node parent)
          Creates a DOM representation of the object.
 void makeTextAttribute(java.io.PrintWriter buffer)
          Makes an XML text representation.
 void makeTextAttribute(java.lang.StringBuffer buffer)
          Makes an XML text representation.
 void makeTextAttribute(java.io.Writer buffer)
          Makes an XML text representation.
 java.lang.String makeTextDocument()
          Makes an XML text representation.
 void makeTextElement(java.io.PrintWriter buffer)
          Makes an XML text representation.
 void makeTextElement(java.lang.StringBuffer buffer)
          Makes an XML text representation.
 void makeTextElement(java.io.Writer buffer)
          Makes an XML text representation.
 org.w3c.dom.Element rGetElement()
          Gets the element to be used in the object construction.
 IRNode rGetParentRNode()
          Gets the IRNode property parentRNode.
 IRNode[] rGetRNodes()
          Gets child RNodes.
 RNSContext rGetRNSContext()
          Gets the RNSContext property RNSContext.
 void rSetParentRNode(IRNode parentRNode)
          Sets the IRNode property parentRNode.
 void rSetRNSContext(RNSContext rNSContext)
          Sets the RNSContext property RNSContext.
 void setRef(java.lang.String ref)
          Sets the String property ref.
 void setRefByString(java.lang.String string)
          Sets the property value by String.
 void setTextareaImage(TextareaImage textareaImage)
          Sets the TextareaImage property TextareaImage.
 void setup(org.w3c.dom.Document doc)
          Initializes the FormElementsTextarea by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the FormElementsTextarea by the Element element.
 void setup(java.io.File file)
          Initializes the FormElementsTextarea by the File file.
 void setup(FormElementsTextarea source)
          Initializes the FormElementsTextarea by the FormElementsTextarea source.
 void setup(org.xml.sax.InputSource is)
          Initializes the FormElementsTextarea by the InputSource is.
 void setup(java.io.InputStream in)
          Initializes the FormElementsTextarea by the InputStream in.
 void setup(java.io.Reader reader)
          Initializes the FormElementsTextarea by the Reader reader.
 void setup(RStack stack)
          Initializes the FormElementsTextarea by the Stack stack that contains Elements.
 void setup(java.lang.String uri)
          Initializes the FormElementsTextarea by the String representation of URI uri.
 void setup(java.net.URL url)
          Initializes the FormElementsTextarea by the URL url.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormElementsTextarea

public FormElementsTextarea()
Creates a FormElementsTextarea.


FormElementsTextarea

public FormElementsTextarea(FormElementsTextarea source)
Creates a FormElementsTextarea.

Parameters:
source -

FormElementsTextarea

public FormElementsTextarea(RStack stack)
Creates a FormElementsTextarea by the Stack stack that contains Elements. This constructor is supposed to be used internally by the Relaxer system.

Parameters:
stack -

FormElementsTextarea

public FormElementsTextarea(org.w3c.dom.Document doc)
Creates a FormElementsTextarea by the Document doc.

Parameters:
doc -

FormElementsTextarea

public FormElementsTextarea(org.w3c.dom.Element element)
Creates a FormElementsTextarea by the Element element.

Parameters:
element -

FormElementsTextarea

public FormElementsTextarea(java.io.File file)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the File file.

Parameters:
file -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

FormElementsTextarea

public FormElementsTextarea(java.lang.String uri)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the String representation of URI uri.

Parameters:
uri -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

FormElementsTextarea

public FormElementsTextarea(java.net.URL url)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the URL url.

Parameters:
url -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

FormElementsTextarea

public FormElementsTextarea(java.io.InputStream in)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the InputStream in.

Parameters:
in -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

FormElementsTextarea

public FormElementsTextarea(org.xml.sax.InputSource is)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the InputSource is.

Parameters:
is -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

FormElementsTextarea

public FormElementsTextarea(java.io.Reader reader)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            javax.xml.parsers.ParserConfigurationException
Creates a FormElementsTextarea by the Reader reader.

Parameters:
reader -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
Method Detail

setup

public void setup(FormElementsTextarea source)
Initializes the FormElementsTextarea by the FormElementsTextarea source.

Parameters:
source -

setup

public void setup(org.w3c.dom.Document doc)
Initializes the FormElementsTextarea by the Document doc.

Specified by:
setup in interface IFormElementsChoice
Parameters:
doc -

setup

public void setup(org.w3c.dom.Element element)
Initializes the FormElementsTextarea by the Element element.

Specified by:
setup in interface IFormElementsChoice
Parameters:
element -

setup

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

Specified by:
setup in interface IFormElementsChoice
Parameters:
stack -

clone

public java.lang.Object clone()
Specified by:
clone in interface IFormElementsChoice
Returns:
Object

makeElement

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

Specified by:
makeElement in interface IFormElementsChoice
Parameters:
parent -

setup

public void setup(java.io.File file)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the File file.

Specified by:
setup in interface IFormElementsChoice
Parameters:
file -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setup

public void setup(java.lang.String uri)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the String representation of URI uri.

Specified by:
setup in interface IFormElementsChoice
Parameters:
uri -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setup

public void setup(java.net.URL url)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the URL url.

Specified by:
setup in interface IFormElementsChoice
Parameters:
url -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setup

public void setup(java.io.InputStream in)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the InputStream in.

Specified by:
setup in interface IFormElementsChoice
Parameters:
in -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setup

public void setup(org.xml.sax.InputSource is)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the InputSource is.

Specified by:
setup in interface IFormElementsChoice
Parameters:
is -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

setup

public void setup(java.io.Reader reader)
           throws java.io.IOException,
                  org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException
Initializes the FormElementsTextarea by the Reader reader.

Specified by:
setup in interface IFormElementsChoice
Parameters:
reader -
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

makeDocument

public org.w3c.dom.Document makeDocument()
                                  throws javax.xml.parsers.ParserConfigurationException
Creates a DOM document representation of the object.

Specified by:
makeDocument in interface IFormElementsChoice
Returns:
Document
Throws:
javax.xml.parsers.ParserConfigurationException

rGetRNSContext

public RNSContext rGetRNSContext()
Gets the RNSContext property RNSContext.

Specified by:
rGetRNSContext in interface IRNSContainer
Returns:
RNSContext

rSetRNSContext

public void rSetRNSContext(RNSContext rNSContext)
Sets the RNSContext property RNSContext.

Specified by:
rSetRNSContext in interface IFormElementsChoice
Parameters:
rNSContext -

getRef

public java.lang.String getRef()
Gets the String property ref.

Specified by:
getRef in interface IFormElementsChoice
Returns:
String

setRef

public void setRef(java.lang.String ref)
Sets the String property ref.

Specified by:
setRef in interface IFormElementsChoice
Parameters:
ref -

getTextareaImage

public TextareaImage getTextareaImage()
Gets the TextareaImage property TextareaImage.

Returns:
TextareaImage

setTextareaImage

public void setTextareaImage(TextareaImage textareaImage)
Sets the TextareaImage property TextareaImage.

Parameters:
textareaImage -

rGetElement

public org.w3c.dom.Element rGetElement()
Gets the element to be used in the object construction.

Specified by:
rGetElement in interface IFormElementsChoice
Returns:
Element

makeTextDocument

public java.lang.String makeTextDocument()
Makes an XML text representation.

Specified by:
makeTextDocument in interface IFormElementsChoice
Returns:
String

makeTextElement

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

Specified by:
makeTextElement in interface IFormElementsChoice
Parameters:
buffer -

makeTextElement

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

Specified by:
makeTextElement in interface IFormElementsChoice
Parameters:
buffer -
Throws:
java.io.IOException

makeTextElement

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

Specified by:
makeTextElement in interface IFormElementsChoice
Parameters:
buffer -

makeTextAttribute

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

Specified by:
makeTextAttribute in interface IFormElementsChoice
Parameters:
buffer -

makeTextAttribute

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

Specified by:
makeTextAttribute in interface IFormElementsChoice
Parameters:
buffer -
Throws:
java.io.IOException

makeTextAttribute

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

Specified by:
makeTextAttribute in interface IFormElementsChoice
Parameters:
buffer -

getRefAsString

public java.lang.String getRefAsString()
Gets the property value as String.

Specified by:
getRefAsString in interface IFormElementsChoice
Returns:
String

setRefByString

public void setRefByString(java.lang.String string)
Sets the property value by String.

Specified by:
setRefByString in interface IFormElementsChoice
Parameters:
string -

toString

public java.lang.String toString()
Returns a String representation of this object. While this method informs as XML format representaion, it's purpose is just information, not making a rigid XML documentation.

Specified by:
toString in interface IFormElementsChoice
Returns:
String

rGetParentRNode

public IRNode rGetParentRNode()
Gets the IRNode property parentRNode.

Specified by:
rGetParentRNode in interface IRNode
Returns:
IRNode

rSetParentRNode

public void rSetParentRNode(IRNode parentRNode)
Sets the IRNode property parentRNode.

Specified by:
rSetParentRNode in interface IRNode
Parameters:
parentRNode -

rGetRNodes

public IRNode[] rGetRNodes()
Gets child RNodes.

Specified by:
rGetRNodes in interface IRNode
Returns:
IRNode[]

isMatch

public static boolean isMatch(org.w3c.dom.Element element)
Tests if a Element element is valid for the FormElementsTextarea.

Parameters:
element -
Returns:
boolean

isMatch

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

Parameters:
stack -
Returns:
boolean

isMatchHungry

public static boolean isMatchHungry(RStack stack)
Tests if elements contained in a Stack stack is valid for the FormElementsTextarea. This method consumes the stack contents during matching operation. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean