Examples of Field


Examples of pt.opensoft.field.Field

        private Field field;
        private boolean selected;

        public SelectOption(String name, String value, boolean selected) {
            this.field = new Field(name, value);
            this.selected = selected;
        }
View Full Code Here

Examples of quickfix.Field

      } else {
        return "<--";
      }
    } else {

      final Field field = fields.get(columnIndex);
      final Object fieldValue = message.getObject(field);

      if (fieldValue != null && fieldValue instanceof String) {
        String valueName = message.getDictionary().getValueName(field.getTag(), (String) fieldValue);

        if (valueName == null) {
          return fieldValue;
        } else {
          return valueName;
View Full Code Here

Examples of rocket.generator.rebind.field.Field

    final Iterator<Field> fields = this.filterSerializableFields(type.getFields()).iterator();
    int fieldCount = 0;
    context.branch();

    while (fields.hasNext()) {
      final Field field = fields.next();
      final Method setter = this.createFieldSetter(reader, field);
      body.addFieldSetter(setter);

      fieldCount++;
    }
View Full Code Here

Examples of se.kth.speech.skatta.player.Field

    private Field m_field;
    private boolean m_required;

    public ClickField(ExtendedElement source) {
        super(source.attribute("name"));
        m_field = new Field(source, Field.TRACE_CLICK);
        m_required = source.booleanAttribute("required");
        boolean high = (!source.attribute("top").equals("")) && (!source.attribute("bottom").equals(""));
        String heightString = m_field.hasImage() ? "" : (high ? ", h 10cm" : ", h 1cm");
        setLayout(new MigLayout("fill, insets 0"));
        add(m_field, "grow" + heightString);
View Full Code Here

Examples of shillelagh.Field

  /**
   * Check if the element has a @Field annotation if it does parse it and
   * add it to the table object
   */
  private void checkForFields(TableObject tableObject, Element columnElement) {
    Field fieldAnnotation = columnElement.getAnnotation(Field.class);
    if (fieldAnnotation == null) return;

    /* Convert the element from a field to a type */
    final Element typeElement = typeUtils.asElement(columnElement.asType());
    final String type = typeElement == null ? columnElement.asType().toString()
View Full Code Here

Examples of smilehouse.gui.html.fieldbased.Field

            }
            // Else just print them...
            else {
                guiHtml = new String();
                for(Iterator i = fields.values().iterator(); i.hasNext();) {
                    Field field = (Field) i.next();
                    guiHtml += field.getEditor();
                }
            }


            // Create a back button to the Pipe Editor
View Full Code Here

Examples of sun.jvm.hotspot.types.Field

    }

    void dumpFields(Type type, boolean allowStatic) {
        Iterator i = type.getFields();
        while (i.hasNext()) {
            Field f = (Field) i.next();
            if (!allowStatic && f.isStatic()) continue;
            out.print("field ");
            quote(type.getName());
            out.print(" ");
            out.print(f.getName());
            out.print(" ");
            quote(f.getType().getName());
            out.print(" ");
            out.print(f.isStatic());
            out.print(" ");
            if (f.isStatic()) {
                out.print("0 ");
                out.print(f.getStaticFieldAddress());
            } else {
                out.print(f.getOffset());
                out.print(" 0x0");
            }
            out.println();
        }
    }
View Full Code Here

Examples of tripleplay.ui.Field

        return "UI: History Group";
    }

    @Override
    protected Group createIface () {
        final Field prefix = new Field("Love Potion Number ");
        Button add10 = new Button("+10");
        Button add100 = new Button("+100");
        HistoryGroup.Labels history = new HistoryGroup.Labels();
        final SizableGroup historyBox = new SizableGroup(new BorderLayout());
        historyBox.add(history.setConstraint(BorderLayout.CENTER));
        Slider width = new Slider(150, 25, 1024);
        Group top = new Group(AxisLayout.horizontal()).add(
            prefix.setConstraint(AxisLayout.stretched()), add10, add100, width);
        width.value.connectNotify(new Slot<Float>() {
            @Override public void onEmit (Float val) {
                historyBox.preferredSize.updateWidth(val);
            }
        });
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.Field

  // use only part of the body, modify it to keep the rest (or use all if size==0).
  // reset the docdata properties so they are not added more than once.
  private Document createDocument(DocData docData, int size, int cnt) throws UnsupportedEncodingException {
    int docid = incrNumDocsCreated();
    Document doc = new Document();
    doc.add(new Field(ID_FIELD, docid+"", storeVal, indexVal, termVecVal));
    if (docData.getName()!=null) {
      String name = (cnt<0 ? docData.getName() : docData.getName()+"_"+cnt);
     ///////////////////
      doc.add(new Field(NAME_FIELD, name, Field.Store.YES,Field.Index.UN_TOKENIZED, termVecVal));
    }
    if (docData.getDate()!=null) {
      String dateStr = DateTools.dateToString(docData.getDate(), DateTools.Resolution.SECOND);
      doc.add(new Field(DATE_FIELD, dateStr, storeVal, indexVal, termVecVal));
    }
    if (docData.getTitle()!=null) {
      doc.add(new Field(TITLE_FIELD, docData.getTitle(), storeVal, indexVal, termVecVal));
    }
    if (docData.getBody()!=null && docData.getBody().length()>0) {
      String bdy;
      if (size<=0 || size>=docData.getBody().length()) {
        bdy = docData.getBody(); // use all
        docData.setBody("")// nothing left
      } else {
        // attempt not to break words - if whitespace found within next 20 chars...
        for (int n=size-1; n<size+20 && n<docData.getBody().length(); n++) {
          if (Character.isWhitespace(docData.getBody().charAt(n))) {
            size = n;
            break;
          }
        }
        bdy = docData.getBody().substring(0,size); // use part
        docData.setBody(docData.getBody().substring(size)); // some left
      }
      doc.add(new Field(BODY_FIELD, bdy, storeVal, indexVal, Field.TermVector.YES));
      if (storeBytes == true) {
        doc.add(new Field(BYTES_FIELD, bdy.getBytes("UTF-8"), Field.Store.YES));
      }
    }

    if (docData.getProps()!=null) {
      for (Iterator it = docData.getProps().keySet().iterator(); it.hasNext(); ) {
        String key = (String) it.next();
        String val = (String) docData.getProps().get(key);
        doc.add(new Field(key, val, storeVal, indexVal, termVecVal));
      }
      docData.setProps(null);
    }
    //System.out.println("============== Created doc "+numDocsCreated+" :\n"+doc+"\n==========");
    return doc;
View Full Code Here

Examples of uk.nhs.interoperability.payloads.metadata.Field

 
  public static void serialiseFieldsInPayload(XMLNamespaceContext namespaces, Payload p, Element parent, Document xmldoc) {
   
    Map<String, Field> fieldDefinitions = p.getFieldDefinitions();
    for (String fieldName : fieldDefinitions.keySet()) {
      Field field = fieldDefinitions.get(fieldName);
      FieldType fieldType = field.getTypeEnum();
      Logger.trace("===== Processing field: " + field.getName() + " - type specified as: " + fieldType.name() + " multiplicity = " + field.getMaxOccurs());

      FieldHandler handler = fieldType.getHandler();
     
      String xpath = field.getXpath();
      String strValue = null;
      Object fieldValue = p.getValue(field.getName());
     
      // First, see if the field should be included in the output
      boolean outputField = handler.outputField(field, p);
     
      if (outputField) {
        if (field.getMaxOccurs() > 1) {
          // We are expecting an ArrayList with one or more items
          ArrayList list = (ArrayList)fieldValue;
          if (list != null) {
            for (Object fieldListItem : list) {
             
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.