Examples of KeyManager


Examples of net.sf.saxon.trans.KeyManager

    * Implement the MappingFunction interface
    */

    public Object map(Item item, XPathContext context, Object info) throws XPathException {
        KeyContextInfo k = (KeyContextInfo)info;
        KeyManager keyManager = k.context.getController().getKeyManager();
        return keyManager.selectByKey(
                k.keyFingerprint, k.document, (AtomicValue)item, k.context);
    }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

     * Get the KeyManager which handles key definitions
     */

    public KeyManager getKeyManager() {
        if (exec.getKeyManager() == null) {
            exec.setKeyManager(new KeyManager(getConfiguration()));
        }
        return exec.getKeyManager();
    }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

        if (!Cardinality.allowsMany(expression.getCardinality())) {
            AtomicValue keyValue = (AtomicValue)argument[0].evaluateItem(context);
            if (keyValue == null) {
                return EmptyIterator.getInstance();
            }
            KeyManager keyManager = controller.getKeyManager();
            return keyManager.selectByKey(fprint, doc, keyValue, context);

        } else {
            KeyContextInfo info = new KeyContextInfo();
            info.document = doc;
            info.context = context;
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

    * Implement the MappingFunction interface
    */

    public Object map(Item item, XPathContext context, Object info) throws XPathException {
        KeyContextInfo k = (KeyContextInfo)info;
        KeyManager keyManager = k.context.getController().getKeyManager();
        AtomicValue keyValue;
        if (item instanceof AtomicValue) {
            keyValue = (AtomicValue)item;
        } else {
            keyValue = new StringValue(item.getStringValue());
        }
        return keyManager.selectByKey(
                StandardNames.XS_IDREFS, k.document, keyValue, k.context);

    }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

        } else {
            AtomicValue keyValue = (AtomicValue)argument[0].evaluateItem(context);
            if (keyValue == null) {
                return EmptyIterator.getInstance();
            }
            KeyManager keyManager = controller.getKeyManager();
            return keyManager.selectByKey(idRefKey, doc, keyValue, context);

        }
    }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

        /**
        * Implement the MappingFunction interface
        */

        public SequenceIterator map(Item item) throws XPathException {
            KeyManager keyManager = keyContext.getController().getKeyManager();
            AtomicValue keyValue;
            if (item instanceof AtomicValue) {
                keyValue = (AtomicValue)item;
            } else {
                keyValue = new StringValue(item.getStringValue());
            }
            return keyManager.selectByKey(keySet, document, keyValue, keyContext);

        }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

        }
        DocumentInfo doc = e.getDocumentRoot();
        if (doc == null) {
            return false;
        }
        KeyManager km = context.getController().getKeyManager();
        SequenceIterator iter = keyexp.iterate(context);
        while (true) {
            Item it = iter.next();
            if (it == null) {
                return false;
            }
            SequenceIterator nodes = km.selectByKey(kds, doc, (AtomicValue)it, context);
            while (true) {
                NodeInfo n = (NodeInfo)nodes.next();
                if (n == null) {
                    break;
                }
View Full Code Here

Examples of net.sf.saxon.trans.KeyManager

        allocateSlots(use);
        allocatePatternSlots(match, stackFrameMap);
        //allocateSlots(new PatternSponsor(match));


        KeyManager km = getPrincipalStylesheet().getKeyManager();
        KeyDefinition keydef = new KeyDefinition(match, use, collationName, collator);
        keydef.setIndexedItemType(useType);
        keydef.setStackFrameMap(stackFrameMap);
        keydef.setLocation(getSystemId(), getLineNumber());
        keydef.setExecutable(getExecutable());
        keydef.setBackwardsCompatible(backwardsCompatibleModeIsEnabled());
        try {
            km.addKeyDefinition(keyName, keydef, exec.getConfiguration());
        } catch (XPathException err) {
            compileError(err);
        }
        return null;
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.syntax.KeyManager

      _rSyntaxHighlightTokenMatcherProxy.setDelegate(_propertiesWrapper.getSyntaxHighlightTokenMatcher(session, this, sqlEntryPanelIdentifier));

      updateFromPreferences();

      new KeyManager(this);

      _squirrelRSyntaxSearchEngine = new SquirrelRSyntaxSearchEngine(_session, this);

      setToolTipText("Just to make getToolTiptext() to be called");
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.syntax.KeyManager

         {
            initParser(_session, sqlEntryPanelIdentifier);
         }
      });

      new KeyManager(this);
  }
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.