
package org.openbel.framework.core;

import org.openbel.bel.model.BELDocument;
import org.openbel.framework.common.bel.converters.BELDocumentConverter;
import org.openbel.framework.common.model.Document;

public class BELConverterServiceImpl implements BELConverterService {
    private final BELDocumentConverter bdc = new BELDocumentConverter();

    /**
     * {@inheritDoc}
     */
    @Override
    public Document toCommon(BELDocument belDocument) {
        return bdc.convert(belDocument);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BELDocument toBELScript(Document document) {
        return bdc.convert(document);
    }
}
