jp.sourceforge.sqs_xml.reader.model
クラス ReadingState

java.lang.Object
  拡張jp.sourceforge.sqs_xml.reader.model.ReadingState
すべての実装インタフェース:
java.lang.Cloneable, IRNode, IRNSContainer, java.io.Serializable

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

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

 <element name="readingState" ns="http://sqs.cmr.sfc.keio.ac.jp/2004/reader">
     <attribute name="imagedir"><text/></attribute>
     <attribute name="pdffile"><text/></attribute>
     <attribute name="start">
        <data type="dateTime"/>              
     </attribute>                              
     
     <attribute name="end">
        <data type="dateTime"/>              
     </attribute>                              
     
 
     <optional>
       <ref name="ImageFiles"/>
     </optional>
 
     <optional>
       <element name="answers" ns="http://sqs.cmr.sfc.keio.ac.jp/2004/reader">
         <empty/>
       </element>
    </optional>
    </element>

バージョン:
reader.rng (Fri Aug 06 03:48:33 GMT+09:00 2004)
作成者:
Relaxer 1.1b (http://www.relaxer.org)
関連項目:
直列化された形式

コンストラクタの概要
ReadingState()
          Creates a ReadingState.
ReadingState(org.w3c.dom.Document doc)
          Creates a ReadingState by the Document doc.
ReadingState(org.w3c.dom.Element element)
          Creates a ReadingState by the Element element.
ReadingState(java.io.File file)
          Creates a ReadingState by the File file.
ReadingState(org.xml.sax.InputSource is)
          Creates a ReadingState by the InputSource is.
ReadingState(java.io.InputStream in)
          Creates a ReadingState by the InputStream in.
ReadingState(java.io.Reader reader)
          Creates a ReadingState by the Reader reader.
ReadingState(ReadingState source)
          Creates a ReadingState.
ReadingState(RStack stack)
          Creates a ReadingState by the Stack stack that contains Elements.
ReadingState(java.lang.String uri)
          Creates a ReadingState by the String representation of URI uri.
ReadingState(java.net.URL url)
          Creates a ReadingState by the URL url.
 
メソッドの概要
 java.lang.Object clone()
           
 java.lang.String getAnswers()
          Gets the String property answers.
 java.lang.String getAnswersAsString()
          Gets the property value as String.
 java.sql.Timestamp getEnd()
          Gets the java.sql.Timestamp property end.
 java.lang.String getEndAsString()
          Gets the property value as String.
 java.lang.String getImagedir()
          Gets the String property imagedir.
 java.lang.String getImagedirAsString()
          Gets the property value as String.
 ImageFiles getImageFiles()
          Gets the ImageFiles property ImageFiles.
 java.lang.String getPdffile()
          Gets the String property pdffile.
 java.lang.String getPdffileAsString()
          Gets the property value as String.
 java.sql.Timestamp getStart()
          Gets the java.sql.Timestamp property start.
 java.lang.String getStartAsString()
          Gets the property value as String.
static boolean isMatch(org.w3c.dom.Element element)
          Tests if a Element element is valid for the ReadingState.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the ReadingState.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the ReadingState.
 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 setAnswers(java.lang.String answers)
          Sets the String property answers.
 void setAnswersByString(java.lang.String string)
          Sets the property value by String.
 void setEnd(java.sql.Timestamp end)
          Sets the java.sql.Timestamp property end.
 void setEndByString(java.lang.String string)
          Sets the property value by String.
 void setImagedir(java.lang.String imagedir)
          Sets the String property imagedir.
 void setImagedirByString(java.lang.String string)
          Sets the property value by String.
 void setImageFiles(ImageFiles imageFiles)
          Sets the ImageFiles property ImageFiles.
 void setPdffile(java.lang.String pdffile)
          Sets the String property pdffile.
 void setPdffileByString(java.lang.String string)
          Sets the property value by String.
 void setStart(java.sql.Timestamp start)
          Sets the java.sql.Timestamp property start.
 void setStartByString(java.lang.String string)
          Sets the property value by String.
 void setup(org.w3c.dom.Document doc)
          Initializes the ReadingState by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the ReadingState by the Element element.
 void setup(java.io.File file)
          Initializes the ReadingState by the File file.
 void setup(org.xml.sax.InputSource is)
          Initializes the ReadingState by the InputSource is.
 void setup(java.io.InputStream in)
          Initializes the ReadingState by the InputStream in.
 void setup(java.io.Reader reader)
          Initializes the ReadingState by the Reader reader.
 void setup(ReadingState source)
          Initializes the ReadingState by the ReadingState source.
 void setup(RStack stack)
          Initializes the ReadingState by the Stack stack that contains Elements.
 void setup(java.lang.String uri)
          Initializes the ReadingState by the String representation of URI uri.
 void setup(java.net.URL url)
          Initializes the ReadingState by the URL url.
 java.lang.String toString()
          Returns a String representation of this object.
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ReadingState

public ReadingState()
Creates a ReadingState.


ReadingState

public ReadingState(ReadingState source)
Creates a ReadingState.

パラメータ:
source -

ReadingState

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

パラメータ:
stack -

ReadingState

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

パラメータ:
doc -

ReadingState

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

パラメータ:
element -

ReadingState

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

パラメータ:
file -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

ReadingState

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

パラメータ:
uri -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

ReadingState

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

パラメータ:
url -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

ReadingState

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

パラメータ:
in -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

ReadingState

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

パラメータ:
is -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

ReadingState

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

パラメータ:
reader -
例外:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
メソッドの詳細

setup

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

パラメータ:
source -

setup

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

パラメータ:
doc -

setup

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

パラメータ:
element -

setup

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

パラメータ:
stack -

clone

public java.lang.Object clone()
戻り値:
Object

makeElement

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

パラメータ:
parent -

setup

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

パラメータ:
file -
例外:
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 ReadingState by the String representation of URI uri.

パラメータ:
uri -
例外:
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 ReadingState by the URL url.

パラメータ:
url -
例外:
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 ReadingState by the InputStream in.

パラメータ:
in -
例外:
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 ReadingState by the InputSource is.

パラメータ:
is -
例外:
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 ReadingState by the Reader reader.

パラメータ:
reader -
例外:
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.

戻り値:
Document
例外:
javax.xml.parsers.ParserConfigurationException

rGetRNSContext

public RNSContext rGetRNSContext()
Gets the RNSContext property RNSContext.

定義:
インタフェース IRNSContainer 内の rGetRNSContext
戻り値:
RNSContext

rSetRNSContext

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

パラメータ:
rNSContext -

getImagedir

public java.lang.String getImagedir()
Gets the String property imagedir.

戻り値:
String

setImagedir

public void setImagedir(java.lang.String imagedir)
Sets the String property imagedir.

パラメータ:
imagedir -

getPdffile

public java.lang.String getPdffile()
Gets the String property pdffile.

戻り値:
String

setPdffile

public void setPdffile(java.lang.String pdffile)
Sets the String property pdffile.

パラメータ:
pdffile -

getStart

public java.sql.Timestamp getStart()
Gets the java.sql.Timestamp property start.

戻り値:
java.sql.Timestamp

setStart

public void setStart(java.sql.Timestamp start)
Sets the java.sql.Timestamp property start.

パラメータ:
start -

getEnd

public java.sql.Timestamp getEnd()
Gets the java.sql.Timestamp property end.

戻り値:
java.sql.Timestamp

setEnd

public void setEnd(java.sql.Timestamp end)
Sets the java.sql.Timestamp property end.

パラメータ:
end -

getImageFiles

public ImageFiles getImageFiles()
Gets the ImageFiles property ImageFiles.

戻り値:
ImageFiles

setImageFiles

public void setImageFiles(ImageFiles imageFiles)
Sets the ImageFiles property ImageFiles.

パラメータ:
imageFiles -

getAnswers

public java.lang.String getAnswers()
Gets the String property answers.

戻り値:
String

setAnswers

public void setAnswers(java.lang.String answers)
Sets the String property answers.

パラメータ:
answers -

rGetElement

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

戻り値:
Element

makeTextDocument

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

戻り値:
String

makeTextElement

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

パラメータ:
buffer -

makeTextElement

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

パラメータ:
buffer -
例外:
java.io.IOException

makeTextElement

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

パラメータ:
buffer -

makeTextAttribute

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

パラメータ:
buffer -

makeTextAttribute

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

パラメータ:
buffer -
例外:
java.io.IOException

makeTextAttribute

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

パラメータ:
buffer -

getImagedirAsString

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

戻り値:
String

getPdffileAsString

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

戻り値:
String

getStartAsString

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

戻り値:
String

getEndAsString

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

戻り値:
String

getAnswersAsString

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

戻り値:
String

setImagedirByString

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

パラメータ:
string -

setPdffileByString

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

パラメータ:
string -

setStartByString

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

パラメータ:
string -

setEndByString

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

パラメータ:
string -

setAnswersByString

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

パラメータ:
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.

戻り値:
String

rGetParentRNode

public IRNode rGetParentRNode()
Gets the IRNode property parentRNode.

定義:
インタフェース IRNode 内の rGetParentRNode
戻り値:
IRNode

rSetParentRNode

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

定義:
インタフェース IRNode 内の rSetParentRNode
パラメータ:
parentRNode -

rGetRNodes

public IRNode[] rGetRNodes()
Gets child RNodes.

定義:
インタフェース IRNode 内の rGetRNodes
戻り値:
IRNode[]

isMatch

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

パラメータ:
element -
戻り値:
boolean

isMatch

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

パラメータ:
stack -
戻り値:
boolean

isMatchHungry

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

パラメータ:
stack -
戻り値:
boolean