Package com.volantis.shared.metadata.value

Examples of com.volantis.shared.metadata.value.StringValue


        MutableBooleanValue booleanValue = VALUE_FACTORY.createBooleanValue();
        Collection errors = booleanType.verify(booleanValue);
        assertEquals(0, errors.size());

        // invalid type
        StringValue stringValue = VALUE_FACTORY.createStringValue();
        errors = booleanType.verify(stringValue);
        assertEquals(1, errors.size());
        VerificationError error = (VerificationError) errors.iterator().next();
        assertEquals(VerificationError.TYPE_INVALID_IMPLEMENTATION,
            error.getType());
View Full Code Here


    // Javadoc inherited.
    protected Collection verify(final MetaDataValue value, final String path) {
        final Collection errors = super.verify(value, path);
        if (value instanceof StringValue) {
            final StringValue stringValue = (StringValue) value;
            final String string = stringValue.getValueAsString();
            if (string == null) {
                errors.add(new VerificationError(
                    VerificationError.TYPE_NULL_VALUE, path, value, null,
                    "Value cannot be null."));
            } else {
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.value.StringValue

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.