Examples of parseBoolean()


Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseBoolean()

    }

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)));
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)));
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseBoolean()

    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)));
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)));
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseBoolean()

    @Test
    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)), 0);
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)), 0);
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.impl.XSDDataTypeConverter.parseBoolean()

    @Test
    public void testConvert() throws Exception {
        XSDDataTypeConverter c = new XSDDataTypeConverter();
        assertEquals("123", c.parseAnySimpleType(c.printAnySimpleType("123")));
        assertEquals(true, c.parseBoolean(c.printBoolean(true)));
        assertEquals(false, c.parseBoolean(c.printBoolean(false)));
        assertEquals(123.0, c.parseDouble(c.printDouble(123.0)), 0);
        assertEquals(123.0f, c.parseFloat(c.printFloat(123.0f)), 0);
        assertEquals(64, c.parseByte(c.printByte((byte)64)));
        assertEquals(123, c.parseInt(c.printInt(123)));
        assertEquals(new BigInteger("123456"), c.parseInteger(c.printInteger(new BigInteger("123456"))));
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

    @Test
    public void testBoolean() {
        OWLLiteral literal = Literal(true);
        assertTrue(literal.isBoolean());
        assertTrue(literal.parseBoolean());
        OWLLiteral trueLiteral = Literal("true", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(trueLiteral.isBoolean());
        assertTrue(trueLiteral.parseBoolean());
        OWLLiteral falseLiteral = Literal("false", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(falseLiteral.isBoolean());
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

        OWLLiteral literal = Literal(true);
        assertTrue(literal.isBoolean());
        assertTrue(literal.parseBoolean());
        OWLLiteral trueLiteral = Literal("true", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(trueLiteral.isBoolean());
        assertTrue(trueLiteral.parseBoolean());
        OWLLiteral falseLiteral = Literal("false", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(falseLiteral.isBoolean());
        assertFalse(falseLiteral.parseBoolean());
        OWLLiteral oneLiteral = Literal("1", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(oneLiteral.isBoolean());
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

        OWLLiteral trueLiteral = Literal("true", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(trueLiteral.isBoolean());
        assertTrue(trueLiteral.parseBoolean());
        OWLLiteral falseLiteral = Literal("false", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(falseLiteral.isBoolean());
        assertFalse(falseLiteral.parseBoolean());
        OWLLiteral oneLiteral = Literal("1", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(oneLiteral.isBoolean());
        assertTrue(oneLiteral.parseBoolean());
        OWLLiteral zeroLiteral = Literal("0", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(zeroLiteral.isBoolean());
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

        OWLLiteral falseLiteral = Literal("false", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(falseLiteral.isBoolean());
        assertFalse(falseLiteral.parseBoolean());
        OWLLiteral oneLiteral = Literal("1", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(oneLiteral.isBoolean());
        assertTrue(oneLiteral.parseBoolean());
        OWLLiteral zeroLiteral = Literal("0", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(zeroLiteral.isBoolean());
        assertFalse(zeroLiteral.parseBoolean());
    }
}
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

        OWLLiteral oneLiteral = Literal("1", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(oneLiteral.isBoolean());
        assertTrue(oneLiteral.parseBoolean());
        OWLLiteral zeroLiteral = Literal("0", OWL2Datatype.XSD_BOOLEAN);
        assertTrue(zeroLiteral.isBoolean());
        assertFalse(zeroLiteral.parseBoolean());
    }
}
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLLiteral.parseBoolean()

        for (OWLAnnotationAssertionAxiom aa : aas) {
            if (aa.getProperty().getIRI()
                    .equals(OWLRDFVocabulary.OWL_DEPRECATED.getIRI())) {
                OWLLiteral v = (OWLLiteral) aa.getValue();
                if (v.isBoolean()) {
                    if (v.parseBoolean()) {
                        okDeprecated = true;
                    }
                }
            }
        }
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.