Package org.jibx.runtime

Examples of org.jibx.runtime.JiBXConstrainedParseException


            throwStartTagException("Missing required enumeration value");
        }
        try {
            return Utility.enumValue(target, enums, vals);
        } catch (JiBXException ex) {
            throw new JiBXConstrainedParseException(ex.getMessage() + ' ' +
                buildPositionString(), target, enums);
        }
    }
View Full Code Here


            return dflt;
        }
        try {
            return Utility.enumValue(target, enums, vals);
        } catch (JiBXException ex) {
            throw new JiBXConstrainedParseException(ex.getMessage() + ' ' +
                buildPositionString(), target, enums);
        }
    }
View Full Code Here

    uctx.setDocument(new TestDocument("attr", "abc"));
    try {
      uctx.attributeEnumeration("namespace", "attr", enums, new int[] {1, 2});
      fail("Expected JiBXConstrainedParseException to be thrown");
    } catch (JiBXException e) {
      assertEquals(e, new JiBXConstrainedParseException(null, "abc", enums, "namespace", "attr", null));
    }
  }
View Full Code Here

    uctx.setDocument(new TestDocument("attr", "abc"));
    try {
      uctx.attributeEnumeration("namespace", "attr", enums, new int[] {1, 2}, 1);
      fail("Expected JiBXConstrainedParseException to be thrown");
    } catch (JiBXException e) {
      assertEquals(e, new JiBXConstrainedParseException(null, "abc", enums, "namespace", "attr", null));
    }
  }
View Full Code Here

        "namespace", "tag", "abc"));
    try {
      uctx.parseContentEnumeration("namespace", "tag", enums, new int[] {1, 2});
      fail("Expected JiBXConstrainedParseException to be thrown");
    } catch (JiBXException e) {
      assertEquals(e, new JiBXConstrainedParseException(null, "abc", enums, "namespace", "tag", null));
    }
  }
View Full Code Here

        "namespace", "tag", "abc"));
    try {
      uctx.parseElementEnumeration("namespace", "tag", enums, new int[] {1, 2}, 1);
      fail("Expected JiBXConstrainedParseException to be thrown");
    } catch (JiBXException e) {
      assertEquals(e, new JiBXConstrainedParseException(null, "abc", enums, "namespace", "tag", null));
    }
  }
View Full Code Here

TOP

Related Classes of org.jibx.runtime.JiBXConstrainedParseException

Copyright © 2018 www.massapicom. 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.