AbstractMapping.java
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* 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;
}
}