Examples of containsFeature()


Examples of com.meapsoft.FeatChunk.containsFeature()

      System.exit(-1);
    }
   
    Vector chunks = (Vector)featFile.chunks;
    FeatChunk fC = (FeatChunk)chunks.elementAt(0);
    if (!fC.containsFeature("AvgChroma"))
    {
      System.out.println("ChromaTopComposer requires the AvgChroma feature!");
      return;
    }
  }
View Full Code Here

Examples of com.meapsoft.FeatChunk.containsFeature()

    }
   
    //System.out.println("chunks.size(): " + featFile.chunks.size());
    //Vector chunks = (Vector)featFile.chunks;
    FeatChunk fC = (FeatChunk) featFile.chunks.get(0);
    if (!fC.containsFeature("AvgChroma"))
    {
      System.out.println("ChromaTopComposer requires the AvgChroma feature!");
      return;
    }
   
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsFeature()

      //   loop over all remaining output capabilities of the aggregate's result spec
      //     to see if this component of the aggregate produces that type or feature,
      //     for this language
      for (TypeOrFeature tof : tofsNeeded) {
        if ((tof.isType() && delegateProduces.containsType(tof.getName(), language)) ||
            (!tof.isType() && delegateProduces.containsFeature(tof.getName(), language))) {
//        if (capabilityContainer.hasOutputTypeOrFeature(tof, language, true)) {
          currentAnalysisResultSpec.addResultTypeOrFeature(tof);
          shouldEngineBeCalled = true;
          // remove current ToF from the result spec
          aggrResultsToProduce.removeTypeOrFeature(tof);
View Full Code Here

Examples of org.apache.uima.analysis_engine.ResultSpecification.containsFeature()

      //   loop over all remaining ouput capabilities of the aggregate's result spec
      //     to see if this component of the aggregate produces that type or feature,
      //     for this language
      for (TypeOrFeature tof : tofsNeeded) {
        if ((tof.isType() && delegateProduces.containsType(tof.getName(), language)) ||
            (!tof.isType() && delegateProduces.containsFeature(tof.getName(), language))) {
//        if (capabilityContainer.hasOutputTypeOrFeature(tof, language, true)) {
          currentAnalysisResultSpec.addResultTypeOrFeature(tof);
          shouldEngineBeCalled = true;
          // remove current ToF from the result spec
          aggrResultsToProduce.removeTypeOrFeature(tof);
View Full Code Here

Examples of org.jivesoftware.openfire.entitycaps.EntityCapabilities.containsFeature()

                // Check if the recipientFullJID is interested in notifications for this node.
                // If the recipient has not yet requested any notification filtering, continue and send
                // the notification.
                EntityCapabilities entityCaps = entityCapsManager.getEntityCapabilities(recipientFullJID);
                if (entityCaps != null) {
                    if (!entityCaps.containsFeature(nodeID + "+notify")) {
                        return;
                    }
                }

                // Get the full JID of the item publisher from the node that was published to.
View Full Code Here

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

            if (identity.getCategory() != null)
              item.setText(2, identity.getCategory());
            if (identity.getType() != null)
              item.setText(3, identity.getType());
          }
          if (info.containsFeature("jabber:iq:register")) {
            //System.out.println(addressid + " supports registration .. ");
            item.setData("supportsRegister",true);
          }
          if (info.containsFeature("jabber:iq:search")) {
            item.setData("supportsSearch",true);
View Full Code Here

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

          }
          if (info.containsFeature("jabber:iq:register")) {
            //System.out.println(addressid + " supports registration .. ");
            item.setData("supportsRegister",true);
          }
          if (info.containsFeature("jabber:iq:search")) {
            item.setData("supportsSearch",true);
          }
          if(info.containsFeature("http://jabber.org/protocol/muc")) {
            item.setData("supportsMUC",true);
          }
View Full Code Here

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

            item.setData("supportsRegister",true);
          }
          if (info.containsFeature("jabber:iq:search")) {
            item.setData("supportsSearch",true);
          }
          if(info.containsFeature("http://jabber.org/protocol/muc")) {
            item.setData("supportsMUC",true);
          }
          item.setData("info", info);
          item.setBackground(null);
          taskObserver.finishedTask(task);
View Full Code Here

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

        String addressid = (String) selectedItem.getData("address");
        if (info == null)
          return;
        if (addressid == null)
          return;
        if (!info.containsFeature("jabber:iq:register"))
          return;
        Registration reg = new Registration();
        reg.setTo(addressid);
        IQ result;
        try {
View Full Code Here

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

     * @return true if the server supports publishing of items.
     * @throws XMPPException if the operation failed for some reason.
     */
    public boolean canPublishItems(String entityID) throws XMPPException {
        DiscoverInfo info = discoverInfo(entityID);
        return info.containsFeature("http://jabber.org/protocol/disco#publish");
    }

    /**
     * Publishes new items to a parent entity. The item elements to publish MUST have at least
     * a 'jid' attribute specifying the Entity ID of the item, and an action attribute which
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.