Examples of parsePastStartTag()


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

    if (overlapBehaviorInfo == null) {
      overlapBehaviorInfo = new OverlapBehaviorInfo();
    }

    // process all entries present in document
    ctx.parsePastStartTag(uri, name);
    boolean found = false;
    for (OverlapBehaviorInfoInner inner : OverlapBehaviorInfoInner.values()) {
      if (ctx.parseIfStartTag(uri, inner.name())) {
        found = true;
        overlapBehaviorInfo.setOverlapBehavior(inner);
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();
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<Portlet> app;
      if ("application".equals(m_name))
      {
View Full Code Here

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

         app = Application.createPortletApplication();
         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"))
         {
View Full Code Here

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

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

      //
      PortletBuilder builder = new PortletBuilder();

      //
      ctx.parsePastStartTag(m_uri, m_name);
      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.runtime.impl.UnmarshallingContext.parsePastStartTag()

                            + " 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;
        // Since we don't support dashboard's here, this only works for gadgets using the gadget wrapper portlet.
View Full Code Here

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

        //
        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();
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.