Examples of BindingType


Examples of org.apache.tuscany.sca.policy.BindingType

       
     
       
        // TODO - seems that we should do this loop on a binding by binding basis
        //        rather than each time we do matching
        BindingType bindingType = null;
        Definitions systemDefinitions = ((RuntimeEndpoint)endpoint).getCompositeContext().getSystemDefinitions();
        for (BindingType loopBindingType : systemDefinitions.getBindingTypes()){
            if (loopBindingType.getType().equals(binding.getType())){
                bindingType = loopBindingType;
                break;
            }
        }
       
        // Before we start examining intents, remove any whose constrained
        // types don't include the binding type
        removeConstrainedIntents(endpointReference, bindingType);
       
        List<Intent> eprIntents = new ArrayList<Intent>();
        eprIntents.addAll(endpointReference.getRequiredIntents());
       
        // first check the binding type
        for (Intent intent : endpointReference.getRequiredIntents()){
            if (bindingType != null &&
                bindingType.getAlwaysProvidedIntents().contains(intent)){
                eprIntents.remove(intent);
            } else if (bindingType != null &&
                       bindingType.getMayProvidedIntents().contains(intent)){
                eprIntents.remove(intent);
            } else {
               // TODO - this code also appears in the ComponentPolicyBuilder
               //        so should rationalize
               loop: for (PolicySet policySet : referencePolicySets){
View Full Code Here

Examples of org.exolab.castor.builder.binding.types.BindingType

   */
  public boolean mappingSchemaElement2Java() {
      if (_bindingComponent != null) {
          ExtendedBinding binding = _bindingComponent.getBinding();
          if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null ) {
                    return (type.getType() == BindingType.ELEMENT_TYPE);
                }
            }
      }
      return super.mappingSchemaElement2Java();
  } //-- mappingSchemaElement2Java
View Full Code Here

Examples of org.exolab.castor.builder.binding.xml.types.BindingType

     */
    public final boolean mappingSchemaElement2Java() {
        if (_bindingComponent != null) {
            ExtendedBinding binding = _bindingComponent.getBinding();
            if (binding != null) {
                BindingType type = binding.getDefaultBindingType();
                if (type != null) {
                    return (type == BindingType.ELEMENT);
                }
            }
        }
View Full Code Here

Examples of org.omg.CosNaming.BindingType

            InternalBindingValue theElement =
                (InternalBindingValue)theHashtable.get( theBindingKey );
            NameComponent n = new NameComponent( theBindingKey.id, theBindingKey.kind );
            NameComponent[] nlist = new NameComponent[1];
            nlist[0] = n;
            BindingType theType = theElement.theBindingType;

            b.value =
                new Binding( nlist, theType );
        } else {
            // Return empty but marshalable binding
View Full Code Here

Examples of org.openhab.binding.insteonhub.internal.InsteonHubBindingConfig.BindingType

          + itemName + "'");
      return;
    }

    // parse info from config
    BindingType type = config.getBindingType();
    String hubId = config.getDeviceInfo().getHubId();
    String deviceId = config.getDeviceInfo().getDeviceId();

    // lookup proxy from this configuration
    InsteonHubProxy proxy = proxies.get(hubId);
View Full Code Here

Examples of org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConfig.BindingType

          + "' for item '" + itemName + "'");
    }

    try {
      Zone zone = config.getZone();
      BindingType type = config.getBindingType();
      if (type == BindingType.power) {
        if (command instanceof OnOffType) {
          proxy.setPower(zone, command == OnOffType.ON);
        }
      } else if (type == BindingType.volumePercent
View Full Code Here

Examples of org.talend.esb.servicelocator.client.BindingType

     * Maps a bindingId to its corresponding BindingType.
     * @param bindingId
     * @return
     */
    private static BindingType map2BindingType(String bindingId) {
        BindingType type;
        if (SOAP11_BINDING_ID.equals(bindingId)) {
            type = BindingType.SOAP11;
        } else if (SOAP12_BINDING_ID.equals(bindingId)) {
            type = BindingType.SOAP12;
        } else if (JAXRS_BINDING_ID.equals(bindingId)) {
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.