Examples of withValue()


Examples of com.typesafe.config.ConfigObject.withValue()

                ConfigValue inlinedValue = root.get(matched);
                String primaryField = (String) aliasDefaults.get("_primary").unwrapped();
                ConfigObject fieldValues =  root.toConfig().withValue(primaryField, inlinedValue).root()
                                                        .withoutKey(matched)
                                                        .withFallback(aliasDefaults);
                return fieldValues.withValue(classField, ConfigValueFactory.fromAnyRef(
                        matched, "inlined key to type from " + root.origin().description()));
            }

            // default type
            ConfigValue defaultObject = pluginMap.config().root().get("_default");
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(elementAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            list.add(valueLinkBuilder.build());
        }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(valueAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            representation.mapPut("value", valueLinkBuilder.build());
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(elementAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            list.add(valueLinkBuilder.build());
        }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(valueAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            final JsonRepresentation valueJsonRepr = valueLinkBuilder.build();
            representation.mapPut("value", valueJsonRepr);
            return valueJsonRepr;
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(valueAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            representation.mapPut("value", valueLinkBuilder.build());
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.rendering.LinkBuilder.withValue()

                renderer.with(elementAdapter);
                if(mode.isEventSerialization()) {
                    renderer.asEventSerialization();
                }

                valueLinkBuilder.withValue(renderer.render());
            }

            list.add(valueLinkBuilder.build());
        }
View Full Code Here

Examples of org.grouplens.lenskit.symbols.TypedSymbol.withValue()

                            assert input != null;
                            Object obj = input.getValue().get(index);
                            if (obj != null) {
                                TypedSymbol sym = input.getKey();
                                assert sym.getType().isInstance(obj);
                                return sym.withValue(obj);
                            } else {
                                return null;
                            }
                        }
                    }).filter(Predicates.notNull())
View Full Code Here

Examples of org.kiji.schema.util.InstanceBuilder.QualifierBuilder.withValue()

          : familyEntry.getValue().entrySet()) {
        final QualifierBuilder qualifierBuilder =
            familyBuilder.withQualifier(columnEntry.getKey());

        for (Entry<Long, Object> cellEntry : columnEntry.getValue().entrySet()) {
          qualifierBuilder.withValue(cellEntry.getKey(), cellEntry.getValue());
        }
      }
    }
    tableBuilder.build();
View Full Code Here

Examples of org.kiji.schema.util.InstanceBuilder.QualifierBuilder.withValue()

          : familyEntry.getValue().entrySet()) {
        final QualifierBuilder qualifierBuilder =
            familyBuilder.withQualifier(columnEntry.getKey());

        for (Entry<Long, Object> cellEntry : columnEntry.getValue().entrySet()) {
          qualifierBuilder.withValue(cellEntry.getKey(), cellEntry.getValue());
        }
      }
    }
    tableBuilder.build();
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.