Package slash.navigation.kml.binding21

Examples of slash.navigation.kml.binding21.DeleteType


        buildDocument(xml);
       
        TransactionType t = (TransactionType) parse();
        assertEquals(1, t.getAbstractTransactionAction().size());
       
        DeleteType d = (DeleteType) t.getAbstractTransactionAction().get(0);
        assertNotNull(d.getFilter());
       
        Id id = (Id) d.getFilter();
        assertTrue(id.getIDs().contains("InWaterA_1M.1013"));

    }
View Full Code Here


    protected void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        DeleteType deleteType = setType.addNewDelete();
        deleteType.setResourceProperty( propName );       
        setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse();
    }
View Full Code Here

    public void testDeleteOpenContent() throws IOException, XmlException
    {
        m_resourceContext = new SushiResourceContext( true );
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.FUGU );
        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );
        //todo better way to validate
        assertNotNull( getResourcePropertyResponse );
    }
View Full Code Here

        SushiResource resource = (SushiResource) m_resourceContext.getResource();
        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.IKA );
        resourceProp.setCallback( m_callback );

        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.IKA );

        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );

        assertNotNull( getResourcePropertyResponse );
View Full Code Here

    private void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( propName );
        set_provider.deleteResourceProperty( deleteType );
    }
View Full Code Here

    protected void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesPortTypeImpl setProvider = new SetResourcePropertiesPortTypeImpl( m_resourceContext );
        SetResourcePropertiesDocument setDocument = SetResourcePropertiesDocument.Factory.newInstance();
        SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties();
        DeleteType deleteType = setType.addNewDelete();
        deleteType.setResourceProperty( propName );       
        setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse();
    }
View Full Code Here

      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType = setDocument.addNewSetResourceProperties(  );
      DeleteType                                          deleteType = setType.addNewDelete(  );
      deleteType.setResourceProperty( propName );
      setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse(  );
   }
View Full Code Here

      SetResourcePropertiesPortTypeImpl                   setProvider =
         new SetResourcePropertiesPortTypeImpl( m_resourceContext );
      SetResourcePropertiesDocument                       setDocument =
         SetResourcePropertiesDocument.Factory.newInstance(  );
      SetResourcePropertiesDocument.SetResourceProperties setType    = setDocument.addNewSetResourceProperties(  );
      DeleteType                                          deleteType = setType.addNewDelete(  );
      deleteType.setResourceProperty( propName );
      setProvider.setResourceProperties( setDocument ).getSetResourcePropertiesResponse(  );
   }
View Full Code Here

    }

    public void read(InputStream source, CompactCalendar startDate, ParserContext<KmlRoute> context) throws Exception {
        InputStreamReader reader = new InputStreamReader(source);
        try {
            KmlType kmlType = unmarshal21(reader);
            process(kmlType, startDate, context);
        }
        finally {
            reader.close();
        }
View Full Code Here

    }

    public void read(InputStream source, CompactCalendar startDate, ParserContext<KmlRoute> context) throws Exception {
        InputStreamReader reader = new InputStreamReader(source, UTF16LE_ENCODING);
        try {
            KmlType kmlType = unmarshal21(reader);
            process(kmlType, startDate, context);
        }
        finally {
            reader.close();
        }
View Full Code Here

TOP

Related Classes of slash.navigation.kml.binding21.DeleteType

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.