Examples of addProperty()


Examples of org.apache.openejb.jee.oejb3.EjbDeployment.addProperty()

        OpenejbJar openejbJar = new OpenejbJar();
        EjbDeployment ejbDeployment = new EjbDeployment();
        openejbJar.addEjbDeployment(ejbDeployment);
       
        ejbDeployment.setEjbName("MySessionBean");
        ejbDeployment.addProperty("webservice.security.realm", "MyRealm");
        ejbDeployment.addProperty("webservice.security.securityRealm", "MySecurityRealm");
        ejbDeployment.addProperty("webservice.security.transportGarantee", TransportGuaranteeType.NONE.value());
        ejbDeployment.addProperty("webservice.security.authMethod", AuthMethodType.BASIC.value());
        ejbDeployment.addProperty("wss4j.in.action", "Timestamp");
        ejbDeployment.addProperty("wss4j.out.action", "Timestamp");

Examples of org.apache.openjpa.lib.conf.ConfigurationProvider.addProperty()

            // if the BrokerImpl hasn't been specified, switch to the
            // non-finalizing one, since anything claiming to be a container
            // should be doing proper resource management.
            if (!Configurations.containsProperty(BrokerValue.KEY,
                cp.getProperties())) {
                cp.addProperty("openjpa." + BrokerValue.KEY,
                    getDefaultBrokerAlias());
            }

            BrokerFactory factory = getBrokerFactory(cp, poolValue,
                pui.getClassLoader());

Examples of org.apache.padaf.xmpbox.schema.SchemaDescription.addProperty()

    Assert.assertEquals(schemDesc, desc.getSchema());
    Assert.assertEquals(schemURI, desc.getNameSpaceURI());
    Assert.assertEquals(schemPrefix, desc.getPrefix());

    String descExpected = "nom de la personne concernée";
    desc.addProperty("nom", "Text", "external",
        "nom de la personne concernee");
    desc.addProperty("nom", "Text", "external", descExpected);
    Assert.assertEquals(1, desc.getProperties().size());
    Assert.assertEquals(descExpected, desc.getProperties().get(0)
        .getDescriptionValue());

Examples of org.apache.padaf.xmpbox.type.ComplexPropertyContainer.addProperty()

    ComplexPropertyContainer field = new ComplexPropertyContainer(metadata,
        localPrefix, MAIL_ADR);
    field.setAttribute(new Attribute(null, "rdf", "parseType", "Resource"));
    TextType namePart = new TextType(metadata, "madn", "name", name);
    TextType domainPart = new TextType(metadata, "madn", "domain", domain);
    field.addProperty(namePart);
    field.addProperty(domainPart);
    addProperty(field);

  }

Examples of org.apache.qpid.qmf2.common.SchemaEventClass.addProperty()

            SchemaObjectClass child = new SchemaObjectClass(packageName, "child");
            child.addProperty(new SchemaProperty("name", QmfType.TYPE_STRING));
   
            // Declare the event class
            SchemaEventClass event = new SchemaEventClass(packageName, "event");
            event.addProperty(new SchemaProperty("text", QmfType.TYPE_STRING));

            System.out.println("Test3 Schema classes initialised OK");

            // Now we create new instance of each class from the map encodings and list the values
            // to check everything looks OK.

Examples of org.apache.qpid.qmf2.common.SchemaObjectClass.addProperty()

            String packageName = "com.profitron.gizmo";

            // Declare a schema for a structured exception that can be used in failed method invocations.
            SchemaObjectClass exception = new SchemaObjectClass(packageName, "exception");

            exception.addProperty(new SchemaProperty("whatHappened", QmfType.TYPE_STRING));
            exception.addProperty(new SchemaProperty("howBad", QmfType.TYPE_INT));
            exception.addProperty(new SchemaProperty("details", QmfType.TYPE_MAP));

            // Declare a control object to test methods against.
            SchemaObjectClass control = new SchemaObjectClass(packageName, "control");

Examples of org.apache.shale.tiger.managed.config.ManagedBeanConfig.addProperty()

                        name = field.getName();
                    }
                    mpc.setName(name);
                    mpc.setType(field.getType().getName()); // FIXME - primitives, arrays, etc.
                    mpc.setValue(property.value());
                    mbc.addProperty(mpc);
                    continue;
                }
                // Support deprecated @Value annotation as well
                Value value = (Value) field.getAnnotation(Value.class);
                if (value != null) {

Examples of org.apache.slide.common.RequestedPropertiesImpl.addProperty()

            // add this resource's dead properties
            Enumeration props = nrd.enumerateProperties();
            while (props.hasMoreElements()) {
                NodeProperty np = (NodeProperty)props.nextElement();
                if (!result.contains(np)) {
                    result.addProperty(new RequestedPropertyImpl(np.getName(), np.getNamespace()));
                }
            }
        }
        return result;
    }

Examples of org.apache.slide.projector.expression.EventExpression.addProperty()

            // ...and add dispose condition
            Map jobParameter = new HashMap();
            jobParameter.put(Dispose.STORE, new StringValue(Store.stores[Store.CACHE]));
            jobParameter.put(Dispose.KEY, new StringValue(uri.toString()));
            EventExpression expression = new EventExpression("Update");
            expression.addProperty(EventExpression.DEPTH, "0");
            expression.addProperty(EventExpression.URI, uri.toString());
            Scheduler.getInstance().registerJob(new Job(context.getProcessId()+":"+context.getStep(), new URIValue("dispose"), expression, expression, jobParameter, false, false));
      Scheduler.getInstance().saveJobs();
        }
        resultEntries.put(SimpleProcessor.OUTPUT, output);

Examples of org.apache.sling.ide.eclipse.ui.nav.model.JcrNode.addProperty()

            String encodeValueAsString = PropertyTypeSupport.encodeValueAsString(newRow.getValue(), type);
            if (type!=PropertyType.STRING && type!=PropertyType.NAME) {
                encodeValueAsString = "{"+PropertyType.nameFromValue(type)+"}"+encodeValueAsString;
            }
            final String propertyName = String.valueOf(newRow.getName());
            jcrNode.addProperty(propertyName, encodeValueAsString);
            view.refreshContent();
        } else {
            tableViewer.update(newRow, null);
        }
    }
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.