Examples of Binding


Examples of com.hp.hpl.jena.sparql.engine.binding.Binding

        // -------- Either read the query iterator directly ...
        if ( false )
        {
            for ( ; qIter.hasNext() ; )
            {
                Binding b = qIter.nextBinding() ;
                Node n = b.get(var_x) ;
                System.out.println(FmtUtils.stringForNode(n)) ;
                System.out.println(b) ;
            }
            qIter.close() ;
        }
View Full Code Here

Examples of com.hp.jena.ymris.deploy.local.Binding

        final List<Node[]> queue = new ArrayList<Node[]>();
        BindingSink sink = new BindingSink.Filter( out )
            {           
            @Override public void consume( Node[] item )
                {
                if (deductions.add( new Binding( item ) ) )
                    {
                    sink.consume( item );
                    queue.add( item );
                    }
                }
View Full Code Here

Examples of com.onpositive.semantic.model.binding.Binding

    owner.setWeights(new int[] { 30, 50 });
    IMenuManager menuManager = getViewSite().getActionBars()
        .getMenuManager();
    menuManager.add(new Action("Settings") {
      public void run() {
        final Binding bnd=new Binding(LogViewPart.this);
        bnd.setAutoCommit(false);
        bnd.setReadOnly(false);
        Container r=new Container();
        IContainerLayoutManager ca=new OneElementOnLineLayouter();
        OneLineTextElement<Integer>str=new OneLineTextElement<Integer>(bnd.getBinding("days"));
        ComboEnumeratedValueSelector<Integer>sev=new ComboEnumeratedValueSelector<Integer>();
        sev.setOrdered(true);
        sev.setBinding(bnd.getBinding("minSeverityToFetch"));
        r.add(str);
        r.add(sev);       
        Container buttons=new Container();       
        HorizontalLayouter horizontalLayouter = new HorizontalLayouter();
        buttons.setLayoutManager(horizontalLayouter);
        r.add(buttons);
        final InputElementDialog inputElementDialog = new InputElementDialog(bnd,r,"Settings","you may configure settings here");
        ButtonSelector bs=new ButtonSelector();
        bs.setValue(new Runnable() {
          public void run() {
            bnd.commit();
            inputElementDialog.close();
          }
        });
        bs.setText("Apply");
        buttons.add(bs);       
View Full Code Here

Examples of com.palantir.ptoss.cinch.core.Binding

                if(level == null){
                    throw new IllegalArgumentException("'" + levelParam + "' is not a valid log4j level");
                }
                if (BindableModel.class.isAssignableFrom(field.getType())) {
                    BindableModel model = context.getFieldObject(field, BindableModel.class);
                    Binding binding = new Binding() {
                        public <T extends Enum<?> & ModelUpdate> void update(T... changed) {
                            for (T t : changed){
                                Logger logger = LogManager.getLogger(loggerParam);
                                Level configuredLevel = logger.getLevel();
                                if(configuredLevel == null || configuredLevel.isGreaterOrEqual(level)){
View Full Code Here

Examples of com.sun.tools.internal.ws.wsdl.document.Binding

            } else if (
                XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT_TYPE)) {
                PortType portType = parsePortType(context, definitions, e2);
                definitions.add(portType);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_BINDING)) {
                Binding binding = parseBinding(context, definitions, e2);
                definitions.add(binding);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_SERVICE)) {
                Service service = parseService(context, definitions, e2);
                definitions.add(service);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_IMPORT)) {
View Full Code Here

Examples of com.sun.tools.ws.wsdl.document.Binding

            } else if (
                XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT_TYPE)) {
                PortType portType = parsePortType(context, definitions, e2);
                definitions.add(portType);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_BINDING)) {
                Binding binding = parseBinding(context, definitions, e2);
                definitions.add(binding);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_SERVICE)) {
                Service service = parseService(context, definitions, e2);
                definitions.add(service);
            } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_IMPORT)) {
View Full Code Here

Examples of com.sun.xml.internal.ws.wsdl.writer.document.Binding

    /**
     * Generates the Binding section of the WSDL
     */
    protected void generateBinding() {
        Binding binding = serviceDefinitions.binding().name(model.getBoundPortTypeName().getLocalPart());
        extension.addBindingExtension(binding);
        binding.type(model.getPortTypeName());
        boolean first = true;
        for (JavaMethodImpl method : model.getJavaMethods()) {
            if (first) {
                SOAPBinding sBinding = method.getBinding();
                SOAPVersion soapVersion = sBinding.getSOAPVersion();
                if (soapVersion == SOAPVersion.SOAP_12){
                    com.sun.xml.internal.ws.wsdl.writer.document.soap12.SOAPBinding soapBinding = binding.soap12Binding();
                    soapBinding.transport(this.binding.getBindingId().getTransport());
                    if (sBinding.getStyle().equals(Style.DOCUMENT))
                        soapBinding.style(DOCUMENT);
                    else
                        soapBinding.style(RPC);
                } else {
                com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPBinding soapBinding = binding.soapBinding();
                    soapBinding.transport(this.binding.getBindingId().getTransport());
                    if (sBinding.getStyle().equals(Style.DOCUMENT))
                        soapBinding.style(DOCUMENT);
                    else
                        soapBinding.style(RPC);
View Full Code Here

Examples of com.sun.xml.ws.wsdl.writer.document.Binding

    /**
     * Generates the Binding section of the WSDL
     */
    protected void generateBinding() {
        Binding newBinding = serviceDefinitions.binding().name(model.getBoundPortTypeName().getLocalPart());
        extension.addBindingExtension(newBinding);
        newBinding.type(model.getPortTypeName());
        boolean first = true;
        for (JavaMethodImpl method : model.getJavaMethods()) {
            if (first) {
                SOAPBinding sBinding = method.getBinding();
                SOAPVersion soapVersion = sBinding.getSOAPVersion();
                if (soapVersion == SOAPVersion.SOAP_12) {
                    com.sun.xml.ws.wsdl.writer.document.soap12.SOAPBinding soapBinding = newBinding.soap12Binding();
                    soapBinding.transport(this.binding.getBindingId().getTransport());
                    if (sBinding.getStyle().equals(Style.DOCUMENT))
                        soapBinding.style(DOCUMENT);
                    else
                        soapBinding.style(RPC);
                } else {
                    com.sun.xml.ws.wsdl.writer.document.soap.SOAPBinding soapBinding = newBinding.soapBinding();
                    soapBinding.transport(this.binding.getBindingId().getTransport());
                    if (sBinding.getStyle().equals(Style.DOCUMENT))
                        soapBinding.style(DOCUMENT);
                    else
                        soapBinding.style(RPC);
View Full Code Here

Examples of com.tll.client.bind.Binding

   * @throws BindingException When the binding creation fails
   */
  static Binding createBinding(Model model, IConverter<Object, Object> modelConverter, String modelProp,
      IPropertyChangeListener modelChangeListener, IFieldWidget<?> fw, IConverter<Object, Object> fieldConverter,
      IPropertyChangeListener fieldChangeListener) throws BindingException {
    final Binding b =
      new Binding(model, modelProp, modelConverter, null, null, fw, IBindableWidget.PROPERTY_VALUE, fieldConverter,
          fw, fw.getErrorHandler());
    if(modelChangeListener != null) b.addPropertyChangeListener(modelChangeListener, true);
    if(fieldChangeListener != null) b.addPropertyChangeListener(fieldChangeListener, false);
    return b;
  }
View Full Code Here

Examples of com.totsp.gwittir.client.beans.Binding

    public void set(BoundWidget widget) {
        Address a = (Address) widget.getModel();
        AddressEdit e = (AddressEdit) widget;

        binding.getChildren()
               .add(new Binding(e.address1, "value", a, "address1"));
        binding.getChildren()
               .add(new Binding(e.address2, "value", a, "address2"));
        binding.getChildren().add(new Binding(e.city, "value", a, "city"));
        binding.getChildren().add(new Binding(e.state, "value", a, "state"));
        binding.getChildren().add(new Binding(e.zip, "value", a, "zip"));
        binding.getChildren().add(new Binding(e.type, "value", a, "type"));

        e.state.setRenderer(new Renderer() {
                public Object render(Object o) {
                    return ((StateLookup) o).name;
                }
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.