net.sf.sqs_xml.reader.model
Class FormElements

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

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

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

 <define name="FormElements">
                <zeroOrMore>
                    <choice>
                         <element name="markarea" ns="http://sqs.cmr.sfc.keio.ac.jp/2004/reader">
                           <attribute name="ref" java:mapKey="true"><data type="string"/></attribute>
                             <ref name="MarkDensity"/>
                         </element>
                         <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>                              
                 	</choice>
               </zeroOrMore>
 </define>

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
FormElements()
          Creates a FormElements.
FormElements(FormElements source)
          Creates a FormElements.
FormElements(RStack stack)
          Creates a FormElements by the Stack stack that contains Elements.
 
Method Summary
 void addContent(IFormElementsChoice content)
          Adds the IFormElementsChoice property content.
 void addContent(IFormElementsChoice[] content)
          Adds the IFormElementsChoice property content.
 void addContent(int index, IFormElementsChoice content)
          Adds the IFormElementsChoice property content by index.
 void clearContent()
          Clear the IFormElementsChoice property content.
 java.lang.Object clone()
           
 IFormElementsChoice[] getContent()
          Gets the IFormElementsChoice property content.
 IFormElementsChoice getContent(int index)
          Gets the IFormElementsChoice property content by index.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the FormElements.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the FormElements.
 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.
 void removeContent(IFormElementsChoice content)
          Remove the IFormElementsChoice property content by object.
 void removeContent(int index)
          Remove the IFormElementsChoice property content by index.
 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 setContent(IFormElementsChoice content)
          Sets the IFormElementsChoice property content.
 void setContent(IFormElementsChoice[] content)
          Sets the IFormElementsChoice property content.
 void setContent(int index, IFormElementsChoice content)
          Sets the IFormElementsChoice property content by index.
 void setup(FormElements source)
          Initializes the FormElements by the FormElements source.
 void setup(RStack stack)
          Initializes the FormElements by the Stack stack that contains Elements.
 int sizeContent()
          Gets number of the IFormElementsChoice property content.
 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

FormElements

public FormElements()
Creates a FormElements.


FormElements

public FormElements(FormElements source)
Creates a FormElements.

Parameters:
source -

FormElements

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

Parameters:
stack -
Method Detail

setup

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

Parameters:
source -

setup

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

Parameters:
stack -

clone

public java.lang.Object clone()
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.

Parameters:
parent -

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.

Parameters:
rNSContext -

getContent

public IFormElementsChoice[] getContent()
Gets the IFormElementsChoice property content.

Returns:
IFormElementsChoice[]

setContent

public void setContent(IFormElementsChoice[] content)
Sets the IFormElementsChoice property content.

Parameters:
content -

setContent

public void setContent(IFormElementsChoice content)
Sets the IFormElementsChoice property content.

Parameters:
content -

addContent

public void addContent(IFormElementsChoice content)
Adds the IFormElementsChoice property content.

Parameters:
content -

addContent

public void addContent(IFormElementsChoice[] content)
Adds the IFormElementsChoice property content.

Parameters:
content -

sizeContent

public int sizeContent()
Gets number of the IFormElementsChoice property content.

Returns:
int

getContent

public IFormElementsChoice getContent(int index)
Gets the IFormElementsChoice property content by index.

Parameters:
index -
Returns:
IFormElementsChoice

setContent

public void setContent(int index,
                       IFormElementsChoice content)
Sets the IFormElementsChoice property content by index.

Parameters:
index -
content -

addContent

public void addContent(int index,
                       IFormElementsChoice content)
Adds the IFormElementsChoice property content by index.

Parameters:
index -
content -

removeContent

public void removeContent(int index)
Remove the IFormElementsChoice property content by index.

Parameters:
index -

removeContent

public void removeContent(IFormElementsChoice content)
Remove the IFormElementsChoice property content by object.

Parameters:
content -

clearContent

public void clearContent()
Clear the IFormElementsChoice property content.


makeTextDocument

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

Returns:
String

makeTextElement

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

Parameters:
buffer -

makeTextElement

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

Parameters:
buffer -
Throws:
java.io.IOException

makeTextElement

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

Parameters:
buffer -

makeTextAttribute

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

Parameters:
buffer -

makeTextAttribute

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

Parameters:
buffer -
Throws:
java.io.IOException

makeTextAttribute

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

Parameters:
buffer -

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.

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(RStack stack)
Tests if elements contained in a Stack stack is valid for the FormElements. 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 FormElements. 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