TransactionXmlReader200 extends AbstractTransactionXmlReader { Native readNative( XMLStreamReader xmlStream ) { String handle = xmlStream.getAttributeValue( null, "handle" ); String vendorId = XMLStreamUtils.getRequiredAttributeValue( xmlStream, "vendorId" ); boolean safeToIgnore = XMLStreamUtils.getRequiredAttributeValueAsBoolean( xmlStream, null, "safeToIgnore" ); return new Native( handle, vendorId, safeToIgnore, xmlStream ); }  @Override Transaction read( XMLStreamReader xmlStream ); @Override TransactionAction readAction( XMLStreamReader xmlStream ); @Override Filter readFilter( XMLStreamReader xmlStream ); @Override PropertyReplacement readProperty( XMLStreamReader xmlStream );  }
@Test public void testReadNativeWfs200SpecExample1() throws Exception { XMLStreamReader xmlStream = getXMLStreamReader( NATIVE_ACTION1 ); Native action = reader.readNative( xmlStream ); xmlStream.require( XMLStreamReader.START_ELEMENT, WFS_200_NS, "Native" ); assertNull( action.getHandle() ); assertEquals( "BigDbCorp", action.getVendorId() ); assertTrue( action.isSafeToIgnore() ); }