Examples of element()


Examples of ariba.ui.aribaweb.util.AWDebugTrace.ComponentTraceNode.element()

        List<ComponentTraceNode>result = new ArrayList();
        ComponentTraceNode treeNode = root;
        result.add(root);
        for (int i = path.size()-1; i >= 0; i--) {
            ComponentTraceNode pathNode = path.get(i);
            AWBindableElement element = pathNode.element();
            for (ComponentTraceNode child : treeNode.children()) {
                if (child.element() == element
                        && eq(child.associatedMetadataProvider(), pathNode.associatedMetadataProvider())) {
                    result.add(child);
                    treeNode = child;
View Full Code Here

Examples of com.dotcms.repackage.org.dom4j.Element.element()

          while (itr.hasNext()) {
            Element category = (Element)itr.next();

            String name = category.attributeValue("name");
            String priority =
              category.element(
                "priority").attributeValue("value");

            Logger logger = Logger.getLogger(name);

            logger.setLevel(Level.toLevel(priority));
View Full Code Here

Examples of com.jamesmurty.utils.XMLBuilder.element()

        XMLBuilder builder =
            XMLBuilder.create("Scope")
                .attr("type", "UserByEmail")
                .element("EmailAddress").text(getIdentifier()).up();
        if (getName() != null) {
            builder.element("Name").text(getName());
        }
        return builder;
    }

    @Override
View Full Code Here

Examples of com.sun.tahiti.compiler.XMLWriter.element()

      {// generate intermediate symbols.
        int cnt=1;
        for( Iterator itr = rules.iterateKeys(); itr.hasNext(); ) {
          Expression symbol = (Expression)itr.next();
          if(!allNames.containsKey(symbol)) {
            out.element( "intermediateSymbol", new String[]{"id","T"+cnt});
            allNames.put( symbol, "T"+cnt );
            cnt++;
          }
        }
      }
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.ExplicitGroup.element()

            ComplexType ct =  xsd._element(ComplexType.class);
            ct._attribute("name", wp.getName().getLocalPart());
            ExplicitGroup sq = ct.sequence();           
            for (ParameterImpl p : wp.getWrapperChildren() ) {
                if (p.getBinding().isBody()) {
                    LocalElement le = sq.element();
                    le._attribute("name", p.getName().getLocalPart());
                    TypeInfo typeInfo = p.getItemType();
                    boolean repeatedElement = false;
                    if (typeInfo == null) {
                        typeInfo = p.getTypeInfo();
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.Property.element()

        final Property mockPropertyB = mock(Property.class);
        final Element mockElement = mock(Element.class);
        when(mockPropertyA.isPresent()).thenReturn(true);
        when(mockPropertyB.isPresent()).thenReturn(true);
        when(mockPropertyA.element()).thenReturn(mockElement);
        when(mockPropertyB.element()).thenReturn(mockElement);
        when(mockPropertyA.key()).thenReturn("k");
        when(mockPropertyB.key()).thenReturn("k");
        when(mockPropertyA.value()).thenReturn("v");
        when(mockPropertyB.value()).thenReturn("v");
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.dom.LPDMODOMFactory.element()

     * already have this test class then we need at least one test.
     */
    public void testGetSelection() {

        JDOMFactory factory = new LPDMODOMFactory();
        ODOMElement el1 = (ODOMElement) factory.element("Element1");
        ODOMElement el2 = (ODOMElement) factory.element("Element2");
        ODOMElement el3 = (ODOMElement) factory.element("Element3");

        ODOMElement[] elements = new ODOMElement[]{el1, el2, el3};

View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMFactory.element()

                            POLICY_DEFINITION_KEYWORD_ELEMENT_NAME,
                        namespace);
            ODOMFactory factory = context.getODOMFactory();
            Object[] keywords = selectionValueBuilder.getItems();
            for (int i=0; i<keywords.length; i++) {
                Element keyword = factory.element(
                            DeviceRepositorySchemaConstants.
                                POLICY_DEFINITION_KEYWORD_ELEMENT_NAME,
                            namespace);
                keyword.addContent(factory.text((String) keywords[i]));
                selectionElement.addContent(keyword);
View Full Code Here

Examples of java.lang.annotation.AnnotationTypeMismatchException.element()

        Method[] methods = Class.forName("java.lang.String").getMethods();
        Method m = methods[0];
        AnnotationTypeMismatchException e = new AnnotationTypeMismatchException(
                m, "some type");
        assertNotNull("can not instanciate AnnotationTypeMismatchException", e);
        assertSame("wrong method name", m, e.element());
        assertEquals("wrong found type", "some type", e.foundType());
    }
}
View Full Code Here

Examples of java.util.concurrent.BlockingQueue.element()

    @Ignore
    @Test
    public void testElement() {
        BlockingQueue q = populatedQueue(SIZE);
        for (int i = 0; i < SIZE; ++i) {
            assertEquals(i, q.element());
            assertEquals(i, q.poll());
        }
        try {
            q.element();
            shouldThrow();
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.