* @throws IOException
*/
private void exportReferences(Set<String> references, EPackage ePackage, Writer rsf) throws IOException {
for (EClassifier clsfr : ePackage.getEClassifiers()) {
if (clsfr instanceof EClass) {
EClass cls = (EClass) clsfr;
for (EReference ref : cls.getEAllReferences()) {
if (!references.contains(ref.getName())) {
references.add(ref.getName());
rsf.write(getReferenceName(ref));
rsf.write(" \"null\" \"null\"\n");
}
}
for (EAttribute attr : cls.getEAllAttributes()) {
if (!references.contains(attr.getName())) {
references.add(attr.getName());
rsf.write(getAttributeName(attr));
rsf.write(" \"null\" \"null\"\n");
}