net.aerith.misao.xml.relaxer
Class XmlPixy

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

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

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

 <elementRule role="pixy">
   <sequence>
     <ref label="report"/>
     <ref label="batch"/>
     <ref label="information-holder"/>
     <ref label="record-holder"/>
     <ref label="mag-record-holder"/>
     <ref label="position-record-holder"/>
     <ref label="variability-holder"/>
   </sequence>
 </elementRule>
 <tag name="pixy"/>
 

See Also:
Serialized Form

Field Summary
private  XmlBatch batch
           
private  XmlInformationHolder informationHolder
           
private  XmlMagRecordHolder magRecordHolder
           
private  IRNode parentRNode
           
private  XmlPositionRecordHolder positionRecordHolder
           
private  RContext rContext
           
private  XmlRecordHolder recordHolder
           
private  XmlReport report
           
private  XmlVariabilityHolder variabilityHolder
           
 
Constructor Summary
XmlPixy()
          Creates a XmlPixy.
XmlPixy(org.w3c.dom.Document doc)
          Creates a XmlPixy by the Document doc.
XmlPixy(org.w3c.dom.Element element)
          Creates a XmlPixy by the Element element.
XmlPixy(RStack stack)
          Creates a XmlPixy by the Stack stack that contains Elements.
 
Method Summary
 XmlBatch getBatch()
          Gets the XmlBatch property batch.
 XmlInformationHolder getInformationHolder()
          Gets the XmlInformationHolder property informationHolder.
 XmlMagRecordHolder getMagRecordHolder()
          Gets the XmlMagRecordHolder property magRecordHolder.
 IRNode getParentRNode()
          Gets the IRNode property parentRNode.
 XmlPositionRecordHolder getPositionRecordHolder()
          Gets the XmlPositionRecordHolder property positionRecordHolder.
 RContext getRContext()
          Gets the RContext property rContext.
 RContext getRContextResolved()
          Gets the property "rContext" which is resolved recursively.
 XmlRecordHolder getRecordHolder()
          Gets the XmlRecordHolder property recordHolder.
 XmlReport getReport()
          Gets the XmlReport property report.
 IRNode[] getRNodes()
          Gets child RNodes.
 XmlVariabilityHolder getVariabilityHolder()
          Gets the XmlVariabilityHolder property variabilityHolder.
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 XmlPixy.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlPixy.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XmlPixy.
 void makeElement(org.w3c.dom.Node parent)
          Creates a DOM representation of the object.
 void setBatch(XmlBatch batch)
          Sets the XmlBatch property batch.
 void setInformationHolder(XmlInformationHolder informationHolder)
          Sets the XmlInformationHolder property informationHolder.
 void setMagRecordHolder(XmlMagRecordHolder magRecordHolder)
          Sets the XmlMagRecordHolder property magRecordHolder.
 void setParentRNode(IRNode parentRNode)
          Sets the IRNode property parentRNode.
 void setPositionRecordHolder(XmlPositionRecordHolder positionRecordHolder)
          Sets the XmlPositionRecordHolder property positionRecordHolder.
 void setRContext(RContext rContext)
          Sets the RContext property rContext.
 void setRecordHolder(XmlRecordHolder recordHolder)
          Sets the XmlRecordHolder property recordHolder.
 void setReport(XmlReport report)
          Sets the XmlReport property report.
 void setup(org.w3c.dom.Document doc)
          Initializes the XmlPixy by the Document doc.
 void setup(org.w3c.dom.Element element)
          Initializes the XmlPixy by the Element element.
 void setup(RStack stack)
          Initializes the XmlPixy by the Stack stack that contains Elements.
 void setVariabilityHolder(XmlVariabilityHolder variabilityHolder)
          Sets the XmlVariabilityHolder property variabilityHolder.
 
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

report

private XmlReport report

batch

private XmlBatch batch

informationHolder

private XmlInformationHolder informationHolder

recordHolder

private XmlRecordHolder recordHolder

magRecordHolder

private XmlMagRecordHolder magRecordHolder

positionRecordHolder

private XmlPositionRecordHolder positionRecordHolder

variabilityHolder

private XmlVariabilityHolder variabilityHolder

parentRNode

private IRNode parentRNode

rContext

private RContext rContext
Constructor Detail

XmlPixy

public XmlPixy()
Creates a XmlPixy.

XmlPixy

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

XmlPixy

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

XmlPixy

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

setup

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

setup

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

setup

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

getReport

public final XmlReport getReport()
Gets the XmlReport property report.
Returns:
XmlReport

setReport

public final void setReport(XmlReport report)
Sets the XmlReport property report.
Parameters:
report -  

getBatch

public final XmlBatch getBatch()
Gets the XmlBatch property batch.
Returns:
XmlBatch

setBatch

public final void setBatch(XmlBatch batch)
Sets the XmlBatch property batch.
Parameters:
batch -  

getInformationHolder

public final XmlInformationHolder getInformationHolder()
Gets the XmlInformationHolder property informationHolder.
Returns:
XmlInformationHolder

setInformationHolder

public final void setInformationHolder(XmlInformationHolder informationHolder)
Sets the XmlInformationHolder property informationHolder.
Parameters:
informationHolder -  

getRecordHolder

public final XmlRecordHolder getRecordHolder()
Gets the XmlRecordHolder property recordHolder.
Returns:
XmlRecordHolder

setRecordHolder

public final void setRecordHolder(XmlRecordHolder recordHolder)
Sets the XmlRecordHolder property recordHolder.
Parameters:
recordHolder -  

getMagRecordHolder

public final XmlMagRecordHolder getMagRecordHolder()
Gets the XmlMagRecordHolder property magRecordHolder.
Returns:
XmlMagRecordHolder

setMagRecordHolder

public final void setMagRecordHolder(XmlMagRecordHolder magRecordHolder)
Sets the XmlMagRecordHolder property magRecordHolder.
Parameters:
magRecordHolder -  

getPositionRecordHolder

public final XmlPositionRecordHolder getPositionRecordHolder()
Gets the XmlPositionRecordHolder property positionRecordHolder.
Returns:
XmlPositionRecordHolder

setPositionRecordHolder

public final void setPositionRecordHolder(XmlPositionRecordHolder positionRecordHolder)
Sets the XmlPositionRecordHolder property positionRecordHolder.
Parameters:
positionRecordHolder -  

getVariabilityHolder

public final XmlVariabilityHolder getVariabilityHolder()
Gets the XmlVariabilityHolder property variabilityHolder.
Returns:
XmlVariabilityHolder

setVariabilityHolder

public final void setVariabilityHolder(XmlVariabilityHolder variabilityHolder)
Sets the XmlVariabilityHolder property variabilityHolder.
Parameters:
variabilityHolder -  

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

isMatch

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