Examples of parseElementText()


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

                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.parseElementText()

                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();
            }

            if (ctx.isAt(m_uri, "preferences")) {
View Full Code Here

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

            UnmarshallingContext ctx = getUnmarshallingContext(input, type);
            if (JibxSimpleTypes.isSimpleType(type)) {
                QName stype = part.getTypeQName();
                QName ctype = part.getConcreteName();
                if (ctx.isAt(ctype.getNamespaceURI(), ctype.getLocalPart())) {
                    String text = ctx.parseElementText(ctype.getNamespaceURI(), ctype.getLocalPart());
                    return JibxSimpleTypes.toObject(text, stype);
                } else {
                    throw new RuntimeException("Missing required element [" + ctype + "]");
                }
            } else {
View Full Code Here

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

            UnmarshallingContext ctx = getUnmarshallingContext(input, type);
            if (JibxSimpleTypes.isSimpleType(type)) {
                QName stype = part.getTypeQName();
                QName ctype = part.getConcreteName();
                if (ctx.isAt(ctype.getNamespaceURI(), ctype.getLocalPart())) {
                    String text = ctx.parseElementText(ctype.getNamespaceURI(), ctype.getLocalPart());
                    return JibxSimpleTypes.toObject(text, stype);
                } else {
                    throw new RuntimeException("Missing required element [" + ctype + "]");
                }
            } else {
View Full Code Here

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

            UnmarshallingContext ctx = getUnmarshallingContext(input, type);
            if (JibxSimpleTypes.isSimpleType(type)) {
                QName stype = part.getTypeQName();
                QName ctype = part.getConcreteName();
                if (ctx.isAt(ctype.getNamespaceURI(), ctype.getLocalPart())) {
                    String text = ctx.parseElementText(ctype.getNamespaceURI(), ctype.getLocalPart());
                    return JibxSimpleTypes.toObject(text, stype);
                } else {
                    throw new RuntimeException("Missing required element [" + ctype + "]");
                }
            } else {
View Full Code Here

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

      //
      Application<?> app;
      TransientApplicationState state;
      if ("application".equals(m_name))
      {
         String instanceId = ctx.parseElementText(m_uri, "instance-id");
         instanceId = NewPortalConfigListener.fixInstanceIdOwnerName(instanceId);
         int i0 = instanceId.indexOf("#");
         int i1 = instanceId.indexOf(":/", i0 + 1);
         String ownerType = instanceId.substring(0, i0);
         String ownerId = instanceId.substring(i0 + 1, i1);
View Full Code Here

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

      }
      // 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();
         state = new TransientApplicationState<Gadget>(gadgetName, gadget);
View Full Code Here

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

      {
         String contentId;
         boolean isWSRP = false;
         if(ctx.isAt(m_uri, "wsrp"))
         {
            contentId = ctx.parseElementText(m_uri, "wsrp");
            app = Application.createWSRPApplication();
            isWSRP = true;
         }
         else
         {
View Full Code Here

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

         }
         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.parseElementText()

         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();
         }

         if (ctx.isAt(m_uri, "preferences"))
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.