use of com.developmentontheedge.be5.metadata.exception.WriteException in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final MassChanges massChanges) throws WriteException {
this.fileSystem = new ProjectFileSystem(massChanges.getProject());
new MassChangesSerializer().serialize(massChanges);
}
use of com.developmentontheedge.be5.metadata.exception.WriteException in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final JavaScriptForms forms) throws WriteException {
this.fileSystem = new ProjectFileSystem(forms.getProject());
new FormsSerializer().serialize(forms);
}
use of com.developmentontheedge.be5.metadata.exception.WriteException in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serializeSources.
private void serializeSources(final Project project) throws WriteException {
for (SourceFileCollection collection : project.getApplication().getSourceFiles()) {
for (final SourceFile file : collection) {
if (!file.isLoaded())
continue;
try {
fileSystem.writeSourceFile(collection.getName(), file.getName(), file.getSource());
file.setLinkedFile(fileSystem.getNameSpaceFile(collection.getName(), file.getName()));
} catch (final IOException e) {
throw new WriteException(file, e);
}
}
}
}
use of com.developmentontheedge.be5.metadata.exception.WriteException in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final BeConnectionProfiles connectionProfiles) throws WriteException {
this.fileSystem = new ProjectFileSystem(connectionProfiles.getProject());
new ConnectionProfilesSerializer().serialize(connectionProfiles.getType(), connectionProfiles);
}
use of com.developmentontheedge.be5.metadata.exception.WriteException in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serializeApplication.
private Object serializeApplication(final Module application, boolean serializeReferencedFiles) throws WriteException {
final List<Object> serializedEntities = list();
final Iterable<Entity> entities = application.getEntities();
for (final Entity entity : entities) {
if (serializeReferencedFiles)
new EntitySerializer().serialize(entity);
serializedEntities.add(entity.getName());
}
return serializedEntities;
}
Aggregations