Examples of addFeature()


Examples of org.jivesoftware.smackx.packet.DiscoverInfo.addFeature()

                        identity.setType(getIdentityType());
                        response.addIdentity(identity);
                        // Add the registered features to the response
                        synchronized (features) {
                            for (Iterator<String> it = getFeatures(); it.hasNext();) {
                                response.addFeature(it.next());
                            }
                            if (extendedInfo != null) {
                                response.addExtension(extendedInfo);
                            }
                        }
View Full Code Here

Examples of org.jivesoftware.smackx.packet.DiscoverItems.addFeature()

                        identity.setType(getIdentityType());
                        response.addIdentity(identity);
                        // Add the registered features to the response
                        synchronized (features) {
                            for (Iterator<String> it = getFeatures(); it.hasNext();) {
                                response.addFeature(it.next());
                            }
                            if (extendedInfo != null) {
                                response.addExtension(extendedInfo);
                            }
                        }
View Full Code Here

Examples of org.mitre.medfacts.i2b2.training.TrainingInstance.addFeature()

      TrainingInstance trainingInstance = new TrainingInstance();

      if (checkForEnabledFeature("conceptUnigrams")) {
          for (int k = conceptBeginTokenOffset; k <= conceptEndTokenOffset && k < lineLength; k++) {
              trainingInstance.addFeature("concept_unigram_" + StringHandling.escapeStringForFeatureName(currentLine[k]));
          }
      }

      if (checkForEnabledFeature("wordLeftFeature"))
      {
View Full Code Here

Examples of org.sumus.dwh.datastore.Entity.addFeature()

        insertPackageTuple(sourceFolder);
    }

    private void insertPackageEntity() {
        Entity component = new Entity("org.core", getDimension(DataStoreDefinition.MODULES));
        component.addFeature(DataStoreDefinition.NAME.getName(), "org.core");
        component.addFeature(DataStoreDefinition.TYPE.getName(), "Package");
        add(component);
    }

    private void insertClassEntity() {
View Full Code Here

Examples of org.vfny.geoserver.wfs.requests.InsertRequest.addFeature()

    public void testXml1() throws Exception {
        // make base comparison objects       
        InsertRequest insert = new InsertRequest();

        insert.setHandle("insert 1");
        insert.addFeature(testFeature);

        TransactionRequest baseRequest = new TransactionRequest();
        baseRequest.addSubRequest(insert);
        baseRequest.setHandle("my insert");
View Full Code Here

Examples of org.zkoss.openlayers.layer.Vector.addFeature()

    for (int i = 0; i < box_extents.length; i++) {
      Bounds bounds = Bounds.fromArray(new ArrayList(box_extents[i]));
      org.zkoss.openlayers.feature.Vector box = new org.zkoss.openlayers.feature.Vector(
          bounds.toGeometry());
      boxes.addFeature(box);
    }

    map.addLayers(Arrays.asList(ol_wms, boxes));
    map.addControl(new LayerSwitcher());
    Control sf = new SelectFeature(boxes);
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.