01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.core.mapping;
18:
19: /**
20: * An alias mapping is a mapping that is associated with an alias.
21: *
22: * @author kimchy
23: */
24: public interface AliasMapping extends MultipleMapping {
25:
26: /**
27: * Performs a shalow copy of this mapping, not including any internal mappings
28: * belonging to {@link MultipleMapping}.
29: */
30: AliasMapping shallowCopy();
31:
32: /**
33: * Returns the alias this mapping is associated with.
34: */
35: String getAlias();
36:
37: /**
38: * Sets the alias this mapping is associated with.
39: */
40: void setAlias(String alias);
41:
42: /**
43: * Returns a list of aliases that this alias extends.
44: */
45: String[] getExtendedAliases();
46:
47: /**
48: * Sets a list of aliases that this alias extends.
49: */
50: void setExtendedAliases(String[] extendedMappings);
51:
52: /**
53: * Returns a list of all the aliases that extend this mapping. Note,
54: * this is a list of all the aliases down the food chain, not just the
55: * first ones.
56: */
57: String[] getExtendingAliases();
58:
59: /**
60: * Sets a list of all the aliases that extend this mapping. Note,
61: * this is a list of all the aliases down the food chain, not just the
62: * first ones.
63: */
64: void setExtendingAliases(String[] extendingAliases);
65:
66: String getAnalyzer();
67:
68: void setAnalyzer(String analyzer);
69: }
|