Package org.jboss.metadata.web.spec

Examples of org.jboss.metadata.web.spec.OrderingMetaData


* @author Remy Maucherat
*/
public class OrderingMetaDataParser extends MetaDataElementParser {

    public static OrderingMetaData parse(XMLStreamReader reader) throws XMLStreamException {
        OrderingMetaData ordering = new OrderingMetaData();

        // Handle elements
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            final Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case BEFORE:
                    ordering.setBefore(RelativeOrderingMetaDataParser.parse(reader));
                    break;
                case AFTER:
                    ordering.setAfter(RelativeOrderingMetaDataParser.parse(reader));
                    break;
                default: throw unexpectedElement(reader);
            }
        }

View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.spec.OrderingMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.