Examples of writeProperty()


Examples of org.apache.cayenne.reflect.ToOneProperty.writeProperty()

            }

            public boolean visitAttribute(AttributeProperty property) {
                Property targetProperty = targetDescriptor
                        .getProperty(property.getName());
                targetProperty.writeProperty(target, null, property.readProperty(source));
                return true;
            }
        });

        return target;
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.ROArtist.writeProperty()

        SelectQuery query = new SelectQuery(ROArtist.class, ExpressionFactory.matchExp(
                Artist.ARTIST_NAME_PROPERTY,
                "artist1"));
        ROArtist a1 = (ROArtist) context.performQuery(query).get(0);
        a1.writeProperty(ROArtist.ARTIST_NAME_PROPERTY, "abc");

        try {
            context.commitChanges();
            fail("Updating a 'read-only' object must fail.");
        }
View Full Code Here

Examples of org.apache.felix.bundlerepository.DataModelHelper.writeProperty()

    // as a result we can't do multi value service properties. OBR doesn't really like implementations
    // of its interfaces that it didn't generate, but it is a little weird when it does and doesn't.
    // so we create a Property implemenation which we use to generate the OBR xml for a property which
    // we then get OBR to parse. This is really convoluted and nasty.
    for (final Map.Entry<String, Object> entry : _props.entrySet()) {
      String propXML = helper.writeProperty(new Property() {
        @Override
        public String getValue()
        {
          Object value = entry.getValue();
         
View Full Code Here

Examples of org.apache.maven.artifact.ant.util.AntBuildWriter.writeProperty()

                for ( Iterator<Artifact> i = result.getArtifacts().iterator(); i.hasNext(); )
                {
                    Artifact artifact = i.next();
                    String conflictId = artifact.getDependencyConflictId();
                    antBuildWriter.writeProperty( conflictId, artifact.getFile().getAbsolutePath() );
                    FileSet singleArtifactFileSet = (FileSet) getProject().getReference( conflictId );
                    antBuildWriter.writeFileSet( singleArtifactFileSet, conflictId );
                }

                if ( pathId != null )
View Full Code Here

Examples of org.apache.olingo.odata2.core.ep.AtomEntityProvider.writeProperty()

  public void serializeEmployeeId() throws Exception {
    AtomEntityProvider s = createAtomEntityProvider();
    EdmTyped edmTyped = MockFacade.getMockEdm().getEntityType("RefScenario", "Employee").getProperty("EmployeeId");
    EdmProperty edmProperty = (EdmProperty) edmTyped;

    ODataResponse response = s.writeProperty(edmProperty, employeeData.get("EmployeeId"));
    assertNotNull(response);
    assertNotNull(response.getEntity());

    String xml = StringHelper.inputStreamToString((InputStream) response.getEntity());
    assertNotNull(xml);
View Full Code Here

Examples of org.apache.util.XMLPrinter.writeProperty()

            Enumeration toSetList = toSet.elements();
            printer.writeElement("D", null, "prop", XMLPrinter.OPENING);
            while (toSetList.hasMoreElements()) {
                Property current = (Property) toSetList.nextElement();
                if ("DAV:".equals(current.namespaceInfo)) {
                    printer.writeProperty("D", null, current.name, current.value);
                }
                else {
                    printer.writeProperty(current.namespace, current.namespaceInfo,
                                      current.name, current.value);
                }
View Full Code Here

Examples of org.apache.util.XMLPrinter.writeProperty()

                Property current = (Property) toSetList.nextElement();
                if ("DAV:".equals(current.namespaceInfo)) {
                    printer.writeProperty("D", null, current.name, current.value);
                }
                else {
                    printer.writeProperty(current.namespace, current.namespaceInfo,
                                      current.name, current.value);
                }
            }
            printer.writeElement("D", null, "prop", XMLPrinter.CLOSING);
View Full Code Here

Examples of org.apache.webdav.lib.util.XMLPrinter.writeProperty()

            Enumeration toSetList = toSet.elements();
            printer.writeElement("D", null, "prop", XMLPrinter.OPENING);
            while (toSetList.hasMoreElements()) {
                Property current = (Property) toSetList.nextElement();
                if ("DAV:".equals(current.namespaceInfo)) {
                    printer.writeProperty("D", null, current.name, current.value);
                }
                else {
                    printer.writeProperty(current.namespace, current.namespaceInfo,
                                      current.name, current.value);
                }
View Full Code Here

Examples of org.apache.webdav.lib.util.XMLPrinter.writeProperty()

                Property current = (Property) toSetList.nextElement();
                if ("DAV:".equals(current.namespaceInfo)) {
                    printer.writeProperty("D", null, current.name, current.value);
                }
                else {
                    printer.writeProperty(current.namespace, current.namespaceInfo,
                                      current.name, current.value);
                }
            }
            printer.writeElement("D", null, "prop", XMLPrinter.CLOSING);
View Full Code Here

Examples of org.encog.persist.EncogWriteHelper.writeProperty()

  public final void save(final OutputStream os, final Object obj) {
    final EncogWriteHelper out = new EncogWriteHelper(os);
    final TrainingContinuation cont = (TrainingContinuation) obj;
    out.addSection("CONT");
    out.addSubSection("PARAMS");
    out.writeProperty("type", cont.getTrainingType());
    for (final String key : cont.getContents().keySet()) {
      final double[] list = (double[]) cont.get(key);
      out.writeProperty(key, list);
    }
    out.flush();
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.