Class InterleaveDispatcher
- java.lang.Object
-
- com.sun.identity.wsfederation.jaxb.entityconfig.impl.runtime.InterleaveDispatcher
-
- All Implemented Interfaces:
UnmarshallingEventHandler
public abstract class InterleaveDispatcher extends Object implements UnmarshallingEventHandler
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.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.identity.wsfederation.jaxb.entityconfig.impl.runtime.InterleaveDispatcher.Site[]sitesBranches of an interleave.
-
Constructor Summary
Constructors Modifier Constructor Description protectedInterleaveDispatcher(UnmarshallingContext context, int size)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidenterAttribute(String uri, String local, String qname)voidenterElement(String uri, String local, String qname, Attributes atts)protected abstract intgetBranchForAttribute(String uri, String local)Returns the branch number that consumes the given attribute, or -1 if the name is not recognized.protected abstract intgetBranchForElement(String uri, String local)Returns the branch number that consumes the given element, or -1 if the name is not recognized.protected abstract intgetBranchForText()Returns the branch number that consumes the text events, or -1 if no branch is expected to consume it.protected voidinit(UnmarshallingEventHandler[] handlers)voidleaveAttribute(String uri, String local, String qname)voidleaveChild(int nextState)voidleaveElement(String uri, String local, String qname)Objectowner()Returns the content-tree object for which this unmarshaller is working for.voidtext(String s)
-
-
-
Constructor Detail
-
InterleaveDispatcher
protected InterleaveDispatcher(UnmarshallingContext context, int size)
-
-
Method Detail
-
init
protected void init(UnmarshallingEventHandler[] handlers)
-
getBranchForElement
protected abstract int getBranchForElement(String uri, String local)
Returns the branch number that consumes the given element, or -1 if the name is not recognized.
-
getBranchForAttribute
protected abstract int getBranchForAttribute(String uri, String local)
Returns the branch number that consumes the given attribute, or -1 if the name is not recognized.
-
getBranchForText
protected abstract int getBranchForText()
Returns the branch number that consumes the text events, or -1 if no branch is expected to consume it.
-
owner
public Object owner()
Description copied from interface:UnmarshallingEventHandlerReturns the content-tree object for which this unmarshaller is working for.- Specified by:
ownerin interfaceUnmarshallingEventHandler
-
enterElement
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException
- Specified by:
enterElementin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveElement
public void leaveElement(String uri, String local, String qname) throws SAXException
- Specified by:
leaveElementin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
text
public void text(String s) throws SAXException
- Specified by:
textin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
enterAttribute
public void enterAttribute(String uri, String local, String qname) throws SAXException
- Specified by:
enterAttributein interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveAttribute
public void leaveAttribute(String uri, String local, String qname) throws SAXException
- Specified by:
leaveAttributein interfaceUnmarshallingEventHandler- Throws:
SAXException
-
leaveChild
public void leaveChild(int nextState) throws SAXException- Specified by:
leaveChildin interfaceUnmarshallingEventHandler- Throws:
SAXException
-
-