Examples of asChar()


Examples of com.fasterxml.storemate.shared.compress.Compression.asChar()

    }

    protected ItemInfo defaultItemInfoFromStorable(Storable raw) {
        Compression c = raw.getCompression();
        Character compression = (c == null || c == Compression.NONE) ? null
                : Character.valueOf(c.asChar());
        long compLen = (compression == null) ? -1L : raw.getStorageLength();
        StringBuilder sb = new StringBuilder(4);
        if (raw.isDeleted()) {
            sb.append(ItemInfo.FLAG_DELETED);
        }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.domainobjects.ScalarValueRepresentation.asChar()

        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is(nullValue()));
        assertThat(property.getXIsisFormat(), is("char"));
        scalarRepr = property.getRepresentation("value").as(ScalarValueRepresentation.class);
        assertThat(scalarRepr.isString(), is(true));
        Character charValue = scalarRepr.asChar();
        assertThat(charValue, is('a'));
       
        property = domainObjectRepr.getProperty("floatProperty");
        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is("decimal"));
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.domainobjects.ScalarValueRepresentation.asChar()

        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is(nullValue()));
        assertThat(property.getXIsisFormat(), is("char"));
        scalarRepr = property.getRepresentation("value").as(ScalarValueRepresentation.class);
        assertThat(scalarRepr.isString(), is(true));
        Character charValue = scalarRepr.asChar();
        assertThat(charValue, is('a'));
       
        property = domainObjectRepr.getProperty("floatProperty");
        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is("decimal"));
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.domainobjects.ScalarValueRepresentation.asChar()

        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is(nullValue()));
        assertThat(property.getXIsisFormat(), is("char"));
        scalarRepr = property.getRepresentation("value").as(ScalarValueRepresentation.class);
        assertThat(scalarRepr.isString(), is(true));
        Character charValue = scalarRepr.asChar();
        assertThat(charValue, is('a'));
       
        property = domainObjectRepr.getProperty("floatProperty");
        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is("decimal"));
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.domainobjects.ScalarValueRepresentation.asChar()

        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is(nullValue()));
        assertThat(property.getXIsisFormat(), is("char"));
        scalarRepr = property.getRepresentation("value").as(ScalarValueRepresentation.class);
        assertThat(scalarRepr.isString(), is(true));
        Character charValue = scalarRepr.asChar();
        assertThat(charValue, is('a'));
       
        property = domainObjectRepr.getProperty("floatProperty");
        assertThat(property.getMemberType(), is("property"));
        assertThat(property.getFormat(), is("decimal"));
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.