Examples of addFeature()


Examples of org.apache.uima.resource.metadata.TypeDescription.addFeature()

  public void testCreateCasCollection() throws Exception {
    try {
      // create two Type System description objects
      TypeSystemDescription tsd1 = new TypeSystemDescription_impl();
      TypeDescription supertype = tsd1.addType("test.Super", "", "uima.tcas.Annotation");
      supertype.addFeature("testfeat", "", "uima.cas.Integer");
      TypeDescription subtype = tsd1.addType("test.Sub", "", "test.Super");
      subtype.addFeature("testfeat", "", "uima.cas.Integer");

      TypeSystemDescription tsd2 = new TypeSystemDescription_impl();
      TypeDescription fooType = tsd1.addType("test.Foo", "", "uima.cas.TOP");
View Full Code Here

Examples of org.apache.uima.resource.metadata.TypeDescription.addFeature()

      // create two Type System description objects
      TypeSystemDescription tsd1 = new TypeSystemDescription_impl();
      TypeDescription supertype = tsd1.addType("test.Super", "", "uima.tcas.Annotation");
      supertype.addFeature("testfeat", "", "uima.cas.Integer");
      TypeDescription subtype = tsd1.addType("test.Sub", "", "test.Super");
      subtype.addFeature("testfeat", "", "uima.cas.Integer");

      TypeSystemDescription tsd2 = new TypeSystemDescription_impl();
      TypeDescription fooType = tsd1.addType("test.Foo", "", "uima.cas.TOP");
      fooType.addFeature("bar", "", "uima.cas.String");
View Full Code Here

Examples of org.apache.uima.resource.metadata.TypeDescription.addFeature()

      TypeDescription subtype = tsd1.addType("test.Sub", "", "test.Super");
      subtype.addFeature("testfeat", "", "uima.cas.Integer");

      TypeSystemDescription tsd2 = new TypeSystemDescription_impl();
      TypeDescription fooType = tsd1.addType("test.Foo", "", "uima.cas.TOP");
      fooType.addFeature("bar", "", "uima.cas.String");

      // create index and priorities descriptions

      FsIndexCollection indexes = new FsIndexCollection_impl();
      FsIndexDescription index = new FsIndexDescription_impl();
View Full Code Here

Examples of org.geomajas.gwt.client.widget.FeatureListGrid.addFeature()

            new AbstractCommandCallback<SearchFeatureResponse>() {

              public void execute(SearchFeatureResponse response) {
                for (org.geomajas.layer.feature.Feature feature : response.getFeatures()) {
                  Feature f = new Feature(feature, layer);
                  grid.addFeature(f);
                  layer.getFeatureStore().addFeature(f);
                }
              }
            });
      }
View Full Code Here

Examples of org.geomajas.gwt.client.widget.FeatureListGrid.addFeature()

        GwtCommandDispatcher.getInstance().execute(searchCommand,
            new AbstractCommandCallback<SearchFeatureResponse>() {

              public void execute(SearchFeatureResponse response) {
                for (org.geomajas.layer.feature.Feature feature : response.getFeatures()) {
                  grid.addFeature(new Feature(feature, layer));
                }
              }
            });
      }
    });
View Full Code Here

Examples of org.geotools.data.memory.MemoryDataStore.addFeature()

        GeometryFactory gf = new GeometryFactory();
        SimpleFeature f1 = SimpleFeatureBuilder.build(type, new Object[]{gf.createPoint(new Coordinate(5, 8)), "A label with \"quotes\""}, null);
        SimpleFeature f2 = SimpleFeatureBuilder.build(type, new Object[]{gf.createPoint(new Coordinate(5, 4)), "A long label\nwith newlines"}, null);
       
        MemoryDataStore data = new MemoryDataStore();
        data.addFeature(f1);
        data.addFeature(f2);
        FeatureSource<SimpleFeatureType, SimpleFeature> fs = data.getFeatureSource("funnyLabels");
       
        // build the request objects and feed the output format
        GetFeatureType gft = WfsFactory.eINSTANCE.createGetFeatureType();
View Full Code Here

Examples of org.jboss.ws.core.soap.MessageFactoryImpl.addFeature()

     
      Element srcEnv = DOMUtils.parse(srcXML);
      ByteArrayInputStream bais = getFastInputStream(srcXML);

      MessageFactoryImpl factory = new MessageFactoryImpl();
      factory.addFeature(new FastInfosetFeature());
      SOAPMessage soapMessage = factory.createMessage(null, bais);
      SOAPEnvelope resEnv = soapMessage.getSOAPPart().getEnvelope();
      assertEquals(srcEnv, resEnv);
   }
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.EndpointMetaData.addFeature()

      if (features != null)
      {
         EndpointMetaData epMetaData = ((StubExt)stub).getEndpointMetaData();
         for (WebServiceFeature feature : features)
         {
            epMetaData.addFeature(feature);
         }
      }
   }

   // Workaround for [JBWS-2015] Modify addressing handlers to work with the JAXWS-2.1 API
View Full Code Here

Examples of org.jboss.ws.tools.JavaToWSDL.addFeature()

      Iterator keys = featureMap.keySet().iterator();
      while (keys.hasNext())
      {
         String key = (String)keys.next();
         Boolean value = (Boolean)featureMap.get(key);
         jwsdl.addFeature(key, value.booleanValue());
      }
      WSDLDefinitions wsdl = jwsdl.generate(seiClass);
      typeMapping = jwsdl.getTypeMapping();
      return wsdl;
   }
View Full Code Here

Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.addFeature()

     * Adds the SOCKS5 Bytestream feature to the service discovery.
     */
    private void enableService() {
        ServiceDiscoveryManager manager = ServiceDiscoveryManager.getInstanceFor(this.connection);
        if (!manager.includesFeature(NAMESPACE)) {
            manager.addFeature(NAMESPACE);
        }
    }

    /**
     * Returns a new unique session ID.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.