Package org.jboss.internal.soa.esb.util.stax

Examples of org.jboss.internal.soa.esb.util.stax.TextElement


  }
 
  private static void writeToXML(final XMLStreamWriter out, final QName name, final PortReference portReference)
      throws XMLStreamException
  {
      final TextElement toElement = new TextElement(portReference.getAddress()) ;
      StreamHelper.writeElement(out, name, toElement) ;
     
      writeExtensions(out, portReference) ;
  }
View Full Code Here


  private static void writeXML(final XMLStreamWriter out, final QName name, final PortReference portReference)
      throws XMLStreamException
  {
      final String origURI = StreamHelper.writeStartElement(out, name) ;
     
      final TextElement addressElement = new TextElement(portReference.getAddress()) ;
      StreamHelper.writeElement(out, XMLUtil.QNAME_ADDRESS_TAG, addressElement) ;
     
      if (portReference.getAllExtensions().size() > 0)
      {
                final String origReferenceURI = StreamHelper.writeStartElement(out, XMLUtil.QNAME_REFERENCE_PROPERTIES_TAG) ;
View Full Code Here

                   
                    StreamHelper.writeAttribute(out, attributeName, value) ;
                }
            }
           
            final TextElement value = new TextElement(extension.getValue()) ;
            value.writeContent(out) ;
           
            StreamHelper.writeEndElement(out, name.getPrefix(), origURI) ;

            final List children = extension.getChildren() ;
            if (children != null)
View Full Code Here

 
  private static PortReference readToXML(final XMLStreamReader in)
      throws XMLStreamException
  {
      final PortReference portReference = new PortReference() ;
      final TextElement toElement = new TextElement(in) ;
      portReference.setAddress(toElement.getText()) ;
      return portReference ;
  }
View Full Code Here

      protected void putElement(XMLStreamReader in, QName elementName)
              throws XMLStreamException
      {
          if (XMLUtil.QNAME_ADDRESS_TAG.equals(elementName))
          {
              final TextElement address = new TextElement(in) ;
              portReference.setAddress(address.getText()) ;
          }
          else if (XMLUtil.QNAME_REFERENCE_PROPERTIES_TAG.equals(elementName))
          {
              final ReferencePropertiesImpl referenceProperties = new ReferencePropertiesImpl(in) ;
              portReference.addExtensions(referenceProperties.getExtensions()) ;
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.util.stax.TextElement

Copyright © 2018 www.massapicom. 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.