Search in sources :

Example 1 with JSONPrettyPrinterVisitor

use of org.whole.lang.json.visitors.JSONPrettyPrinterVisitor in project whole by wholeplatform.

the class JSONPersistenceDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addOperationFactory(JSONLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            return new JSONPrettyPrinterVisitor((PrettyPrinterOperation) operation);
        }
    });
    platform.addPersistenceKit("org.whole.lang.json.JSONSourceEditor", JSONSourcePersistenceKit.instance());
    platform.addPersistenceKit("org.whole.lang.json.JSONLDEditor", JSONLDPersistenceKit.instance());
}
Also used : IOperation(org.whole.lang.operations.IOperation) PrettyPrinterOperation(org.whole.lang.operations.PrettyPrinterOperation) IVisitor(org.whole.lang.visitors.IVisitor) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory) JSONPrettyPrinterVisitor(org.whole.lang.json.visitors.JSONPrettyPrinterVisitor)

Aggregations

JSONPrettyPrinterVisitor (org.whole.lang.json.visitors.JSONPrettyPrinterVisitor)1 IOperation (org.whole.lang.operations.IOperation)1 PrettyPrinterOperation (org.whole.lang.operations.PrettyPrinterOperation)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1