01: package org.compass.core.mapping;
02:
03: /**
04: * A helper resource mapping class that marks the resource mapping as null
05: * (i.e. no resource mapping for you!).
06: *
07: * @author kimchy
08: */
09: public class NullResourceMapping extends AbstractResourceMapping {
10:
11: protected void doPostProcess() throws MappingException {
12: }
13:
14: public Mapping copy() {
15: return null;
16: }
17:
18: public AliasMapping shallowCopy() {
19: return null;
20: }
21:
22: public ResourcePropertyMapping[] getResourcePropertyMappings() {
23: return new ResourcePropertyMapping[0];
24: }
25:
26: public ResourcePropertyMapping getResourcePropertyMappingByDotPath(
27: String path) {
28: return null;
29: }
30: }
|