net.aerith.misao.xml.relaxer
Class XmlPositionRecord

java.lang.Object
  |
  +--net.aerith.misao.xml.IONode
        |
        +--net.aerith.misao.xml.relaxer.XmlPositionRecord
Direct Known Subclasses:
XmlPositionRecord

public class XmlPositionRecord
extends IONode
implements java.io.Serializable, IRNode

XmlPositionRecord is generated by Relaxer based on pixy.rlx. This class is derived from:

 <elementRule role="position-record">
   <sequence>
     <ref label="date"/>
     <ref label="coor"/>
     <ref label="mag"/>
     <element name="area" occurs="?" type="int"/>
     <ref label="pixel-size" occurs="?"/>
     <ref label="astrometric-error" occurs="?"/>
     <element name="catalog" occurs="?" type="string"/>
     <element name="equinox" occurs="?" type="string"/>
     <element name="observer" type="string"/>
     <element name="instruments" occurs="?" type="string"/>
     <element name="image-xml-path" type="string"/>
     <element name="name" type="string"/>
     <ref label="position"/>
     <element name="pixels-from-edge" occurs="?" type="int"/>
   </sequence>
 </elementRule>
 <tag name="position-record"/>
 

See Also:
Serialized Form

Field Summary
private  java.lang.Integer area
           
private  XmlAstrometricError astrometricError
           
private  java.lang.String catalog
           
private  XmlCoor coor
           
private  java.lang.String date
           
private  java.lang.String equinox
           
private  java.lang.String imageXmlPath
           
private  java.lang.String instruments
           
private  XmlMag mag
           
private  java.lang.String name
           
private  java.lang.String observer
           
private  IRNode parentRNode
           
private  java.lang.Integer pixelsFromEdge
           
private  XmlPixelSize pixelSize
           
private  XmlPosition position
           
private  RContext rContext
           
 
Constructor Summary
XmlPositionRecord()
          Creates a XmlPositionRecord.
XmlPositionRecord(org.w3c.dom.Document doc)
          Creates a XmlPositionRecord by the Document doc.
XmlPositionRecord(org.w3c.dom.Element element)
          Creates a XmlPositionRecord by the Element element.
XmlPositionRecord(RStack stack)
          Creates a XmlPositionRecord by the Stack stack that contains Elements.
 
Method Summary
 java.lang.Integer getArea()
          Gets the Integer property area.
 XmlAstrometricError getAstrometricError()
          Gets the XmlAstrometricError property astrometricError.
 java.lang.String getCatalog()
          Gets the String property catalog.
 XmlCoor getCoor()
          Gets the XmlCoor property coor.
 java.lang.String getDate()
          Gets the String property date.
 java.lang.String getEquinox()
          Gets the String property equinox.
 java.lang.String getImageXmlPath()
          Gets the String property imageXmlPath.
 java.lang.String getInstruments()
          Gets the String property instruments.
 XmlMag getMag()
          Gets the XmlMag property mag.
 java.lang.String getName()
          Gets the String property name.
 java.lang.String getObserver()
          Gets the String property observer.
 IRNode getParentRNode()
          Gets the IRNode property parentRNode.
 java.lang.Integer getPixelsFromEdge()
          Gets the Integer property pixelsFromEdge.
 XmlPixelSize getPixelSize()
          Gets the XmlPixelSize property pixelSize.
 XmlPosition getPosition()
          Gets the XmlPosition property position.
 RContext getRContext()
          Gets the RContext property rContext.
 RContext getRContextResolved()
          Gets the property "rContext" which is resolved recursively.
 IRNode[] getRNodes()
          Gets child RNodes.
private  void init(org.w3c.dom.Element element)
           
