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);
}
}
}