Examples of addElement()


Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.ObjectData.addElement()

        data.initCollection("Members");
        final SerialOid oid[] = new SerialOid[3];
        for (int i = 0; i < oid.length; i++) {
            oid[i] = SerialOid.createPersistent(104 + i);
            data.addElement("Members", oid[i]);
        }
        manager.insertObject(data);

        final ObjectData read = (ObjectData) manager.loadData(data.getOid());
        assertEquals(data.getOid(), read.getOid());
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.ObjectDataVector.addElement()

            // TODO check loader first
            if (instanceData == null) {
                throw new IsisException("No data found for " + oid + " (possible missing file)");
            }
            if (matchesPattern(pattern, instanceData)) {
                matches.addElement(instanceData);
            }
        }
        return matches;
    }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.AttributeVector.addElement()

                    + Descriptor.userFieldSig(fieldSig)
                    + " " + fieldName);

        //@olsen: fix 4467428, add synthetic attribute for generated fields
        final AttributeVector fieldAttrs = new AttributeVector();
        fieldAttrs.addElement(
            new SyntheticAttribute(
                pool.addUtf8(SyntheticAttribute.expectedAttrName)));

        // create and add the field
        final ClassField field
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.classfile.ExceptionTable.addElement()

            = pool.addClass(JAVA_ClassNotFoundException_Path);
        final ExceptionRange exceptionRange
            = new ExceptionRange(begin, end, beginHandler, catchType);
        final ExceptionTable exceptionTable
            = new ExceptionTable();
        exceptionTable.addElement(exceptionRange);

        final CodeAttribute codeAttr
            = new CodeAttribute(getCodeAttributeUtf8(),
                                3, // maxStack
                                3, // maxLocals
View Full Code Here

Examples of org.apache.lenya.xml.DOMUtil.addElement()

         Document iml = du.create("<?xml version=\"1.0\"?><identity id=\"" +  username + "\"></identity>");
         du.setAttributeValue(iml, "/identity/password/@type", "md5");
         du.setElementValue(iml, "/identity/password", encryptedPassword);
         du.setElementValue(iml, "/identity/comment", comment);
         for (int i = 0; i < groupnames.size(); i++) {
             du.addElement(iml, "/identity/groups/group", (String) groupnames.elementAt(i));
         }

         //new org.apache.lenya.xml.DOMWriter(System.out).printWithoutFormatting(iml);
         return iml;
     }
View Full Code Here

Examples of org.apache.syncope.client.validation.SyncopeClientException.addElement()

            SyncopeClientCompositeErrorException scce = new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);

            SyncopeClientException invalidConnInstance = new SyncopeClientException(
                    SyncopeClientExceptionType.InvalidConnInstance);
            invalidConnInstance.addElement(e.getMessage());

            scce.addException(invalidConnInstance);
            throw scce;
        }
View Full Code Here

Examples of org.apache.syncope.common.validation.SyncopeClientException.addElement()

        if (StringUtils.isBlank(resourceTO.getName())) {
            SyncopeClientCompositeErrorException sccee =
                    new SyncopeClientCompositeErrorException(HttpStatus.BAD_REQUEST);
            SyncopeClientException sce = new SyncopeClientException(SyncopeClientExceptionType.RequiredValuesMissing);
            sce.addElement("Resource name");
            sccee.addException(sce);
            throw sccee;
        }

        if (resourceDAO.find(resourceTO.getName()) != null) {
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.ComponentArtifact.addElement()

    private void addComponent(Entity ent) {

        ComponentArtifact comp = new ComponentArtifact();
        //System.err.println(ent.getX());
        Element com = comp.addElement(doc, svgNS, ent.getX(), ent.getY(), ent.getHeight(), ent.getWidth());

        Element component = com;
        if (baseURL != null) {
            String url = baseURL + "/components/" + ent.getName();
            component = createLink(com, url);
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.CompositeArtifact.addElement()

    private void addComposite() {

        CompositeArtifact composite = new CompositeArtifact();

        Element composi = composite.addElement(doc, svgNS, comp.getX(), comp.getY(), comp.getHeight(), comp.getWidth());
        Element text = Text.addTextElement(doc, svgNS, comp.getX() + 20, comp.getY() + 20, comp.getName());

        svgRoot.appendChild(composi);
        svgRoot.appendChild(text);
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.DashedWire.addElement()

    }

    private void addWire(ServiceArtifact s1, ServiceArtifact s2) {

        DashedWire edge = new DashedWire();
        Element wire = edge.addElement(doc, svgNS, s1, s2, getChangingFactor(), getColor());
        svgRoot.appendChild(wire);
    }

    private void addWire(ReferenceArtifact r1, ReferenceArtifact r2) {
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.