Search in sources :

Example 1 with JavaScriptForms

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

the class Serialization method reloadForms.

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

Example 2 with JavaScriptForms

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

the class YamlDeserializer method reloadForms.

public JavaScriptForms reloadForms(final Path path, final Module target) throws ReadException {
    final JavaScriptForms forms = new JavaScriptForms(target);
    final FormsDeserializer deserializer = new FormsDeserializer(path, forms);
    deserializer.deserialize();
    DataElementUtils.saveQuiet(forms);
    return forms;
}
Also used : JavaScriptForms(com.developmentontheedge.be5.metadata.model.JavaScriptForms)

Example 3 with JavaScriptForms

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

Aggregations

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