Examples of Value


Examples of LONI.tree.module.Value

    // TODO Auto-generated constructor stub
  }

  @Override
  public Map<String, String> mapFromObject(Object o) {
    Value v = (Value) o;
    Map<String, String> map = new TreeMap<String, String>();
    String value = v.getValue();
    String metadata= v.getMetadata();
    // TODO Auto-generated method stub
    if(value != null)
      map.put(VALUE_TAG, v.getValue());
    if(metadata != null)
      map.put("metadata", metadata);
   
    return map;
  }
View Full Code Here

Examples of SmartGen.Value

        if (result == null) result = caseConfigurableElement(fieldValue);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SmartGenPackage.VALUE: {
        Value value = (Value)theEObject;
        Object result = caseValue(value);
        if (result == null) result = caseConfigurableElement(value);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of br.com.gmartins.simbler.instructions.value.Value

            //System.out.println("Falha ao recuperar instrução número " + linePosition);
            // Aqui poderia tentar chamar um "Silent Compile". Esse erro ocorre quando não consigo recuperar a instrução da linha, após da enter...
        }
        if (instruction != null) {
            if (isNumber()) {
                Value value = instruction.getValue();
                builder.append("<HTML>");
                builder.append("<center><b>Valor Numérico</b></center> ");
                builder.append("<br>");
                builder.append("<b>Binário:</b> ").append(value.toBinary());
                builder.append("<br>");
                builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                builder.append("<br>");
                builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                builder.append("</HTML>");
            }

            if (isMemoryDealer()) {
                Instruction dest = getInstructionAt(instruction.getValue());

                // Ocorre quando o endereço após o @ não existe.
                if (dest == null) {
                    builder.append("<HTML>");
                    builder.append("<center><b>Endereço de Memória</b></center>");
                    builder.append("<br>");
                    builder.append("<b>Valor: Desconhecido</b>");
                    builder.append("</HTML>");
                    return builder;
                } else {
                    Value value = dest.getValue();
                    builder.append("<HTML>");
                    builder.append("<center><b>Endereço de Memória</b></center>");
                    builder.append("<br>");
                    builder.append("<b>Binário:</b> ").append(value.toBinary());
                    builder.append("<br>");
                    builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                    builder.append("<br>");
                    builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                    builder.append("</HTML>");
                    builder.append("</HTML>");
                    return builder;
                }
View Full Code Here

Examples of ca.nengo.config.ui.ConfigurationTreeModel.Value

  public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) {
    Component result = super.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row);
   
    TreePath path = tree.getPathForRow(row);
    if (path.getParentPath().getLastPathComponent() instanceof Property && value instanceof Value) {
      Value node = (Value) value;
      Object o = node.getObject();
     
      if (o instanceof NullValue) {
        Class<?> type = ((Property) path.getParentPath().getLastPathComponent()).getType();
        o = MainHandler.getInstance().getDefaultValue(type);
      }
View Full Code Here

Examples of cc.plural.jsonij.Value

                                expressionStringBuilder.append(c);
                                predicateComponentBuilder.append(c);
                            }
                            value = predicateComponentBuilder.toString().trim();
                            ThreadSafeJSONParser jsonParser = new ThreadSafeJSONParser();
                            Value jsonValue = jsonParser.parseValue(value);
                            target.skipWhitepace(expressionStringBuilder);
                            OperatorExpressionPredicateCondition predicateCondition = new OperatorExpressionPredicateCondition(attribute, expressionPredicateOperator, jsonValue);
                            if(op != null) {
                                predicateCondition.setCombine(op);
                                op = null;
View Full Code Here

Examples of ch.njol.skript.variables.SerializedVariable.Value

    }
   
    for (final VariablesStorage s : storages) {
      if (s.accept(name)) {
        if (s != source) {
          final Value v = serialize(value);
          s.save(name, v != null ? v.type : null, v != null ? v.data : null);
          if (value != null)
            source.save(name, null, null);
        }
        return true;
View Full Code Here

Examples of client.net.sf.saxon.ce.value.Value

     */

    private void preEvaluateCollation(StaticContext env) throws XPathException {
        if (getNumberOfArguments() == getDetails().maxArguments) {
            final Expression collationExp = argument[getNumberOfArguments() - 1];
            final Value collationVal = (collationExp instanceof Literal ? ((Literal)collationExp).getValue() : null);
            if (collationVal instanceof AtomicValue) {
                // Collation is supplied as a constant
                String collationName = collationVal.getStringValue();
                URI collationURI;
                try {
                    collationURI = new URI(collationName, true);
                    if (!collationURI.isAbsolute()) {
                        saveBaseURI(env, true);
View Full Code Here

Examples of com.aerospike.client.Value

   * @param name      bin name
   * @param value      filter value
   * @return        filter instance
   */
  public static Filter equal(String name, long value) {
    Value val = Value.get(value);
    return new Filter(name, val, val);
  }
View Full Code Here

Examples of com.alee.managers.language.data.Value

        // Running through all tabs
        for ( int i = 0; i < c.getTabCount (); i++ )
        {
            // Updating tab text and mnemonic
            final String tabKey = useComponentNames ? c.getComponentAt ( i ).getName () : "" + i;
            final Value tabValue = LanguageManager.getNotNullValue ( c, key, tabKey );
            final String text = getDefaultText ( tabValue, data );
            c.setTitleAt ( i, text != null ? text : null );
            c.setMnemonicAt ( i, text != null && value.getMnemonic () != null ? value.getMnemonic () : 0 );
        }
    }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.value.Value

            }
            if (lableAliasInited == false) {
              mapColumn(aliasLabelMap, columnLabel, i++);
            }
            Pair<DataType, byte[]> typeAndValue = ret.get(columnLabel);
            Value v = Value.toValue(typeAndValue.getSecond(),
                typeAndValue.getFirst());
            values.add(v);
          }
          result.add(values.toArray(new Value[values.size()]));
          lableAliasInited = 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.