net.aerith.misao.xml.relaxer
Class XmlMagRecord

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

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

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

 <elementRule role="mag-record">
   <sequence>
     <ref label="date"/>
     <ref label="mag"/>
     <element name="filter" occurs="?" type="string"/>
     <element name="chip" occurs="?" type="string"/>
     <element name="catalog" occurs="?" type="string"/>
     <element name="observer" type="string"/>
     <element name="instruments" occurs="?" type="string"/>
     <element name="image-xml-path" occurs="?" type="string"/>
     <element name="name" occurs="?" type="string"/>
     <ref label="position" occurs="?"/>
     <element name="pixels-from-edge" occurs="?" type="int"/>
     <ref label="reported" occurs="*"/>
     <ref label="unofficial" occurs="?"/>
     <ref label="discarded" occurs="?"/>
     <ref label="preempted" occurs="?"/>
     <ref label="imported" occurs="?"/>
     <ref label="blending" occurs="*"/>
     <element name="note" occurs="?" type="string"/>
   </sequence>
 </elementRule>
 <tag name="mag-record"/>
 

See Also:
Serialized Form

Field Summary
private  java.util.List blending
           
private  java.lang.String catalog
           
private  java.lang.String chip
           
private  java.lang.String date
           
private  XmlDiscarded discarded
           
private  java.lang.String filter
           
private  java.lang.String imageXmlPath
           
private  XmlImported imported
           
private  java.lang.String instruments
           
private  XmlMag mag
           
private  java.lang.String name
           
private  java.lang.String note
           
private  java.lang.String observer
           
private  IRNode parentRNode
           
private  java.lang.Integer pixelsFromEdge
           
private  XmlPosition position
           
private  XmlPreempted preempted
           
private  RContext rContext
           
private  java.util.List reported
           
private  XmlUnofficial unofficial
           
 
Constructor Summary
XmlMagRecord()
          Creates a XmlMagRecord.
XmlMagRecord(org.w3c.dom.Document doc)
          Creates a XmlMagRecord by the Document doc.
XmlMagRecord(org.w3c.dom.Element element)
          Creates a XmlMagRecord by the Element element.
XmlMagRecord(RStack stack)
          Creates a XmlMagRecord by the Stack stack that contains Elements.
 
Method Summary
 void addBlending(XmlBlending blending)
          Adds the XmlBlending property blending.
 void addReported(XmlReported reported)
          Adds the XmlReported property reported.
 XmlBlending[] getBlending()
          Gets the XmlBlending property blending.
 java.lang.String getCatalog()
          Gets the String property catalog.
 java.lang.String getChip()
          Gets the String property chip.
 java.lang.String getDate()
          Gets the String property date.
 XmlDiscarded getDiscarded()
          Gets the XmlDiscarded property discarded.
 java.lang.String getFilter()
          Gets the String property filter.
 java.lang.String getImageXmlPath()
          Gets the String property imageXmlPath.
 XmlImported getImported()
          Gets the XmlImported property imported.
 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 getNote()
          Gets the String property note.
 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.
 XmlPosition getPosition()
          Gets the XmlPosition property position.
 XmlPreempted getPreempted()
          Gets the XmlPreempted property preempted.
 RContext getRContext()
          Gets the RContext property rContext.
 RContext getRContextResolved()
          Gets the property "rContext" which is resolved recursively.
 XmlReported[] getReported()
          Gets the XmlReported property reported.
 IRNode[] getRNodes()
          Gets child RNodes.
 XmlUnofficial getUnofficial()
          Gets the XmlUnofficial property unofficial.
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 XmlMagRecord.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlMagRecord.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlMagRecord.
 void makeElement(org.w3c.dom.Node parent)
          Creates a DOM representation of the object.
 void setBlending(XmlBlending[] blending)
          Sets the XmlBlending property blending.
 void setCatalog(java.lang.String catalog)
          Sets the String property catalog.
 void setChip(java.lang.String chip)
          Sets the String property chip.
 void setDate(java.lang.String date)
          Sets the String property date.
 void setDiscarded(XmlDiscarded discarded)
          Sets the XmlDiscarded property discarded.
 void setFilter(java.lang.String filter)
          Sets the String property filter.
 void setImageXmlPath(java.lang.String imageXmlPath)
          Sets the String property imageXmlPath.
 void setImported(XmlImported imported)
          Sets the XmlImported property imported.
 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 setNote(java.lang.String note)
          Sets the String property note.
 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 setPosition(XmlPosition position)
          Sets the XmlPosition property position.
 void setPreempted(XmlPreempted preempted)
          Sets the XmlPreempted property preempted.
 void setRContext(RContext rContext)
          Sets the RContext property rContext.
 void setReported(XmlReported[] reported)
          Sets the XmlReported property reported.
 void setUnofficial(XmlUnofficial unofficial)
          Sets the XmlUnofficial property unofficial.
 void setup(org.w3c.dom.Document doc)
          Initializes the XmlMagRecord by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the XmlMagRecord by the Element element.
 void setup(RStack stack)
          Initializes the XmlMagRecord 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

mag

private XmlMag mag

filter

private java.lang.String filter

chip

private java.lang.String chip

catalog

private java.lang.String catalog

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

reported

private java.util.List reported

unofficial

private XmlUnofficial unofficial

discarded

private XmlDiscarded discarded

preempted

private XmlPreempted preempted

imported

private XmlImported imported

blending

private java.util.List blending

note

private java.lang.String note

parentRNode

private IRNode parentRNode

rContext

private RContext rContext
Constructor Detail

XmlMagRecord

public XmlMagRecord()
Creates a XmlMagRecord.

XmlMagRecord

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

XmlMagRecord

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

XmlMagRecord

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

setup

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

setup

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

setup

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

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 -  

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 -  

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 -  

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 -  

getReported

public final XmlReported[] getReported()
Gets the XmlReported property reported.
Returns:
XmlReported[]

setReported

public final void setReported(XmlReported[] reported)
Sets the XmlReported property reported.
Parameters:
reported -  

addReported

public final void addReported(XmlReported reported)
Adds the XmlReported property reported.
Parameters:
reported -  

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 -  

getDiscarded

public final XmlDiscarded getDiscarded()
Gets the XmlDiscarded property discarded.
Returns:
XmlDiscarded

setDiscarded

public final void setDiscarded(XmlDiscarded discarded)
Sets the XmlDiscarded property discarded.
Parameters:
discarded -  

getPreempted

public final XmlPreempted getPreempted()
Gets the XmlPreempted property preempted.
Returns:
XmlPreempted

setPreempted

public final void setPreempted(XmlPreempted preempted)
Sets the XmlPreempted property preempted.
Parameters:
preempted -  

getImported

public final XmlImported getImported()
Gets the XmlImported property imported.
Returns:
XmlImported

setImported

public final void setImported(XmlImported imported)
Sets the XmlImported property imported.
Parameters:
imported -  

getBlending

public final XmlBlending[] getBlending()
Gets the XmlBlending property blending.
Returns:
XmlBlending[]

setBlending

public final void setBlending(XmlBlending[] blending)
Sets the XmlBlending property blending.
Parameters:
blending -  

addBlending

public final void addBlending(XmlBlending blending)
Adds the XmlBlending property blending.
Parameters:
blending -  

getNote

public final java.lang.String getNote()
Gets the String property note.
Returns:
String

setNote

public final void setNote(java.lang.String note)
Sets the String property note.
Parameters:
note -  

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

isMatch

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