Package org.jibx.runtime.impl

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


            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


    boolean found = false;
    for (OverlapBehaviorInfoInner inner : OverlapBehaviorInfoInner.values()) {
      if (ctx.parseIfStartTag(uri, inner.name())) {
        found = true;
        overlapBehaviorInfo.setOverlapBehavior(inner);
        ctx.parsePastEndTag(uri, inner.name());
        break;
      }
    }
    if (!found) {
      ctx.throwStartTagException("Unrecognized inner element");
View Full Code Here

      }
    }
    if (!found) {
      ctx.throwStartTagException("Unrecognized inner element");
    }
    ctx.parsePastEndTag(uri, name);
    return overlapBehaviorInfo;
  }
}
View Full Code Here

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

         ctx.next();
         Object value = ctx.getText();
         map.put(key.toString(), value.toString());
         ctx.parsePastEndTag(marshalURI, ENTRY_ELEMENT_NAME);
      }
      ctx.parsePastEndTag(marshalURI, marshallName);
      return map;
   }
}
View Full Code Here

            while (ctx.isAt(m_uri, "preference"))
            {
               Preference value = (Preference)ctx.unmarshalElement();
               builder.add(value.getName(), value.getValues(), value.isReadOnly());
            }
            ctx.parsePastEndTag(m_uri, "preferences");
            state = new TransientApplicationState<Portlet>(applicationName + "/" + portletName, builder.build());
         }
         else
         {
            state = new TransientApplicationState<Portlet>(applicationName + "/" + portletName, null);
View Full Code Here

         {
            state = new TransientApplicationState<Portlet>(applicationName + "/" + portletName, null);
         }
         app = Application.createPortletApplication();
         app.setState(state);
         ctx.parsePastEndTag(m_uri, "portlet");
      }

      //
      nextOptionalTag(ctx, "application-type");
      String theme = nextOptionalTag(ctx, "theme");
View Full Code Here

      {
         properties = (Properties)ctx.unmarshalElement();
      }

      //
      ctx.parsePastEndTag(m_uri, m_name);

      //
      app.setId(id);
      app.setTheme(theme);
      app.setTitle(title);
View Full Code Here

      while (ctx.isAt(m_uri, "preference"))
      {
         Preference value = (Preference)ctx.unmarshalElement();
         builder.add(value.getName(), value.getValues(), value.isReadOnly());
      }
      ctx.parsePastEndTag(m_uri, m_name);

      //
      return builder.build();
   }
}
View Full Code Here

        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());
            ctx.parsePastEndTag(marshalURI, ENTRY_ELEMENT_NAME);
        }
        ctx.parsePastEndTag(marshalURI, marshallName);
        return map;
    }
}
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.