Examples of Binding


Examples of org.eclipse.jface.bindings.Binding

      if (isPartialMatch(sequenceAfterKeyStroke)) {
        incrementState(sequenceAfterKeyStroke);
        return true;

      } else if (isPerfectMatch(sequenceAfterKeyStroke)) {
        final Binding binding = getPerfectMatch(sequenceAfterKeyStroke);
        try {
          return executeCommand(binding, event)
              || !sequenceBeforeKeyStroke.isEmpty();
        } catch (final CommandException e) {
          logException(e, binding.getParameterizedCommand());
          return true;
        }

      } else if ((keyAssistDialog != null)
          && (keyAssistDialog.getShell() != null)
View Full Code Here

Examples of org.eclipse.wst.wsdl.Binding

  private int getVerbOption(Object genericBindingObject)
  {
    if (verbOption == VERB_NOT_SET && genericBindingObject != null)
    {
      // init() was never called, try to determine the 'verb' based on what we have/know
      Binding binding = getBindingObject(genericBindingObject);

      // Try to determine the verb from the Binding Object
      if (binding != null)
      {
        List list = binding.getEExtensibilityElements();
        Iterator valuesIt = getExtensibilityElementAttributeValue(list, "verb").iterator();

        while (valuesIt.hasNext())
        {
          String verb = (String)valuesIt.next();
View Full Code Here

Examples of org.exolab.castor.builder.binding.xml.Binding

     * @throws BindingException
     *             thrown when an error occurred during the unmarshalling.
     */
    @SuppressWarnings("unchecked")
    public void loadBinding(final InputSource source) throws BindingException {
        Binding loaded = null;
        if (_binding == null) {
            _binding = new ExtendedBinding();
        }

        //do not use the static method to ensure validation is turned on
        Unmarshaller unmarshaller = new Unmarshaller(Binding.class);
        unmarshaller.setValidation(true);

        try {
            loaded = (Binding) unmarshaller.unmarshal(source);

            //--Copy one by one the components loaded in the root binding
            _binding.setDefaultBindingType(loaded.getDefaultBindingType());

            //--packages
            Enumeration<PackageType> packages = loaded.enumeratePackage();
            while (packages.hasMoreElements()) {
                PackageType tempPackage = packages.nextElement();
                _binding.addPackage(tempPackage);
            }

            //--NamingXML
            NamingXMLType naming = loaded.getNamingXML();
            if (naming != null) {
                _binding.setNamingXML(naming);
            }

            //--NamingXML
            AutomaticNamingType automaticNaming = loaded.getAutomaticNaming();
            if (automaticNaming != null) {
                _binding.setAutomaticNaming(automaticNaming);
                _binding.handleAutomaticNaming(automaticNaming);
            }
           
            //--elementBindings
            Enumeration<ComponentBindingType> elements = loaded.enumerateElementBinding();
            while (elements.hasMoreElements()) {
                ComponentBindingType tempComp = elements.nextElement();
                _binding.addElementBinding(tempComp);
            }

            //--attributeBindings
            Enumeration<ComponentBindingType> attributes = loaded.enumerateAttributeBinding();
            while (attributes.hasMoreElements()) {
                ComponentBindingType  tempComp = attributes.nextElement();
                _binding.addAttributeBinding(tempComp);
            }

            //--ComplexTypeBindings
            Enumeration<ComponentBindingType> complexTypes = loaded.enumerateComplexTypeBinding();
            while (complexTypes.hasMoreElements()) {
                ComponentBindingType tempComp = complexTypes.nextElement();
                _binding.addComplexTypeBinding(tempComp);
            }

            //--SimpleTypeBindings
            Enumeration<ComponentBindingType> sts = loaded.enumerateSimpleTypeBinding();
            while (sts.hasMoreElements()) {
                ComponentBindingType tempComp = sts.nextElement();
                _binding.addSimpleTypeBinding(tempComp);
            }

            //--groupBindings
            Enumeration<ComponentBindingType> groups = loaded.enumerateGroupBinding();
            while (groups.hasMoreElements()) {
                ComponentBindingType tempComp = groups.nextElement();
                _binding.addGroupBinding(tempComp);
            }

            //--enumBinding
            Enumeration<ComponentBindingType> enums = loaded.enumerateEnumBinding();
            while (enums.hasMoreElements()) {
                ComponentBindingType tempEnum = enums.nextElement();
                _binding.addEnumBinding(tempEnum);
            }

            //--included schemas
            Enumeration<IncludeType> includes = loaded.enumerateInclude();
            while (includes.hasMoreElements()) {
                IncludeType tempInclude = includes.nextElement();
                try {
                    loadBinding(tempInclude.getURI());
                } catch (Exception except) {
View Full Code Here

Examples of org.geotools.xml.Binding

                LOGGER.warning( "Could not find binding for " + property.getQName() + ", using XSAnyTypeBinding." );
                bindings.add( new XSAnyTypeBinding() );
            }

            // get hte last binding in the chain to execute
            Binding last = ((Binding) bindings.get(bindings.size() - 1));
            Class theClass = last.getType();

            if (theClass == null) {
                throw new RuntimeException("binding declares null type: " + last.getTarget());
            }

            // get the attribute properties
            int min = particle.getMinOccurs();
            int max = particle.getMaxOccurs();
View Full Code Here

Examples of org.gwt.beansbinding.core.client.Binding

  }

  @SuppressWarnings("unchecked")
  protected Binding addBinding(String name, UpdateStrategy updateStrategy,
      Property actionProperty, Property targetProperty) {
    Binding binding = Bindings.createAutoBinding(updateStrategy, source,
        actionProperty, getTargetBean(), targetProperty, name);
    addBinding(binding);
    return binding;
  }
View Full Code Here

Examples of org.hornetq.core.postoffice.Binding

   public void createConsumer(final long consumerID,
                              final SimpleString queueName,
                              final SimpleString filterString,
                              final boolean browseOnly) throws Exception
   {
      Binding binding = postOffice.getBinding(queueName);

      if (binding == null || binding.getType() != BindingType.LOCAL_QUEUE)
      {
         throw new HornetQException(HornetQException.QUEUE_DOES_NOT_EXIST, "Queue " + queueName + " does not exist");
      }

      securityStore.check(binding.getAddress(), CheckType.CONSUME, this);

      Filter filter = FilterImpl.createFilter(filterString);

      ServerConsumer consumer = new ServerConsumerImpl(consumerID,
                                                       this,
                                                       (QueueBinding)binding,
                                                       filter,
                                                       started,
                                                       browseOnly,
                                                       storageManager,
                                                       callback,
                                                       preAcknowledge,
                                                       strictUpdateDeliveryCount,
                                                       managementService);

      consumers.put(consumer.getID(), consumer);

      if (!browseOnly)
      {
         TypedProperties props = new TypedProperties();

         props.putSimpleStringProperty(ManagementHelper.HDR_ADDRESS, binding.getAddress());

         props.putSimpleStringProperty(ManagementHelper.HDR_CLUSTER_NAME, binding.getClusterName());

         props.putSimpleStringProperty(ManagementHelper.HDR_ROUTING_NAME, binding.getRoutingName());

         props.putIntProperty(ManagementHelper.HDR_DISTANCE, binding.getDistance());

         Queue theQueue = (Queue)binding.getBindable();

         props.putIntProperty(ManagementHelper.HDR_CONSUMER_COUNT, theQueue.getConsumerCount());

         if (filterString != null)
         {
View Full Code Here

Examples of org.izi.binding.Binding

      add(comboPanel);

      JLabel label = new JLabel();
      add(label);

      final Binding bind = bind();

      perform(showDialog).when(ActionListener.class).on(showButton);
      perform(new Behavior()
      {
         @Override
         public void perform(EventObject event)
         {
            bind.executeAll();
         }
      }).when(ActionListener.class).on(showButton);

      bind.textOf(field).after(never()).to(model, ModelForImmediateBinding.NAME);
      bind.valueOf(model, ModelForImmediateBinding.NAME).after(never()).through(toUpperCase()).to(label, "text");
      bind.selectedOf(checkBox).after(never()).to(model, ModelForImmediateBinding.SHOW_ERROR);
      bind.selectedOf(comboBox).after(never()).to(model, ModelForImmediateBinding.SELECTION);
      bind.valueOf(model, ModelForImmediateBinding.OPTIONS).after(never()).toItemsOf(comboBox);
   }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.Binding

        String javaName = normalized;
        String detypedName = javaName;

        // @Binding can override the detyped name
        Binding bindingDeclaration = method.getAnnotation(Binding.class);
        boolean ignore = false;

        if(bindingDeclaration!=null)
        {
            detypedName = bindingDeclaration.detypedName();
            ignore = bindingDeclaration.ignore();
        }

        return new BindingDeclaration(detypedName, javaName, ignore, beanTypeClass.getName());
    }
View Full Code Here

Examples of org.jboss.ballroom.client.widgets.forms.Binding

        String javaName = normalized;
        String detypedName = javaName;

        // @Binding can override the detyped name
        Binding bindingDeclaration = method.getAnnotation(Binding.class);
        boolean ignore = false;

        if(bindingDeclaration!=null)
        {
            detypedName = bindingDeclaration.detypedName();
            ignore = bindingDeclaration.ignore();
        }

        return new BindingDeclaration(detypedName, javaName, ignore, beanTypeClass.getName());
    }
View Full Code Here

Examples of org.jboss.byteman.rule.binding.Binding

        // check the local var bindings and, if any of them are actually refereces to method params
        // alias them to the corresponding param binding

        while (iterator.hasNext()) {
            Binding binding = iterator.next();
            if  (binding.isLocalVar()){
                int localIdx = binding.getLocalIndex();
                if (localIdx < argLocalIndex) {
                    binding = alias(binding, bindings, localIdx);
                    if (binding != null) {
                        // the aliased param binding was not present so ensure it gets added to the
                        // binding set once we have finished iterating. there is no need to add it
                        // to the call bindings since we pass the aliased method param instead
                        aliasBindings.add(binding);
                    }
                } else {
                    callArrayBindings.add(binding);
                }
            }
        }

        bindings.addBindings(aliasBindings);
       
        // now iterate over the param vars and ensure they go into the call bindings list

        iterator = bindings.iterator();
       
        while (iterator.hasNext()) {
            Binding binding = iterator.next();
            if (binding.isParam()) {
                callArrayBindings.add(binding);
            } else if (binding.isReturn()) {
                // in order to be able to add the return value to the args array
                // we have to add a local var to store the value so track that requirement
                bindReturnOrThrowableValue = true;
                saveValueType = getReturnBindingType();
                binding.setDescriptor(saveValueType.getClassName());
                callArrayBindings.add(binding);
            } else if (binding.isThrowable()) {
                // in order to be able to add the return value or throwable value to the args array
                // we have to add a local var to store the value so track that requirement
                bindReturnOrThrowableValue = true;
                // TODO -- allow type to be more accurately identified than this
                saveValueType = Type.getType("Ljava/lang/Throwable;");
                callArrayBindings.add(binding);
            } else if (binding.isParamCount() || binding.isParamArray()) {
                callArrayBindings.add(binding);
            } else if (binding.isInvokeParamArray()) {
                // in order to be able to ad th einvoke parameters to the args array we
                // have to add a local var to store the value so track that requirement
                callArrayBindings.add(binding);
                bindInvokeParams = true;
            }
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.