Package gov.nasa.worldwind.util.xml

Examples of gov.nasa.worldwind.util.xml.XMLEventParser


   protected void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args)
        throws XMLStreamException
    {
        if (ctx.isStartElement(event, SERVICE))
        {
            XMLEventParser parser = this.allocate(ctx, event);
            if (parser != null)
            {
                Object o = parser.parse(ctx, event, args);
                if (o != null && o instanceof OGCServiceInformation)
                    this.setServiceInformation((OGCServiceInformation) o);
            }
        }
        else if (ctx.isStartElement(event, CAPABILITY))
        {
            XMLEventParser parser = this.allocate(ctx, event);
            if (parser != null)
            {
                Object o = parser.parse(ctx, event, args);
                if (o != null && o instanceof OGCCapabilityInformation)
                    this.setCapabilityInformation((OGCCapabilityInformation) o);
            }
        }
    }
View Full Code Here


            String message = Logging.getMessage("nullValue.ParserContextIsNull");
            Logging.logger().severe(message);
            throw new IllegalArgumentException(message);
        }

        XMLEventParser defaultParser = null;

        if (ctx.isStartElement(event, SERVICE))
            defaultParser = new OGCServiceInformation(this.getNamespaceURI());

        return ctx.allocate(event, defaultParser);
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.util.xml.XMLEventParser

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.