static boolean isMatch(org.w3c.dom.Element element)
          Tests if a Element element is valid for the XmlPositionRecord.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlPositionRecord.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlPositionRecord.
 void makeElement(org.w3c.dom.Node parent)
          Creates a DOM representation of the object.
 void setArea(java.lang.Integer area)
          Sets the Integer property area.
 void setAstrometricError(XmlAstrometricError astrometricError)
          Sets the XmlAstrometricError property astrometricError.
 void setCatalog(java.lang.String catalog)
          Sets the String property catalog.
 void setCoor(XmlCoor coor)
          Sets the XmlCoor property coor.
 void setDate(java.lang.String date)
          Sets the String property date.
 void setEquinox(java.lang.String equinox)
          Sets the String property equinox.
 void setImageXmlPath(java.lang.String imageXmlPath)
          Sets the String property imageXmlPath.
 void setInstruments(java.lang.String instruments)
          Sets the String property instruments.
 void setMag(XmlMag mag)
          Sets the XmlMag property mag.
 void setName(java.lang.String name)
          Sets the String property name.
 void setObserver(java.lang.String observer)
          Sets the String property observer.
 void setParentRNode(IRNode parentRNode)
          Sets the IRNode property parentRNode.
 void setPixelsFromEdge(java.lang.Integer pixelsFromEdge)
          Sets the Integer property pixelsFromEdge.
 void setPixelSize(XmlPixelSize pixelSize)
          Sets the XmlPixelSize property pixelSize.
 void setPosition(XmlPosition position)
          Sets the XmlPosition property position.
 void setRContext(RContext rContext)
          Sets the RContext property rContext.
 void setup(org.w3c.dom.Document doc)
          Initializes the XmlPositionRecord by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the XmlPositionRecord by the Element element.
 void setup(RStack stack)
          Initializes the XmlPositionRecord by the Stack stack that contains Elements.
 
Methods inherited from class net.aerith.misao.xml.IONode
read, read, translateFrom, translateTo, write, write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

date

private java.lang.String date

coor

private XmlCoor coor

mag

private XmlMag mag

area

private java.lang.Integer area

pixelSize

private XmlPixelSize pixelSize

astrometricError

private XmlAstrometricError astrometricError

catalog

private java.lang.String catalog

equinox

private java.lang.String equinox

observer

private java.lang.String observer

instruments

private java.lang.String instruments

imageXmlPath

private java.lang.String imageXmlPath

name

private java.lang.String name

position

private XmlPosition position

pixelsFromEdge

private java.lang.Integer pixelsFromEdge

parentRNode

private IRNode parentRNode

rContext

private RContext rContext
Constructor Detail

XmlPositionRecord

public XmlPositionRecord()
Creates a XmlPositionRecord.

XmlPositionRecord

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

XmlPositionRecord

public XmlPositionRecord(org.w3c.dom.Document doc)
Creates a XmlPositionRecord by the Document doc.
Parameters:
doc -  

XmlPositionRecord

public XmlPositionRecord(org.w3c.dom.Element element)
Creates a XmlPositionRecord by the Element element.
Parameters:
element -  
Method Detail

setup

public void setup(org.w3c.dom.Document doc)
Initializes the XmlPositionRecord by the Document doc.
Overrides:
setup in class IONode
Parameters:
doc -  

setup

public void setup(org.w3c.dom.Element element)
Initializes the XmlPositionRecord by the Element element.
Parameters:
element -  

setup

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

init

private void init(org.w3c.dom.Element element)
Parameters:
element -  

makeElement

public void makeElement(org.w3c.dom.Node parent)
Creates a DOM representation of the object. Result is appended to the Node parent.
Overrides:
makeElement in class IONode
Parameters:
parent -  

getDate

public final java.lang.String getDate()
Gets the String property date.
Returns:
String

setDate

public final void setDate(java.lang.String date)
Sets the String property date.
Parameters:
date -  

getCoor

public final XmlCoor getCoor()
Gets the XmlCoor property coor.
Returns:
XmlCoor

setCoor

public final void setCoor(XmlCoor coor)
Sets the XmlCoor property coor.
Parameters:
coor -  

getMag

public final XmlMag getMag()
Gets the XmlMag property mag.
Returns:
XmlMag

setMag

public final void setMag(XmlMag mag)
Sets the XmlMag property mag.
Parameters:
mag -  

