Examples of BindingValue


Examples of com.sun.sgs.impl.service.data.store.BindingValue

        entry, previousKey,
        previousKeyUnbound ? UNBOUND : UNKNOWN);
      }
      entry.setNotPendingPrevious(lock);
  }
  return new BindingValue(1, nextKey.getNameAllowLast());
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    logger.log(FINEST, "getBinding txn:{0}, name:{1}", txn, name);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.getBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "getBinding txn:{0}, name:{1} returns " +
             "oid:{2,number,#}",
             txn, name, result.getObjectId());
    }
    return result;
      } catch (RuntimeException e) {
    exception = e;
      } catch (Error e) {
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

        txn, name, oid);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.setBindingInternal(txn, name, oid);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "setBinding txn:{0}, name:{1}," +
             " oid:{2,number,#} returns",
             txn, name, oid);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

        FINEST, "removeBinding txn:{0}, name:{1}", txn, name);
      }
      Throwable exception;
      try {
    checkNull("name", name);
    BindingValue result = super.removeBindingInternal(txn, name);
    if (logger.isLoggable(FINEST)) {
        logger.log(FINEST,
             "removeBinding txn:{0}, name:{1} returns {2}",
             txn, name, result);
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

    protected synchronized BindingValue getBindingInternal(
  Transaction txn, String name)
    {
  txn.join(this);
  if (names.containsKey(name)) {
      return new BindingValue(names.get(name), null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  Long oldValue = names.put(name, oid);
  List<Object> txnEntry = getTxnEntry(txn);
  txnEntry.add(name);
  txnEntry.add(oldValue);
  if (oldValue != null) {
      return new BindingValue(1, null);
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.BindingValue

  Long oldValue = names.remove(name);
  if (oldValue != null) {
      List<Object> txnEntry = getTxnEntry(txn);
      txnEntry.add(name);
      txnEntry.add(oldValue);
      return new BindingValue(1, names.higherKey(name));
  } else {
      return new BindingValue(-1, names.higherKey(name));
  }
    }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.util.WodHtmlUtils.BindingValue

    setElementTypePosition(new Position(elementTypePosition, elementTypeLength));
    setInline(true);

    if (matchingTagShortcut != null) {
      for (Map.Entry<String, String> shortcutAttribute : matchingTagShortcut.getAttributes().entrySet()) {
        BindingValue value = WodHtmlUtils.toBindingValue(shortcutAttribute.getValue(), buildProperties.getInlineBindingPrefix(), buildProperties.getInlineBindingSuffix());
        SimpleWodBinding wodBinding = new SimpleWodBinding(null, shortcutAttribute.getKey(), value.getValue());
        addBinding(wodBinding);
      }
    }

    FuzzyXMLAttribute[] attributes = element.getAttributes();
    for (FuzzyXMLAttribute attribute : attributes) {
      String namespace = attribute.getNamespace();
      String name = attribute.getName();
      String originalValue = attribute.getValue();
      BindingValue value = WodHtmlUtils.toBindingValue(originalValue, buildProperties.getInlineBindingPrefix(), buildProperties.getInlineBindingSuffix());
      Position valuePosition;
      Position valueNamespacePosition = null;
      if (value.getValueNamespace() != null) {
        int valueNamespaceOffset = originalValue.indexOf(value.getValueNamespace());
        valueNamespacePosition = new Position(element.getOffset() + attribute.getValueDataOffset() + valueNamespaceOffset + 1, value.getValueNamespace().length());
        int valueOffset = originalValue.indexOf(value.getValue(), valueNamespaceOffset + value.getValueNamespace().length());
        valuePosition = new Position(valueNamespacePosition.offset + valueOffset, attribute.getValueDataLength() - valueOffset);
      }
      else {
        valuePosition = new Position(element.getOffset() + attribute.getValueDataOffset() + 1, attribute.getValueDataLength());
      }
     
      SimpleWodBinding wodBinding = new SimpleWodBinding(namespace, name, value.getValueNamespace(), value.getValue(), new Position(attribute.getNamespaceOffset(), attribute.getNamespaceLength()), new Position(attribute.getNameOffset(), attribute.getNameLength()), valueNamespacePosition, valuePosition, -1);
      wodBinding.setStartOffset(attribute.getOffset());
      wodBinding.setEndOffset(attribute.getOffset() + attribute.getLength());
      addBinding(wodBinding);
    }
   
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.