/** * Create a type. * Creates a type that can be used to create objects. * @param name The type name. * @return The type. */ public OAVObjectType createType(String name) { return createType(name, null); }
/** * Create a type. * Creates a type that can be used to create objects. * @param name The type name. * @return The type. */ public OAVObjectType createType(String name) { return createType(name, null); }
OAVObjectType message_type = helloworld_type_model.createType("message"); final OAVAttributeType message_has_text = message_type.createAttributeType("message_has_text", OAVJavaType.java_string_type);
final OAVObjectType fibo_type = fibonacci_type_model.createType("fibo_type"); final OAVAttributeType fibo_has_value = fibo_type.createAttributeType("fibo_has_value", OAVJavaType.java_long_type); final OAVAttributeType fibo_has_sequence = fibo_type.createAttributeType("fibo_has_sequence", OAVJavaType.java_integer_type);