Examples of throwStartTagNameError()


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

        throws JiBXException {
       
        // make sure we're at the appropriate start tag
        UnmarshallingContext ctx = (UnmarshallingContext)ictx;
        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }
       
        // lookup the prefixes assigned to required namespaces
        int nscnt = ctx.getActiveNamespaceCount();
        String xsdlead = null;
View Full Code Here

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

        throws JiBXException {
       
        // make sure we're at the appropriate start tag
        UnmarshallingContext ctx = (UnmarshallingContext)ictx;
        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }
       
        // create new hashmap if needed
        int size = ctx.attributeInt(m_uri, SIZE_ATTRIBUTE_NAME, DEFAULT_SIZE);
        HashMap map = (HashMap)obj;
View Full Code Here

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

        throws JiBXException {
       
        // make sure we're at the appropriate start tag
        UnmarshallingContext ctx = (UnmarshallingContext)ictx;
        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }
       
        // create new hashmap if needed
        int size = ctx.attributeInt(m_uri,
            getSizeAttributeName(), DEFAULT_SIZE);
View Full Code Here

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

  public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException {

    // make sure we're at the appropriate start tag
    UnmarshallingContext ctx = (UnmarshallingContext) ictx;
    if (!ctx.isAt(uri, name)) {
      ctx.throwStartTagNameError(uri, name);
    }

    // create new hashmap if needed
    OverlapBehaviorInfo overlapBehaviorInfo = (OverlapBehaviorInfo) obj;
    if (overlapBehaviorInfo == null) {
View Full Code Here

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

   @SuppressWarnings("unchecked")
   public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException
   {
      UnmarshallingContext ctx = (UnmarshallingContext)ictx;
      if (!ctx.isAt(marshalURI, marshallName))
         ctx.throwStartTagNameError(marshalURI, marshallName);

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

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

   public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException
   {
      UnmarshallingContext ctx = (UnmarshallingContext)ictx;
      if (!ctx.isAt(m_uri, m_name))
      {
         ctx.throwStartTagNameError(m_uri, m_name);
      }

      //
      if (obj != null)
      {
View Full Code Here

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

   public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException
   {
      UnmarshallingContext ctx = (UnmarshallingContext)ictx;
      if (!ctx.isAt(m_uri, m_name))
      {
         ctx.throwStartTagNameError(m_uri, m_name);
      }

      //
      if (obj != null)
      {
View Full Code Here

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

    @SuppressWarnings("unchecked")
    public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException {
        UnmarshallingContext ctx = (UnmarshallingContext) ictx;
        if (!ctx.isAt(marshalURI, marshallName))
            ctx.throwStartTagNameError(marshalURI, marshallName);

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

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

    private static final Pattern RFC1766_PATTERN = Pattern.compile("^([a-zA-Z]{2})(?:-([a-zA-Z]{2}))?$");

    public Object unmarshal(Object o, IUnmarshallingContext ictx) throws JiBXException {
        UnmarshallingContext ctx = (UnmarshallingContext) ictx;
        if (!ctx.isAt(marshalURI, marshallName)) {
            ctx.throwStartTagNameError(marshalURI, marshallName);
        }
        int count = ctx.getAttributeCount();
        Locale lang = null;
        for (int i = 0; i < count; i++) {
            String attrName = ctx.getAttributeName(i);
View Full Code Here

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

    }

    public Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException {
        UnmarshallingContext ctx = (UnmarshallingContext) ictx;
        if (!ctx.isAt(m_uri, m_name)) {
            ctx.throwStartTagNameError(m_uri, m_name);
        }

        //
        if (obj != null) {
            throw new AssertionError("That should not happen");
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.