Package nexj.core.util.XMLUtil

Examples of nexj.core.util.XMLUtil.ElementHandler


      if (collection == null)
      {
         return;
      }

      XMLUtil.forEachChildElement(collection, "MailConnection", new ElementHandler()
      {
         public void handleElement(Element element)
         {
            Boolean inSecure = XMLUtil.getBooleanObjAttr(element, "inSecure");
View Full Code Here


      if (collection == null)
      {
         return;
      }

      XMLUtil.forEachChildElement(collection, "MailConnection", new ElementHandler()
      {
         public void handleElement(Element element)
         {
            element.removeAttribute("inSecure");
            element.removeAttribute("outSecure");
View Full Code Here

      if (collection == null)
      {
         return;
      }

      XMLUtil.forEachChildElement(collection, "Item", new ElementHandler()
      {
         public void handleElement(Element element)
         {
            if ("nexj.core.rpc.mail.CheckMailCommand".equals(XMLUtil.getElementValue(element)))
            {
View Full Code Here

   private static String[] getSchemaNamespaces(Document doc)
   {
      final List namespaceList = new ArrayList();
     
      XMLUtil.forEachElementRecur(doc.getDocumentElement(), null, new ElementHandler()
      {
         public void handleElement(Element element)
         {
            if (element.getLocalName().equals("schema"))
            {
View Full Code Here

      {
         //This loads the default fragment properties off the main FileStorageConnection node
         loadFragment(element, defaultFragment, false);

         //Load property overrides for each fragment off the fragment nodes
         XMLUtil.withFirstChildElement(element, "Fragments", false, new ElementHandler()
         {
            public void handleElement(Element fragmentsElement)
            {
               XMLUtil.forEachChildElement(fragmentsElement, "Fragment", getHelper().new ElementHandler("fragment")
               {
                  protected void handleElement(Element fragmentElement, String sName)
                  {
                     FileDataSourceFragment fragment = (FileDataSourceFragment)defaultFragment.clone();
View Full Code Here

                 
                  if ("binding".equals(localName))
                  {
                     final boolean retVal[] = new boolean[] {false};
                    
                     XMLUtil.forEachChildElement(element, null, new ElementHandler()
                     {
                        public void handleElement(Element element)
                        {
                           if ("binding".equals(element.getLocalName()) && NAMESPACE_SOAP.equals(element.getNamespaceURI()))
                           {
View Full Code Here

      {
         final Message fRetValue[] = new Message[2];

         if (m_messageMap != null)
         {
            XMLUtil.forEachElementRecur(portType, null, new ElementHandler()
            {              
               public void handleElement(Element element)
               {
                  if ("input".equals(element.getLocalName()))
                  {
                     if (parentName(element).equals(fOperationName))
                     {
                        fRetValue[0] = parseMessage(element);
                     }
                  }
                  else if ("output".equals(element.getLocalName()))
                  {
                     if (parentName(element).equals(fOperationName))
                     {
                        fRetValue[1] = parseMessage(element);
                     }
                  }
               }
              
               private Message parseMessage(Element element)
               {
                  Element wsdlMessage = (Element)m_messageMap.get(stripNamespacePrefix(element.getAttribute("message")));
                 
                  if (wsdlMessage != null)
                  {
                     final Message fRetVal[] = new Message[1];
                    
                     XMLUtil.forEachChildElement(wsdlMessage, null, new ElementHandler()
                     {
                        public void handleElement(Element element)
                        {
                           if ("part".equals(element.getLocalName()))
                           {
View Full Code Here

     
      public Iterator operationIterator(Element parent)
      {
         final List fList = new ArrayList();
        
         XMLUtil.forEachChildElement(parent, null, new ElementHandler()
         {
            public void handleElement(Element element)
            {
               if ("operation".equals(element.getLocalName()))
               {
View Full Code Here

      if (element != null)
      {
         loadFragment(element, defaultFragment, loader);

         XMLUtil.withFirstChildElement(element, "Fragments", false, new ElementHandler()
         {
            public void handleElement(Element fragmentsElement)
            {
               XMLUtil.forEachChildElement(fragmentsElement, "Fragment", loader.getHelper().new ElementHandler("fragment")
               {
                  protected void handleElement(Element fragmentElement, String sName)
                  {
                     VirtualDataSourceFragment fragment = (VirtualDataSourceFragment)defaultFragment.clone(false);
View Full Code Here

   protected void loadDataSourceTypes(Element dstElement)
   {
      XMLMetadataHelper.verifyRootElement(dstElement, "DataSourceTypes");

      XMLUtil.forEachChildElement(dstElement, "DataSourceType",
         m_helper.new ElementHandler("dataSourceType")
      {
         public void handleElement(Element element, String sName)
         {
            loadDataSourceType(element, sName);
         }
View Full Code Here

TOP

Related Classes of nexj.core.util.XMLUtil.ElementHandler

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.