Examples of addProperty()


Examples of org.apache.fop.fo.properties.ListProperty.addProperty()

        ListProperty propList = null;
        while (true) {
            Property prop = parseAdditiveExpr();
            if (currentToken == TOK_EOF) {
                if (propList != null) {
                    propList.addProperty(prop);
                    return propList;
                } else {
                    return prop;
                }
            } else {

Examples of org.apache.geronimo.datastore.GFile.addProperty()

        byte[] content = "Dummy content".getBytes();
       
        Object interactId = fileManager.startInteraction();
        GFile file = fileManager.factoryGFile(interactId, "test");
        fileManager.persistNew(interactId, file);
        file.addProperty("name1", "value1");
        file.addProperty("name2", "value2");
        file.addProperty("name3", "value3");
        file.setContent(new ByteArrayInputStream(content));
        fileManager.endInteraction(interactId);
       

Examples of org.apache.hivemind.service.impl.BuilderParameter.addProperty()

        replayControls();

        BuilderParameter p = new BuilderParameter();

        p.setClassName(AutowireTarget.class.getName());
        p.addProperty(new BuilderLogFacet());
        p.addProperty(new BuilderClassResolverFacet());
        p.addProperty(new BuilderMessagesFacet());
        p.addProperty(new BuilderErrorHandlerFacet());
        p.addProperty(new BuilderServiceIdFacet());
        p.addProperty(new BuilderErrorLogFacet());

Examples of org.apache.jackrabbit.commons.flat.PropertySequence.addProperty()

                                        if (properties.hasItem(propName)) {
                                            log.debug("Overwriting authorizable {} which is already member of {}.", propName, gr);
                                            properties.removeProperty(propName);
                                        }
                                        Value newMember = session.getValueFactory().createValue(member.id.toString(), PropertyType.WEAKREFERENCE);
                                        properties.addProperty(propName, newMember);
                                    }
                                    return null;
                                }
                            });
                        } else {

Examples of org.apache.jackrabbit.core.persistence.bundle.util.NodePropBundle.addProperty()

                state.setMultiValued(true);
                state.setValues(InternalValue.create((Name[]) mixins.toArray(new Name[mixins.size()])));
            } else {
                throw new NoSuchItemStateException(id.toString());
            }
            bundle.addProperty(state);
        }
        return state;
    }

    /**
 

Examples of org.apache.jackrabbit.core.persistence.pool.util.NodePropBundle.addProperty()

                state.setMultiValued(true);
                state.setValues(InternalValue.create(mixins.toArray(new Name[mixins.size()])));
            } else {
                throw new NoSuchItemStateException(id.toString());
            }
            bundle.addProperty(state);
        }
        return state;
    }

    /**
 

Examples of org.apache.jackrabbit.core.persistence.util.NodePropBundle.addProperty()

                    if (bundle == null) {
                        throw new NoSuchItemStateException(nodeId.toString());
                    }
                    modified.put(nodeId, bundle);
                }
                bundle.addProperty((PropertyState) state, getBlobStore());
            }
        }
        // add removed properties
        for (ItemState state : changeLog.deletedStates()) {
            if (state.isNode()) {

Examples of org.apache.jackrabbit.mongomk.impl.model.MongoNode.addProperty()

        Object value = instruction.getValue();
        MongoNode node = getStoredNode(instruction.getPath());
        if (value == null) {
            node.removeProp(key);
        } else {
            node.addProperty(key, value);
        }
    }

    @Override
    public void visit(RemoveNodeInstruction instruction) {

Examples of org.apache.jackrabbit.mongomk.impl.model.NodeImpl.addProperty()

            }
        }

        if (properties != null) {
            for (Map.Entry<String, Object> entry : properties.entrySet()) {
                node.addProperty(entry.getKey(), convertObjectValue(entry.getValue()));
            }
        }

        return node;
    }

Examples of org.apache.jackrabbit.oak.plugins.blob.BlobStoreConfiguration.addProperty()

     *             the exception
     */
    public static DataStoreBlobStore getBlobStore() throws Exception {
        BlobStoreConfiguration config =
                BlobStoreConfiguration.newInstance().loadFromSystemProps();
        config.addProperty(
                BlobStoreConfiguration.PROP_BLOB_STORE_PROVIDER, DataStoreBlobStore.class.getName());
        config.addProperty("path", PATH + "datastore");
        return (DataStoreBlobStore) BlobStoreHelper.create(config).orNull();
    }
}
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.