Examples of createChild()


Examples of org.jdesktop.wonderland.modules.contentrepo.common.ContentCollection.createChild()

                 */
                ContentResource r = (ContentResource) c.removeChild(image.getName());
            } catch (Exception e) {
            }
           
            ContentResource r = (ContentResource) c.createChild(
                image.getName(), ContentNode.Type.RESOURCE);
            try {
                r.put(image);
                uri = "wlcontent:/"+r.getPath();
            } catch (IOException ex) {
View Full Code Here

Examples of org.jdesktop.wonderland.modules.contentrepo.common.ContentCollection.createChild()

        if (!audioFile.exists()) {
            throw new FileNotFoundException();
        }
        ContentNode node = recordingRoot.getChild(AUDIO_RECORDINGS_DIRECTORY);
        if (node == null) {
            node = recordingRoot.createChild(AUDIO_RECORDINGS_DIRECTORY, Type.COLLECTION);
        }
        ContentCollection dirNode = (ContentCollection) node;
        logger.info("directory for audio recordings: " + dirNode);
        String recordingName = audioFile.getName();
        logger.info("recording name: " + recordingName);
View Full Code Here

Examples of org.jitterbit.util.persist.Persistor.createChild()

        Iterable<Field> fields = seg.getFieldList();
        if (fields != null) {
            Persistor fieldRoot = media.createChild(FIELDS);
            FieldPersistor fieldPersistor = new FieldPersistor();
            for (Field f : fields) {
                fieldPersistor.save(f, fieldRoot.createChild(FIELD));
            }
        }
    }
   
    /**
 
View Full Code Here

Examples of org.jitterbit.util.persist.XmlPersistor.createChild()

    private void store() throws DataCacheException {
        try {
            File file = createFile();
            XmlPersistor persistor = XmlPersistor.newRoot("Drivers");
            for (DriverDescriptor d : driverDescriptors) {
                Persistor driverPersistor = persistor.createChild("Driver");
                DriverDescriptorPersistor.persist(d, driverPersistor);
            }
            persistor.store(file);
        } catch (Exception ex) {
            throw new DataCacheException(DatabaseMessages.getString("DatabaseDriverCache.StoringError"), ex);
View Full Code Here

Examples of org.jvnet.hk2.config.ConfigBeanProxy.createChild()

                        // adding the application-ref element to the standalone
                        // server instance
                        ConfigBeanProxy servr_w = t.enroll(servr);
                        // adding the application-ref element to the standalone
                        // server instance
                        ApplicationRef appRef = servr_w.createChild(ApplicationRef.class);
                        setAppRefAttributes(appRef, deployParams);
                        ((Server)servr_w).getApplicationRef().add(appRef);
                    }

                    Cluster cluster = domain.getClusterNamed(target);
View Full Code Here

Examples of org.locationtech.udig.project.memento.UdigMemento.createChild()

    }

    private UdigMemento createTestMemento() {
        UdigMemento memento = new UdigMemento();
        fill(memento);
        fill(memento.createChild(TYPE));
        fill(memento.createChild(TYPE,ID1));
        fill(memento.createChild(null));
        return memento;
    }
View Full Code Here

Examples of org.modeshape.jcr.cache.MutableCachedNode.createChild()

                Name name = names.create(newPrefix);
                List<Property> props = new ArrayList<Property>(3);
                props.add(propertyFactory.create(ModeShapeLexicon.URI, newUri));
                props.add(propertyFactory.create(JcrLexicon.PRIMARY_TYPE, ModeShapeLexicon.NAMESPACE));
                props.add(propertyFactory.create(ModeShapeLexicon.GENERATED, booleans.create(false)));
                namespaces.createChild(system, key, name, props);
            }
        }

        return removedPrefixes;
    }
View Full Code Here

Examples of org.openengsb.core.api.context.Context.createChild()

            c = c.getChild(pathElem);
            if (c == null) {
                if (!create) {
                    return null;
                }
                c = parent.createChild(pathElem);
            }
        }
        return c;
    }
View Full Code Here

Examples of v7db.files.mongodb.V7File.createChild()

      if (contentType == null)
        contentType = existing.getContentType();
      existing.setContent(content, contentType);
    } else {
      V7File parent = getParent(fs, path);
      parent.createChild(content, path[path.length - 1], contentType);
    }
  }

  static String[] getPath(String root, String path) {
    List<String> t = new ArrayList<String>();
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.