Repositories.instance().getImplementation(encoding).writeModel(element,
outputLocation, xmiVersion);
}
private Property addAttribute(Class c, String name, Type type, String timestampFormat, String dateFormat, String length, String fraction) {
Property p = c.createOwnedAttribute(name, type, 1, 1);
p.setVisibility(VisibilityKind.PUBLIC_LITERAL);
setTagValue(p, "timestampFormat", timestampFormat);
setTagValue(p, "dateFormat", dateFormat);
setTagValue(p, "length", length);
setTagValue(p, "fraction", fraction);
return p;