Examples of element()


Examples of org.eclipse.sapphire.modeling.ElementDisposeEvent.element()

    {
        assertInstanceOf( event, ElementDisposeEvent.class );
       
        final ElementDisposeEvent evt = (ElementDisposeEvent) event;
       
        assertSame( element, evt.element() );
    }

    protected static void assertPropertyContentEvent( final Event event,
                                                      final Property property )
    {
View Full Code Here

Examples of org.jacoco.report.internal.xml.XMLDocument.element()

      }

      private void writeHeader(final String name) throws IOException {
        element.attr("name", name);
        for (final SessionInfo i : sessionInfos) {
          final XMLElement sessioninfo = root.element("sessioninfo");
          sessioninfo.attr("id", i.getId());
          sessioninfo.attr("start", i.getStartTimeStamp());
          sessioninfo.attr("dump", i.getDumpTimeStamp());
        }
      }
View Full Code Here

Examples of org.jboss.resteasy.annotations.providers.jaxb.Wrapped.element()

         JAXBElement<JaxbCollection> ele = ctx.createUnmarshaller().unmarshal(source, JaxbCollection.class);

         Wrapped wrapped = FindAnnotation.findAnnotation(annotations, Wrapped.class);
         if (wrapped != null)
         {
            if (!wrapped.element().equals(ele.getName().getLocalPart()))
            {
               throw new JAXBUnmarshalException("Collection wrapping failed, expected root element name of " + wrapped.element() + " got " + ele.getName().getLocalPart());
            }
            if (!wrapped.namespace().equals(ele.getName().getNamespaceURI()))
            {
View Full Code Here

Examples of org.jdom.DefaultJDOMFactory.element()

        anyE.addContent("55");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("43");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("12");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("9");
        request.addContent(anyS);
View Full Code Here

Examples of org.jdom.JDOMFactory.element()

     */
    @Test
    public void testSingleORWithMultipleTokenPhrase() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");
        Element any = factory.element("phrase_OR_title");
        any.addContent("xxx yyy");
        request.addContent(any);

        // build lucene query input
View Full Code Here

Examples of org.jdom.input.DefaultJDOMFactory.element()

                errorReporter.setLocationDetailsRegistry(registry);
            }

            DefaultJDOMFactory factory = new DefaultJDOMFactory();

            Element element = factory.element(DeviceRepositorySchemaConstants.
                    USER_AGENT_PATTERN_ELEMENT_NAME,
                    MCSNamespace.DEVICE_IDENTIFICATION);

            LocationDetails details =
                    new DeviceLocationDetails(ERROR_LOCATION_FORMAT,
View Full Code Here

Examples of org.jdom.input.JDOMFactory.element()

        Element equivalent = null;
        Element deviceLayout = getContainingDeviceLayout(element);

        if (deviceLayout != null) {
            Element layout = deviceLayout.getParent();
            Element newLayout = factory.element(layout.getName(),
                    layout.getNamespace());
            Element newDeviceLayout = (Element) deviceLayout.clone();

            // Put the new layout in a document to allow absolute XPaths
            // to operate correctly
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.element()

    public void marshal(Object obj, IMarshallingContext ictx)
        throws JiBXException {
        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(0, "name");
        ctx.element(0, "first-name", name.firstName);
        ctx.element(0, "last-name", name.lastName);
        ctx.endTag(0, "name");
    }
}
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.element()

        throws JiBXException {
        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(0, "name");
        ctx.element(0, "first-name", name.firstName);
        ctx.element(0, "last-name", name.lastName);
        ctx.endTag(0, "name");
    }
}
View Full Code Here

Examples of org.jibx.runtime.impl.MarshallingContext.element()

    public void marshal(Object obj, IMarshallingContext ictx)
        throws JiBXException {
        MarshallingContext ctx = (MarshallingContext)ictx;
        Name name = (Name)obj;
        ctx.startTag(m_index, m_name);
        ctx.element(m_index, "first-name", name.firstName);
        ctx.element(m_index, "last-name", name.lastName);
        ctx.endTag(m_index, m_name);
    }
   
    /* (non-Javadoc)
 
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.