net.aerith.misao.xml.relaxer
Class XmlInstruction

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

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

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

 <elementRule role="instruction">
   <sequence>
     <ref label="image"/>
     <ref label="date" occurs="?"/>
     <ref label="exposure" occurs="?"/>
     <element name="observer" occurs="?" type="string"/>
     <ref label="center"/>
     <ref label="fov"/>
     <ref label="rotation" occurs="?"/>
     <element name="limiting-mag" occurs="?" type="float"/>
     <element name="upper-limit-mag" occurs="?" type="float"/>
     <element name="filter" occurs="?" type="string"/>
     <element name="chip" occurs="?" type="string"/>
     <element name="instruments" occurs="?" type="string"/>
     <ref label="base-catalog"/>
     <ref label="reversed-image" occurs="?"/>
     <ref label="sbig-image" occurs="?"/>
     <ref label="unofficial" occurs="?"/>
     <ref label="output" occurs="*"/>
   </sequence>
 </elementRule>
 <tag name="instruction"/>
 

See Also:
Serialized Form

Field Summary
private  XmlBaseCatalog baseCatalog
           
private  XmlCenter center
           
private  java.lang.String chip
           
private  java.lang.String date
           
private  XmlExposure exposure
           
private  java.lang.String filter
           
private  XmlFov fov
           
private  XmlImage image
           
private  java.lang.String instruments
           
private  java.lang.Float limitingMag
           
private  java.lang.String observer
           
private  java.util.List output
           
private  IRNode parentRNode
           
private  RContext rContext
           
private  XmlReversedImage reversedImage
           
private  XmlRotation rotation
           
private  XmlSbigImage sbigImage
           
private  XmlUnofficial unofficial
           
private  java.lang.Float upperLimitMag
           
 
Constructor Summary
XmlInstruction()
          Creates a XmlInstruction.
XmlInstruction(org.w3c.dom.Document doc)
          Creates a XmlInstruction by the Document doc.
XmlInstruction(org.w3c.dom.Element element)
          Creates a XmlInstruction by the Element element.
XmlInstruction(RStack stack)
          Creates a XmlInstruction by the Stack stack that contains Elements.
 
Method Summary
 void addOutput(XmlOutput output)
          Adds the XmlOutput property output.
 XmlBaseCatalog getBaseCatalog()
          Gets the XmlBaseCatalog property baseCatalog.
 XmlCenter getCenter()
          Gets the XmlCenter property center.
 java.lang.String getChip()
          Gets the String property chip.
 java.lang.String getDate()
          Gets the String property date.
 XmlExposure getExposure()
          Gets the XmlExposure property exposure.
 java.lang.String getFilter()
          Gets the String property filter.
 XmlFov getFov()
          Gets the XmlFov property fov.
 XmlImage getImage()
          Gets the XmlImage property image.
 java.lang.String getInstruments()
          Gets the String property instruments.
 java.lang.Float getLimitingMag()
          Gets the Float property limitingMag.
 java.lang.String getObserver()
          Gets the String property observer.
 XmlOutput[] getOutput()
          Gets the XmlOutput property output.
 IRNode getParentRNode()
          Gets the IRNode property parentRNode.
 RContext getRContext()
          Gets the RContext property rContext.
 RContext getRContextResolved()
          Gets the property "rContext" which is resolved recursively.
 XmlReversedImage getReversedImage()
          Gets the XmlReversedImage property reversedImage.
 IRNode[] getRNodes()
          Gets child RNodes.
 XmlRotation getRotation()
          Gets the XmlRotation property rotation.
 XmlSbigImage getSbigImage()
          Gets the XmlSbigImage property sbigImage.
 XmlUnofficial getUnofficial()
          Gets the XmlUnofficial property unofficial.
 java.lang.Float getUpperLimitMag()
          Gets the Float property upperLimitMag.
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 XmlInstruction.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlInstruction.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlInstruction.
 void makeElement(org.w3c.dom.Node parent)
          Creates a DOM representation of the object.
 void setBaseCatalog(XmlBaseCatalog baseCatalog)
          Sets the XmlBaseCatalog property baseCatalog.
 void setCenter(XmlCenter center)
          Sets the XmlCenter property center.
 void setChip(java.lang.String chip)
          Sets the String property chip.
 void setDate(java.lang.String date)
          Sets the String property date.
 void setExposure(XmlExposure exposure)
          Sets the XmlExposure property exposure.
 void setFilter(java.lang.String filter)
          Sets the String property filter.
 void setFov(XmlFov fov)
          Sets the XmlFov property fov.
 void setImage(XmlImage image)
          Sets the XmlImage property image.
 void setInstruments(java.lang.String instruments)
          Sets the String property instruments.
 void setLimitingMag(java.lang.Float limitingMag)
          Sets the Float property limitingMag.
 void setObserver(java.lang.String observer)
          Sets the String property observer.
 void setOutput(XmlOutput[] output)
          Sets the XmlOutput property output.
 void setParentRNode(IRNode parentRNode)
          Sets the IRNode property parentRNode.
 void setRContext(RContext rContext)
          Sets the RContext property rContext.
 void setReversedImage(XmlReversedImage reversedImage)
          Sets the XmlReversedImage property reversedImage.
 void setRotation(XmlRotation rotation)
          Sets the XmlRotation property rotation.
 void setSbigImage(XmlSbigImage sbigImage)
          Sets the XmlSbigImage property sbigImage.
 void setUnofficial(XmlUnofficial unofficial)
          Sets the XmlUnofficial property unofficial.
 void setup(org.w3c.dom.Document doc)
          Initializes the XmlInstruction by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the XmlInstruction by the Element element.
 void setup(RStack stack)
          Initializes the XmlInstruction by the Stack stack that contains Elements.
 void setUpperLimitMag(java.lang.Float upperLimitMag)
          Sets the Float property upperLimitMag.
 
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

