Examples of parseElementText()


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

                throw new JiBXException("Value of type " + tname +
                    " with key " + key + " is not a supported type");
            }
           
            // deserialize content as specified type
            String text = ctx.parseElementText(m_uri, ENTRY_ELEMENT_NAME);
            Object value = null;
            switch (type) {
               
                case BOOLEAN_TYPE:
                    value = Utility.parseBoolean(text) ?
View Full Code Here

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

        Name name = (Name)obj;
        if (name == null) {
            name = new Name();
        }
        ctx.parsePastStartTag(null, "name");
        name.firstName = ctx.parseElementText(null, "first-name");
        name.lastName = ctx.parseElementText(null, "last-name");
        ctx.parsePastEndTag(null, "name");
        return name;
    }
}
View Full Code Here

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

        if (name == null) {
            name = new Name();
        }
        ctx.parsePastStartTag(null, "name");
        name.firstName = ctx.parseElementText(null, "first-name");
        name.lastName = ctx.parseElementText(null, "last-name");
        ctx.parsePastEndTag(null, "name");
        return name;
    }
}
View Full Code Here

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

        Name name = (Name)obj;
        if (name == null) {
            name = new Name();
        }
        ctx.parsePastStartTag(m_uri, m_name);
        name.firstName = ctx.parseElementText(m_uri, "first-name");
        name.lastName = ctx.parseElementText(m_uri, "last-name");
        ctx.parsePastEndTag(m_uri, m_name);
        return name;
    }
}
View Full Code Here

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

        if (name == null) {
            name = new Name();
        }
        ctx.parsePastStartTag(m_uri, m_name);
        name.firstName = ctx.parseElementText(m_uri, "first-name");
        name.lastName = ctx.parseElementText(m_uri, "last-name");
        ctx.parsePastEndTag(m_uri, m_name);
        return name;
    }
}
View Full Code Here

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

      //
      Application<Portlet> app;
      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()

         app.setState(state);
      }
      else
      {
         ctx.parsePastStartTag(m_uri, "portlet");
         String applicationName = ctx.parseElementText(m_uri, "application-ref");
         String portletName = ctx.parseElementText(m_uri, "portlet-ref");
         TransientApplicationState<Portlet> state;
         if (ctx.isAt(m_uri, "preferences"))
         {
            PortletBuilder builder = new PortletBuilder();
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");
         TransientApplicationState<Portlet> state;
         if (ctx.isAt(m_uri, "preferences"))
         {
            PortletBuilder builder = new PortletBuilder();
            ctx.parsePastStartTag(m_uri, "preferences");
View Full Code Here

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

        Application<?> app;
        TransientApplicationState state;
        // Since we don't support dashboard's here, this only works for gadgets using the gadget wrapper portlet.
        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()

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

                ctx.parsePastStartTag(m_uri, "portlet");
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.