Examples of ArrayValue


Examples of org.apache.etch.bindings.java.transport.ArrayValue

   
    int length = readLength();
   
    Object array = allocArrayValue( type, customStructType, dim, length );
   
    return new ArrayValue( array, type, customStructType, dim );
  }
View Full Code Here

Examples of org.apache.etch.bindings.java.transport.ArrayValue

  public ArrayValue startArray()
  {
    TagElement te = stack.peek();
    elementList.push( te.getChildren() );
    return new ArrayValue( null );
  }
View Full Code Here

Examples of org.apache.etch.bindings.java.transport.ArrayValue

    }
    else
      customStructType = null;

//    System.out.printf( "toArrayValue: type %d customStructType %d dim %d\n", type, customStructType, dim );
    return new ArrayValue( value, typeCode, customStructType, dim );
  }
View Full Code Here

Examples of org.apache.slide.projector.value.ArrayValue

    }

    protected int getMaxIndex(Map parameter) {
        int maxIndex = 0;
        for ( Iterator i = parameter.values().iterator(); i.hasNext(); ) {
            ArrayValue resurce = (ArrayValue)i.next();
            if ( resurce.getArray().length > maxIndex ) maxIndex = resurce.getArray().length;
        }
        return maxIndex;
    }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

        }
      }
    }
    else if (element instanceof ArrayValue) {

      ArrayValue value = (ArrayValue) element;

      // if primitive array
      if (value.getFeatureStructure() instanceof CommonArrayFS ||
              value.getFeatureStructure() instanceof StringArrayFS) {
        cell.setText(value.get().toString());
      }
      else if (value.getFeatureStructure() instanceof ArrayFS) {
        ArrayFS array = (ArrayFS) value.getFeatureStructure();

        FeatureStructure fs = array.get(value.slot());

        if (fs == null) {
          cell.setText("null");
        }
        else {
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

                document.update(target);

                event.detail = DND.DROP_COPY;
              }
            } else if (tableItem.getData() instanceof ArrayValue) {
              ArrayValue value = (ArrayValue) tableItem.getData();

              if (value.getFeatureStructure() instanceof ArrayFS) {

                ArrayFS array = (ArrayFS) value.getFeatureStructure();

                array.set(value.slot(), (FeatureStructure) event.data);

                document.update(array);

                event.detail = DND.DROP_COPY;
              }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

        return value.getFeature().getRange().isPrimitive();
      }
      else if (element instanceof ArrayValue) {

        ArrayValue value = (ArrayValue) element;

        FeatureStructure arrayFS = value.getFeatureStructure();

        if (arrayFS instanceof ArrayFS) {
          return false;
        }
        else if (arrayFS instanceof CommonArrayFS ||
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

        else {
          return null;
        }
      } else if (element instanceof ArrayValue) {

        ArrayValue arrayValue = (ArrayValue) element;

        FeatureStructure arrayFS = arrayValue.getFeatureStructure();

        CellEditor editor;

        if (arrayFS instanceof BooleanArrayFS) {
          editor = new ComboBoxCellEditor(viewer.getTree(), new String[]{"false", "true"},
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

        return featureValues.toArray();
      }
      else {
        int size = arraySize(featureStructure);

        ArrayValue arrayValues[] = new ArrayValue[size];

        for (int i = 0; i < size; i++) {
          arrayValues[i] = new ArrayValue(featureStructure, i);
        }

        return arrayValues;
      }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.ArrayValue

        FeatureStructure arrayFS = value.getFeatureStructure().getFeatureValue(value.getFeature());

        return getElements(arrayFS);
      }
    } else if (parentElement instanceof ArrayValue) {
      ArrayValue value = (ArrayValue) parentElement;

      ArrayFS array = (ArrayFS) value.getFeatureStructure();

      return getElements(array.get(value.slot()));
    }
    else {
      throw new TaeError("Unexpected element type!");
    }
  }
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.