Search in sources :

Example 1 with MassChanges

use of com.developmentontheedge.be5.metadata.model.MassChanges in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadMassChanges.

public static MassChanges reloadMassChanges(final Path file, final Module application) throws ReadException {
    checkProject(application.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadMassChanges(file, application);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 2 with MassChanges

use of com.developmentontheedge.be5.metadata.model.MassChanges 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);
}
Also used : ProjectFileSystem(com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)

Example 3 with MassChanges

use of com.developmentontheedge.be5.metadata.model.MassChanges in project be5 by DevelopmentOnTheEdge.

the class YamlDeserializer method reloadMassChanges.

public MassChanges reloadMassChanges(final Path path, final Module application) throws ReadException {
    final MassChanges massChanges = application.newMassChangeCollection();
    final MassChangesDeserializer massChangesDeserializer = new MassChangesDeserializer(path, massChanges);
    massChangesDeserializer.deserialize();
    DataElementUtils.saveQuiet(massChangesDeserializer.getResult());
    return massChangesDeserializer.getResult();
}
Also used : MassChanges(com.developmentontheedge.be5.metadata.model.MassChanges)

Aggregations

MassChanges (com.developmentontheedge.be5.metadata.model.MassChanges)1 ProjectFileSystem (com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)1 YamlDeserializer (com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)1