01: /*
02: * Copyright 2007 Werner Guttmann
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: package org.exolab.castor.builder.conflict.strategy;
17:
18: import org.exolab.castor.builder.SourceGenerator;
19: import org.exolab.castor.xml.schema.Annotated;
20: import org.exolab.javasource.JClass;
21:
22: /**
23: * Class name conflict resolver.
24: *
25: * @author <a href="mailto:werner DOT guttmann AT gmx DOT net">Werner Guttmann</a>
26: */
27: public interface ClassNameConflictResolver {
28:
29: /**
30: * Changes the JClass' internal class name, as a result of an XPATH
31: * expression uniquely identifying an XML artefact within an XML schema.
32: *
33: * @param jClass
34: * The {@link JClass} instance whose local name should be
35: * changed.
36: * @param xpath
37: * XPATH expression used to defer the new local class name
38: * @param typedXPath
39: * XPATH expression used to defer the new local class name
40: * @param annotated {@link Annotated} instance
41: */
42: void changeClassInfoAsResultOfConflict(final JClass jClass,
43: final String xpath, String typedXPath, Annotated annotated);
44:
45: /**
46: * Sets the calling {@link SourceGenerator} instance.
47: * @param sourceGenerator The calling {@link SourceGenerator} instance.
48: */
49: void setSourceGenerator(final SourceGenerator sourceGenerator);
50:
51: }
|