Examples of fields()


Examples of com.google.api.ads.adwords.axis.utils.v201406.SelectorBuilder.fields()

    int offset = 0;

    // Create selector.
    SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields("MediaId", "Width", "Height", "MimeType")
        .orderAscBy("MediaId")
        .offset(offset)
        .limit(PAGE_SIZE)
        .in("Type", "IMAGE", "VIDEO")
View Full Code Here

Examples of com.netflix.simianarmy.MonkeyRecorder.Event.fields()

                responseStatus = Response.Status.OK;
                gen.writeStringField("monkeyType", evt.monkeyType().name());
                gen.writeStringField("eventId", evt.id());
                gen.writeNumberField("eventTime", evt.eventTime().getTime());
                gen.writeStringField("region", evt.region());
                for (Map.Entry<String, String> pair : evt.fields().entrySet()) {
                    gen.writeStringField(pair.getKey(), pair.getValue());
                }
            } else {
                responseStatus = Response.Status.INTERNAL_SERVER_ERROR;
                gen.writeStringField("message",
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fields()

      document.field("name", "something");
      document.field("surname", "something-else");
      document = dbTx.save(document);
      dbTx.commit();
      ODocument doc = dbTx.load(document.getIdentity());
      assertEquals(doc.fields(), document.fields());
      assertEquals(doc.field("name"), document.field("name"));
      assertEquals(doc.field("surname"), document.field("surname"));
    } finally {
      if (dbTx != null)
        dbTx.close();
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

 
 
  private void convertComplexTypesToSimpleTypes(final ClassOutlineImpl cc) {
    final JDefinedClass implClass = cc.implClass;
    // if no fields are present return
    if (implClass.fields().isEmpty()) {
      return;
    }
    final JType stringClass = cm._ref(String.class);
    replacedTypes = 0;
    replaceComplexTypes(implClass, "java.lang.Double", cm.DOUBLE);
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

  }
 
  private void annotateBooleanFieldsWithBooleanConverter(final ClassOutlineImpl cc) {
    final JDefinedClass implClass = cc.implClass;
    // if no fields are present return
    if (implClass.fields().isEmpty()) {
      return;
    }
   
    for (final JFieldVar jFieldVar : implClass.fields().values()) {
      if (jFieldVar.type().fullName().equals("java.lang.Boolean")) {
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

    // if no fields are present return
    if (implClass.fields().isEmpty()) {
      return;
    }
   
    for (final JFieldVar jFieldVar : implClass.fields().values()) {
      if (jFieldVar.type().fullName().equals("java.lang.Boolean")) {
        jFieldVar.annotate(XmlJavaTypeAdapter.class).param("value", pool.getClassBooleanConverter());
      }
    }
  }
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

        if (fieldOutline instanceof FieldOutline) {
          final CPropertyInfo property = fieldOutline.getPropertyInfo();

          final JCodeModel codeModel = classOutline.parent().getCodeModel();

          final JFieldVar currentField = implClass.fields().get(property.getName(false));

          // LOG.info("fieldType: " + currentField.name());
          // find the common type
          final JType currentFieldType = TypeUtil
              .getCommonBaseType(codeModel, listPossibleTypes((ClassOutlineImpl) classOutline, property));
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

    // JPackage kmlpackage = Util.getKmlClassPackage(outline);
    // CodeModelClassFactory classFactory = outline.getClassFactory();
    // coordinateClass = classFactory.createClass(kmlpackage, JMod.PUBLIC, "Coordinate", null, ClassType.CLASS);
    final JDefinedClass coordinateClass = pool.getClassCoordinate();

    longitude = coordinateClass.fields().get("longitude");
    latitude = coordinateClass.fields().get("latitude");
    altitude = coordinateClass.fields().get("altitude");

//    longitude.init(JExpr.lit(0.0d));
//    latitude.init(JExpr.lit(0.0d));
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

    // CodeModelClassFactory classFactory = outline.getClassFactory();
    // coordinateClass = classFactory.createClass(kmlpackage, JMod.PUBLIC, "Coordinate", null, ClassType.CLASS);
    final JDefinedClass coordinateClass = pool.getClassCoordinate();

    longitude = coordinateClass.fields().get("longitude");
    latitude = coordinateClass.fields().get("latitude");
    altitude = coordinateClass.fields().get("altitude");

//    longitude.init(JExpr.lit(0.0d));
//    latitude.init(JExpr.lit(0.0d));
//    altitude.init(JExpr.lit(0.0d));
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.fields()

    // coordinateClass = classFactory.createClass(kmlpackage, JMod.PUBLIC, "Coordinate", null, ClassType.CLASS);
    final JDefinedClass coordinateClass = pool.getClassCoordinate();

    longitude = coordinateClass.fields().get("longitude");
    latitude = coordinateClass.fields().get("latitude");
    altitude = coordinateClass.fields().get("altitude");

//    longitude.init(JExpr.lit(0.0d));
//    latitude.init(JExpr.lit(0.0d));
//    altitude.init(JExpr.lit(0.0d));
    // longitude = coordinateClass.field(JMod.PRIVATE, cm.DOUBLE, "longitu33de", JExpr.lit(0.0d));
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.