Package org.apache.axis.types

Examples of org.apache.axis.types.NCName


    /**
     * Run a failure test.  value should be invalid.
     */
    private void runFailTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertNull(
                "NCName validation restriction failed. did not restrict bad value [" +
View Full Code Here


    /**
     * Run a successful test.  value should be valid.
     */
    private void runPassTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertEquals("NCName strings not equal. orig value:" + value, oToken.toString(), value);
    }
View Full Code Here

                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

                    new Name(":Braves"),true);
    }

    public void testNCName() throws Exception {
        deserialize("<result xsi:type=\"xsd:NCName\">_Atlanta.Braves</result>",
                    new NCName("_Atlanta.Braves"),true);
    }
View Full Code Here

    /**
     * Run a failure test.  value should be invalid.
     */
    private void runFailTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertNull(
                "NCName validation restriction failed. did not restrict bad value [" +
View Full Code Here

    /**
     * Run a successful test.  value should be valid.
     */
    private void runPassTest(String value) throws Exception {
        NCName oToken = null;
        try {
            oToken = new NCName(value);
        }
        catch (Exception e) { // catch the validation exception
        }
        assertEquals("NCName strings not equal. orig value:" + value, oToken.toString(), value);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.types.NCName

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.