use of org.molgenis.data.meta.system.SystemAttribute in project molgenis by molgenis.
the class SystemEntityType method addAttribute.
public Attribute addAttribute(String attrName, AttributeRole... attrTypes) {
Attribute attr = new SystemAttribute(attributeFactory.getAttributeMetadata());
attr.setIdentifier(idGenerator.generateId());
attr.setDefaultValues();
attr.setName(attrName);
addAttribute(attr, attrTypes);
return attr;
}
Aggregations