AbstractMapping.java 1.01 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  javax.jcr.Node
 *  javax.jcr.Property
 *  javax.jcr.RepositoryException
 */
package com.day.crx.explorer.impl.j2ee.mapping;

import com.day.crx.explorer.impl.j2ee.mapping.Mapping;
import javax.jcr.Node;
import javax.jcr.Property;
import javax.jcr.RepositoryException;

public abstract class AbstractMapping
implements Mapping {
    public static final String CRX_PATH = "crx:path";
    public static final String CRX_INCLUDE_PROPERTIES = "crx:includeProperties";
    private String path;
    private boolean includeProps;

    public AbstractMapping(Node def) throws RepositoryException {
        this.path = def.getProperty("crx:path").getString();
        this.includeProps = def.getProperty("crx:includeProperties").getBoolean();
    }

    public String toString() {
        return " -> " + this.path;
    }

    public String getPath() {
        return this.path;
    }

    public boolean isIncludeProps() {
        return this.includeProps;
    }
}