Examples of Chain


Examples of com.sap.hadoop.windowing.functions2.table.npath.SymbolFunction.Chain

      {
        sFn = new Plus(sFn);
      }
      symbolFunctions.add(sFn);
    }
    symbolFnChain = new Chain(symbolFunctions);
  }
View Full Code Here

Examples of org.apache.axis.Chain

     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain c = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            Handler h = handler.getInstance(registry);
            if ( h != null )
              c.addHandler(h);
            else
              throw new ConfigurationException("Can't find handler name:'" +
                                               handler.getQName() + "' type:'"+
                                               handler.getType() +
                                               "' in the registry");
View Full Code Here

Examples of org.apache.axis.Chain

    }
  
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.makeNewInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
View Full Code Here

Examples of org.apache.axis.Chain

     * Creates a new instance of this Chain
     */
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.newInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
            return c;
        } catch (Exception e) {
            return null;
        }
View Full Code Here

Examples of org.apache.axis.Chain

     * @throws ConfigurationException XXX
     */
    public Handler makeNewInstance(EngineConfiguration registry)
        throws ConfigurationException
    {
        Chain c = new org.apache.axis.SimpleChain();
       
        for (int n = 0; n < handlers.size(); n++) {
            WSDDHandler handler = (WSDDHandler)handlers.get(n);
            Handler h = handler.getInstance(registry);
            if ( h != null )
              c.addHandler(h);
            else
              throw new ConfigurationException("Can't find handler name:'" +
                                               handler.getQName() + "' type:'"+
                                               handler.getType() +
                                               "' in the registry");
View Full Code Here

Examples of org.apache.beehive.netui.core.chain.Chain

    {
        ServletContext ctxt = getServletContext();

        /* Initialize the Command chain and add the ErrorCRI */

        Chain xhrServletCommand = null;
        CatalogConfig catalogConfig = ConfigUtil.getConfig().getCatalogConfig();
        if(catalogConfig != null) {
            /*
            todo: neaten up this initialization process.  because of the separation between
                  parsing and configuration, this is a second step.
                  Need to put this somewhere in the framework, preferably in a single
                  place that initializes the PageFlow runtime.
             */
            CatalogFactory catalogFactory = CatalogFactory.getInstance();
            if(catalogFactory.getCatalog() == null)
                catalogFactory = CatalogFactory.getInstance(catalogConfig);

            assert catalogFactory != null;
            Catalog catalog = catalogFactory.getCatalog();
            if(catalog != null) {
                xhrServletCommand = (Chain)catalog.getCommand(COMMAND_XHR);
            }

            if(xhrServletCommand != null) {
                xhrServletCommand.addCommand(new ErrorCRI());
            }
        }

        /*
        For compatibility, add the ErrorCRI to the list of global Interceptors only if the
View Full Code Here

Examples of org.apache.stanbol.enhancer.servicesapi.Chain

    private void enhance(ContentItem ci, String chainName) throws StoreException {
        try {
            if (chainName == null || chainName.trim().isEmpty()) {
                jobManager.enhanceContent(ci);
            } else {
                Chain chain = chainManager.getChain(chainName.trim());
                if (chain == null) {
                    String msg = String.format("Failed to get chain with name: %s", chainName);
                    log.error(msg);
                    throw new StoreException(msg);
                }
View Full Code Here

Examples of org.biojava.bio.structure.Chain

  }

  private void initPanel() {
    this.setLayout(new BorderLayout());
    List<Chain> chains = structure.getChains();
    Chain chain = structure.getChain(selectedChainIndex);
    //sequence.setText(chain.getAtomSequence());
   
    fillChainList(chains);
    chainList = new JList(chainModel);
    chainList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    chainList.setLayoutOrientation(JList.VERTICAL);
    chainList.setSelectedIndex(0);
    chainList.setVisibleRowCount(4);
    chainList.addListSelectionListener(this);
   
    listModel = new SequenceListModel(chain.getAtomSequence());
    sequenceList = new JList(listModel);
    sequenceList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    sequenceList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    sequenceList.setVisibleRowCount(1);
    sequenceList.addListSelectionListener(this);
View Full Code Here

Examples of org.biojava.bio.structure.Chain

   
    else if(list == chainList){
      String chainName = (String)list.getSelectedValue();
      try {
        sequenceList.clearSelection();
        Chain chain = structure.findChain(chainName);
        selectedChainIndex = list.getSelectedIndex();
        SequenceListModel listModel = new SequenceListModel(chain.getAtomSequence());
        sequenceList.setModel(listModel);

      } catch (StructureException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
View Full Code Here

Examples of org.biojava.bio.structure.Chain

      return -1;
    }

    public char getChainID() {

      Chain c = iter.getCurrentChain();

      if (c != null) {

        String name = c.getName();
        if ((name != null) && (name.length() > 0)) {
          return name.charAt(0);
        }
      }
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.