/** * Create a new attribute type. * @param name The name. * @param type The type. * @param mult The multiplicity. * @param def The default value. */ public OAVAttributeType createAttributeType(String name, OAVObjectType type, String mult, Object def, OAVAttributeType idxattr) { if(!tmodel.contains(type)) throw new RuntimeException("Unknown object type: "+type); OAVAttributeType attr = new OAVAttributeType(this, name, type, mult, def, idxattr); addAttributeType(attr); return attr; }
/** * Create a new attribute type. * @param name The name. * @param type The type. * @param mult The multiplicity. * @param def The default value. */ public OAVAttributeType createAttributeType(String name, OAVObjectType type, String mult, Object def) { if(!tmodel.contains(type)) throw new RuntimeException("Unknown object type: "+type); OAVAttributeType attr = new OAVAttributeType(this, name, type, mult, def, null); addAttributeType(attr); return attr; }
/** * Create a new attribute type. * @param name The name. * @param type The type. * @param mult The multiplicity. * @param def The default value. */ public OAVAttributeType createAttributeType(String name, OAVObjectType type, String mult, Object def) { if(!tmodel.contains(type)) throw new RuntimeException("Unknown object type: "+type); OAVAttributeType attr = new OAVAttributeType(this, name, type, mult, def, null); addAttributeType(attr); return attr; }
/** * Create a new attribute type. * @param name The name. * @param type The type. * @param mult The multiplicity. * @param def The default value. */ public OAVAttributeType createAttributeType(String name, OAVObjectType type, String mult, Object def, OAVAttributeType idxattr) { if(!tmodel.contains(type)) throw new RuntimeException("Unknown object type: "+type); OAVAttributeType attr = new OAVAttributeType(this, name, type, mult, def, idxattr); addAttributeType(attr); return attr; }