01: package org.compass.core.mapping.xsem;
02:
03: import org.compass.core.Property;
04: import org.compass.core.mapping.Mapping;
05: import org.compass.core.mapping.ResourceIdMappingProvider;
06: import org.compass.core.mapping.ResourcePropertyMapping;
07:
08: /**
09: * @author kimchy
10: */
11: public class XmlIdMapping extends XmlPropertyMapping implements
12: ResourceIdMappingProvider {
13:
14: public Mapping[] getIdMappings() {
15: return getResourceIdMappings();
16: }
17:
18: public ResourcePropertyMapping[] getResourceIdMappings() {
19: return new ResourcePropertyMapping[] { this };
20: }
21:
22: public Property.Index getIndex() {
23: return Property.Index.UN_TOKENIZED;
24: }
25:
26: public Property.Store getStore() {
27: return Property.Store.YES;
28: }
29:
30: public boolean isOverrideByName() {
31: return true;
32: }
33:
34: public Mapping copy() {
35: XmlIdMapping copy = new XmlIdMapping();
36: copy(copy);
37: return copy;
38: }
39:
40: }
|