image

private XmlImage image

date

private java.lang.String date

exposure

private XmlExposure exposure

observer

private java.lang.String observer

center

private XmlCenter center

fov

private XmlFov fov

rotation

private XmlRotation rotation

limitingMag

private java.lang.Float limitingMag

upperLimitMag

private java.lang.Float upperLimitMag

filter

private java.lang.String filter

chip

private java.lang.String chip

instruments

private java.lang.String instruments

baseCatalog

private XmlBaseCatalog baseCatalog

reversedImage

private XmlReversedImage reversedImage

sbigImage

private XmlSbigImage sbigImage

unofficial

private XmlUnofficial unofficial

output

private java.util.List output

parentRNode

private IRNode parentRNode

rContext

private RContext rContext
Constructor Detail

XmlInstruction

public XmlInstruction()
Creates a XmlInstruction.

XmlInstruction

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

XmlInstruction

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

XmlInstruction

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

setup

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

setup

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

setup

public void setup(RStack stack)
Initializes the XmlInstruction 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 -  

getImage

public final XmlImage getImage()
Gets the XmlImage property image.
Returns:
XmlImage

setImage

public final void setImage(XmlImage image)
Sets the XmlImage property image.
Parameters:
image -  

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 -  

getExposure

public final XmlExposure getExposure()
Gets the XmlExposure property exposure.
Returns:
XmlExposure

setExposure

public final void setExposure(XmlExposure exposure)
Sets the XmlExposure property exposure.
Parameters:
exposure -  

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 -  

getCenter

public final XmlCenter getCenter()
Gets the XmlCenter property center.
Returns:
XmlCenter

setCenter

public final void setCenter(XmlCenter center)
Sets the XmlCenter property center.
Parameters:
center -  

getFov

public final XmlFov getFov()
Gets the XmlFov property fov.
Returns:
XmlFov

setFov

public final void setFov(XmlFov fov)
Sets the XmlFov property fov.
Parameters:
fov -  

getRotation

public final XmlRotation getRotation()
Gets the XmlRotation property rotation.
Returns:
XmlRotation

setRotation

public final void setRotation(XmlRotation rotation)
Sets the XmlRotation property rotation.
Parameters:
rotation -  

getLimitingMag

public final java.lang.Float getLimitingMag()
Gets the Float property limitingMag.
Returns:
Float

setLimitingMag

public final void setLimitingMag(java.lang.Float limitingMag)
Sets the Float property limitingMag.
Parameters:
limitingMag -  

getUpperLimitMag

public final java.lang.Float getUpperLimitMag()
Gets the Float property upperLimitMag.
Returns:
Float

setUpperLimitMag

public final void setUpperLimitMag(java.lang.Float upperLimitMag)
Sets the Float property upperLimitMag.
Parameters:
upperLimitMag -  

getFilter

public final java.lang.String getFilter()
Gets the String property filter.
Returns:
String

setFilter

public final void setFilter(java.lang.String filter)
Sets the String property filter.
Parameters:
filter -  

getChip

public final java.lang.String getChip()
Gets the String property chip.
Returns:
String

setChip

public final void setChip(java.lang.String chip)
Sets the String property chip.
Parameters:
chip -  

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 -  

getBaseCatalog

public final XmlBaseCatalog getBaseCatalog()
Gets the XmlBaseCatalog property baseCatalog.
Returns:
XmlBaseCatalog

setBaseCatalog

public final void setBaseCatalog(XmlBaseCatalog baseCatalog)
Sets the XmlBaseCatalog property baseCatalog.
Parameters:
baseCatalog -  

getReversedImage

public final XmlReversedImage getReversedImage()
Gets the XmlReversedImage property reversedImage.
Returns:
XmlReversedImage

setReversedImage

public final void setReversedImage(XmlReversedImage reversedImage)
Sets the XmlReversedImage property reversedImage.
Parameters:
reversedImage -  

getSbigImage

public final XmlSbigImage getSbigImage()
Gets the XmlSbigImage property sbigImage.
Returns:
XmlSbigImage

setSbigImage

public final void setSbigImage(XmlSbigImage sbigImage)
Sets the XmlSbigImage property sbigImage.
Parameters:
sbigImage -  

getUnofficial

public final XmlUnofficial getUnofficial()
Gets the XmlUnofficial property unofficial.
Returns:
XmlUnofficial

setUnofficial

public final void setUnofficial(XmlUnofficial unofficial)
Sets the XmlUnofficial property unofficial.
Parameters:
unofficial -  

getOutput

public final XmlOutput[] getOutput()
Gets the XmlOutput property output.
Returns:
XmlOutput[]

setOutput

public final void setOutput(XmlOutput[] output)
Sets the XmlOutput property output.
Parameters:
output -  

addOutput

public final void addOutput(XmlOutput output)
Adds the XmlOutput property output.
Parameters:
output -  

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 XmlInstruction.
Parameters:
element -  
Returns:
boolean

isMatch

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