|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jour.rt.view.config.impl.runtime.InterleaveDispatcher
Splits the unmarshalling events to bracnhes to support XML Schema's <all> and RELAX NG's <interleave>
This class will be extended by the generated code.
Field Summary | |
protected net.sf.jour.rt.view.config.impl.runtime.InterleaveDispatcher.Site[] |
sites
Branches of an interleave. |
Constructor Summary | |
protected |
InterleaveDispatcher(UnmarshallingContext context,
int size)
|
Method Summary | |
void |
enterAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
void |
enterElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
protected abstract int |
getBranchForAttribute(java.lang.String uri,
java.lang.String local)
Returns the branch number that consumes the given attribute, or -1 if the name is not recognized. |
protected abstract int |
getBranchForElement(java.lang.String uri,
java.lang.String local)
Returns the branch number that consumes the given element, or -1 if the name is not recognized. |
protected abstract int |
getBranchForText()
Returns the branch number that consumes the text events, or -1 if no branch is expected to consume it. |
protected void |
init(UnmarshallingEventHandler[] handlers)
|
void |
leaveAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
void |
leaveChild(int nextState)
|
void |
leaveElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
|
java.lang.Object |
owner()
Returns the content-tree object for which this unmarshaller is working for. |
void |
text(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final net.sf.jour.rt.view.config.impl.runtime.InterleaveDispatcher.Site[] sites
Constructor Detail |
protected InterleaveDispatcher(UnmarshallingContext context, int size)
Method Detail |
protected void init(UnmarshallingEventHandler[] handlers)
protected abstract int getBranchForElement(java.lang.String uri, java.lang.String local)
protected abstract int getBranchForAttribute(java.lang.String uri, java.lang.String local)
protected abstract int getBranchForText()
public java.lang.Object owner()
UnmarshallingEventHandler
owner
in interface UnmarshallingEventHandler
public void enterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
enterElement
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
leaveElement
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void text(java.lang.String s) throws org.xml.sax.SAXException
text
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void enterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
enterAttribute
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname) throws org.xml.sax.SAXException
leaveAttribute
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
public void leaveChild(int nextState) throws org.xml.sax.SAXException
leaveChild
in interface UnmarshallingEventHandler
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |