Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.RespectBinding


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

    public static RespectBinding parse(XMLStreamReader reader) throws XMLStreamException {
        RespectBinding respectBinding = new RespectBinding();

        // Handle elements
        while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
            final Element element = Element.forName(reader.getLocalName());
            switch (element) {
                case ENABLED:
                    respectBinding.setEnabled(Boolean.valueOf(reader.getElementText()));
                    break;
                default: throw unexpectedElement(reader);
            }
        }

View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.RespectBinding

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.