getArea

public final java.lang.Integer getArea()
Gets the Integer property area.
Returns:
Integer

setArea

public final void setArea(java.lang.Integer area)
Sets the Integer property area.
Parameters:
area -  

getPixelSize

public final XmlPixelSize getPixelSize()
Gets the XmlPixelSize property pixelSize.
Returns:
XmlPixelSize

setPixelSize

public final void setPixelSize(XmlPixelSize pixelSize)
Sets the XmlPixelSize property pixelSize.
Parameters:
pixelSize -  

getAstrometricError

public final XmlAstrometricError getAstrometricError()
Gets the XmlAstrometricError property astrometricError.
Returns:
XmlAstrometricError

setAstrometricError

public final void setAstrometricError(XmlAstrometricError astrometricError)
Sets the XmlAstrometricError property astrometricError.
Parameters:
astrometricError -  

getCatalog

public final java.lang.String getCatalog()
Gets the String property catalog.
Returns:
String

setCatalog

public final void setCatalog(java.lang.String catalog)
Sets the String property catalog.
Parameters:
catalog -  

getEquinox

public final java.lang.String getEquinox()
Gets the String property equinox.
Returns:
String

setEquinox

public final void setEquinox(java.lang.String equinox)
Sets the String property equinox.
Parameters:
equinox -  

getObserver

public final java.lang.String getObserver()
Gets the String property observer.
Returns:
String

setObserver

public final void setObserver(java.lang.String observer)
Sets the String property observer.
Parameters:
observer -  

getInstruments

public final java.lang.String getInstruments()
Gets the String property instruments.
Returns:
String

setInstruments

public final void setInstruments(java.lang.String instruments)
Sets the String property instruments.
Parameters:
instruments -  

getImageXmlPath

public final java.lang.String getImageXmlPath()
Gets the String property imageXmlPath.
Returns:
String

setImageXmlPath

public final void setImageXmlPath(java.lang.String imageXmlPath)
Sets the String property imageXmlPath.
Parameters:
imageXmlPath -  

getName

public final java.lang.String getName()
Gets the String property name.
Returns:
String

setName

public final void setName(java.lang.String name)
Sets the String property name.
Parameters:
name -  

getPosition

public final XmlPosition getPosition()
Gets the XmlPosition property position.
Returns:
XmlPosition

setPosition

public final void setPosition(XmlPosition position)
Sets the XmlPosition property position.
Parameters:
position -  

getPixelsFromEdge

public final java.lang.Integer getPixelsFromEdge()
Gets the Integer property pixelsFromEdge.
Returns:
Integer

setPixelsFromEdge

public final void setPixelsFromEdge(java.lang.Integer pixelsFromEdge)
Sets the Integer property pixelsFromEdge.
Parameters:
pixelsFromEdge -  

getParentRNode

public final IRNode getParentRNode()
Gets the IRNode property parentRNode.
Specified by:
getParentRNode in interface IRNode
Returns:
IRNode

setParentRNode

public final void setParentRNode(IRNode parentRNode)
Sets the IRNode property parentRNode.
Specified by:
setParentRNode in interface IRNode
Parameters:
parentRNode -  

getRNodes

public IRNode[] getRNodes()
Gets child RNodes.
Specified by:
getRNodes in interface IRNode
Returns:
IRNode[]

getRContext

public final RContext getRContext()
Gets the RContext property rContext.
Specified by:
getRContext in interface IRNode
Returns:
RContext

setRContext

public final void setRContext(RContext rContext)
Sets the RContext property rContext.
Specified by:
setRContext in interface IRNode
Parameters:
rContext -  

getRContextResolved

public RContext getRContextResolved()
Gets the property "rContext" which is resolved recursively.
Specified by:
getRContextResolved in interface IRNode
Returns:
RContext

isMatch

public static boolean isMatch(org.w3c.dom.Element element)
Tests if a Element element is valid for the XmlPositionRecord.
Parameters:
element -  
Returns:
boolean

isMatch

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