Package org.openengsb.core.api.descriptor.AttributeDefinition

Examples of org.openengsb.core.api.descriptor.AttributeDefinition.Builder.asBoolean()


        if (type.isPrimitive() || type.isEnum() || hasStringOnlyConstructor(type)) {
            Builder builder = AttributeDefinition.builder(new PassThroughStringLocalizer());
            MethodUtil.addEnumValues(type, builder);
            builder.id("value").name("value");
            if (type.equals(boolean.class) || type.equals(Boolean.class)) {
                builder.asBoolean();
            }
            AbstractField<?> field = AttributeEditorUtil.createEditorField("valueEditor", new IModel<String>() {
                @Override
                public void detach() {
                    // not required
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.