Examples of parsePastStartTag()


Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

                contentId = ctx.parseElementText(m_uri, "wsrp");
                app = Application.createWSRPApplication();
                isWSRP = true;
            } else {

                ctx.parsePastStartTag(m_uri, "portlet");
                String applicationName = ctx.parseElementText(m_uri, "application-ref");
                String portletName = ctx.parseElementText(m_uri, "portlet-ref");
                contentId = applicationName + "/" + portletName;
                app = Application.createPortletApplication();
            }
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

                app = Application.createPortletApplication();
            }

            if (ctx.isAt(m_uri, "preferences")) {
                PortletBuilder builder = new PortletBuilder();
                ctx.parsePastStartTag(m_uri, "preferences");
                while (ctx.isAt(m_uri, "preference")) {
                    Preference value = (Preference) ctx.unmarshalElement();
                    builder.add(value.getName(), value.getValues(), value.isReadOnly());
                }
                ctx.parsePastEndTag(m_uri, "preferences");
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

               throw new JiBXParseException("The attribute xml:lang " + attrValue + " does not represent a valid language as defined by RFC 1766", attrValue);
            }
            break;
         }
      }
      ctx.parsePastStartTag(marshalURI, marshallName);
      String value = ctx.getText();
      ctx.parsePastEndTag(marshalURI, marshallName);
      return new LocalizedString(value, lang);
   }
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

      // Id
      String id = optionalAttribute(ctx, "id");

      //
      ctx.parsePastStartTag(m_uri, m_name);

      //
      Application<?> app;
      TransientApplicationState state;
      if ("application".equals(m_name))
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

         app.setState(state);
      }
      // Since we don't support dashboard's here, this only works for gadgets using the gadget wrapper portlet.
      else if ("gadget-application".equals(m_name))
      {
         ctx.parsePastStartTag(m_uri, "gadget");
         String gadgetName = ctx.parseElementText(m_uri, "gadget-ref");
         Gadget gadget = null;
         // Once the gadget portlet wrapper is able to use gadget userPref's, include parsing logic here.
         // Gadget gadget = new Gadget();
         // gadget.setUserPref();
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

            isWSRP = true;
         }
         else
         {

            ctx.parsePastStartTag(m_uri, "portlet");
            String applicationName = ctx.parseElementText(m_uri, "application-ref");
            String portletName = ctx.parseElementText(m_uri, "portlet-ref");
            contentId = applicationName + "/" + portletName;
            app = Application.createPortletApplication();
         }
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

         }

         if (ctx.isAt(m_uri, "preferences"))
         {
            PortletBuilder builder = new PortletBuilder();
            ctx.parsePastStartTag(m_uri, "preferences");
            while (ctx.isAt(m_uri, "preference"))
            {
               Preference value = (Preference)ctx.unmarshalElement();
               builder.add(value.getName(), value.getValues(), value.isReadOnly());
            }
View Full Code Here

Examples of org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag()

        int size = ctx.attributeInt(marshalURI, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        Properties map = (Properties) obj;
        if (map == null)
            map = new Properties(size);

        ctx.parsePastStartTag(marshalURI, marshallName);
        while (ctx.isAt(marshalURI, ENTRY_ELEMENT_NAME)) {
            Object key = ctx.attributeText(marshalURI, KEY_ATTRIBUTE_NAME, null);
            ctx.next();
            Object value = ctx.getText();
            map.put(key.toString(), value.toString());
View Full Code Here

Examples of org.jibx.ws.io.XmlReaderWrapper.parsePastStartTag()

     */
    public Object invoke(InContext context, IXMLReader xmlReader) throws IOException, WsException {
        String content = null;
        XmlReaderWrapper rdr = XmlReaderWrapper.createXmlReaderWrapper(xmlReader);
        try {
            rdr.parsePastStartTag(null, ELEMENT_NAME);
            content = rdr.parseContentText(null, ELEMENT_NAME);
        } catch (JiBXException e) {
            throw new WsException("Unable to parse exception: ", e);
        }
        return content;
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.