Examples of withProperty()


Examples of com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.withProperty()

             *   but no easy access. But hard to see id property being optional,
             *   so let's consider required at this point.
             */
            ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader,
                    PropertyMetadata.STD_REQUIRED);
            propertyMap = propertyMap.withProperty(prop);
        }
       
        return new BuilderBasedDeserializer(this,
                _beanDesc, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
                anyViews);
View Full Code Here

Examples of com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.withProperty()

        }

        // one more thing: may need to create virtual ObjectId property:
        if (_objectIdReader != null) {
            ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader);
            propertyMap = propertyMap.withProperty(prop);
        }
       
        return new BeanDeserializer(this,
                _beanDesc, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
                anyViews);
View Full Code Here

Examples of com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.withProperty()

            }
        }

        if (_objectIdReader != null) {
            ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader);
            propertyMap = propertyMap.withProperty(prop);
        }
       
        return new BuilderBasedDeserializer(this,
                _beanDesc, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
                anyViews);
View Full Code Here

Examples of com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.withProperty()

        }

        // one more thing: may need to create virtual ObjectId property:
        if (_objectIdReader != null) {
            ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader);
            propertyMap = propertyMap.withProperty(prop);
        }
       
        return new BeanDeserializer(this,
                _beanDesc, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
                anyViews);
View Full Code Here

Examples of com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.withProperty()

            }
        }

        if (_objectIdReader != null) {
            ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader);
            propertyMap = propertyMap.withProperty(prop);
        }
       
        return new BuilderBasedDeserializer(this,
                _beanDesc, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
                anyViews);
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.withProperty()

      JSType summaryType = getSummaryOfLocalFunDef(fnName);
      FunctionType fnType = summaryType.getFunType();
      if (fnType.isConstructor() || fnType.isInterfaceDefinition()) {
        summaryType = fnType.createConstructorObject();
      } else {
        summaryType = summaryType.withProperty(
            new QualifiedName("prototype"), JSType.TOP_OBJECT);
      }
      entryEnv = envPutType(entryEnv, fnName, summaryType);
    }
    println("Keeping env: ", entryEnv);
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.withProperty()

      JSType summaryType = getSummaryOfLocalFunDef(fnName);
      FunctionType fnType = summaryType.getFunType();
      if (fnType.isConstructor() || fnType.isInterfaceDefinition()) {
        summaryType = fnType.createConstructorObject();
      } else {
        summaryType = summaryType.withProperty(
            new QualifiedName("prototype"), JSType.TOP_OBJECT);
      }
      env = envPutType(env, fnName, summaryType);
    }
    return env;
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.withProperty()

    Preconditions.checkState(lvalue.isGetProp() || lvalue.isGetElem());
    if (qname != null) {
      String objName = qname.getLeftmostName();
      QualifiedName props = qname.getAllButLeftmost();
      JSType objType = envGetType(env, objName);
      env = envPutType(env, objName, objType.withProperty(props, type));
    }
    return env;
  }

  private void collectTypesForFreeVarsFwd(Node callee, TypeEnv env) {
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.withProperty()

      return new LValueResultFwd(lvalueEnv, type, null, null);
    }
    if (!lvalueType.mayHaveProp(pname)) {
      if (insideQualifiedName && lvalueType.isLoose()) {
        // For loose objects, create the inner property if it doesn't exist.
        lvalueType = lvalueType.withProperty(
            pname, JSType.TOP_OBJECT.withLoose());
        if (lvalueType.isDict() && propAccessNode.isGetProp()) {
          lvalueType = lvalueType.specialize(JSType.TOP_STRUCT);
        } else if (lvalueType.isStruct() && propAccessNode.isGetElem()) {
          lvalueType = lvalueType.specialize(JSType.TOP_DICT);
View Full Code Here

Examples of com.theoryinpractise.halbuilder.api.Representation.withProperty()

    Representation deliveryList = Representations.newPaginatedList(self, deliveries);

    for (Delivery delivery : deliveries.list()) {
      Representation deliveryRepresentation = supplierDeliveryRepresentation.get(delivery);

      deliveryRepresentation.withProperty("id", delivery.getId())
      // End of build
      ;

      deliveryList.withRepresentation("/delivery/" + delivery.getId(), deliveryRepresentation);
    }
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.