aMetaData.setName(getDefaultName(aComponentClass)); aMetaData.setVendor(getDefaultVendor(aComponentClass)); aMetaData.setVersion(getDefaultVersion(aComponentClass)); } else { aMetaData.setName(emptyAsNull(componentAnno.name())); aMetaData.setVendor(emptyAsNull(componentAnno.vendor())); aMetaData.setVersion(emptyAsNull(componentAnno.version()));
/** * Sets the version. * * @param name the new version */ public void setVersion(String name) { if (editor.isLocalProcessingDescriptor()) editor.getAeDescription().getMetaData().setVersion(name); else if (editor.isTypeSystemDescriptor()) editor.getTypeSystemDescription().setVersion(name); else if (editor.isTypePriorityDescriptor()) editor.getTypePriorities().setVersion(name); else if (editor.isFsIndexCollection()) editor.getFsIndexCollection().setVersion(name); else if (editor.isExtResAndBindingsDescriptor()) editor.getExtResAndBindings().setVersion(name); else throw new InternalErrorCDE("invalid state"); }