01: /*
02: * Copyright 2007 Bastian Schenke Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */
10: package nz.org.take.r2ml;
11:
12: import nz.org.take.Variable;
13:
14: import de.tu_cottbus.r2ml.PlainLiteral;
15: import de.tu_cottbus.r2ml.RuleSet;
16: import de.tu_cottbus.r2ml.RuleText;
17:
18: /**
19: * @author Bastian Schenke (bastian.schenke@googlemail.com)
20: *
21: */
22: public interface XmlTypeHandler {
23:
24: /**
25: * Name of the equals method of the targetlanguage. for instance <code>equals()</code> for Java
26: */
27: public static String EQUALITY_CHECK_METHOD = "equals";
28:
29: /**
30: * Annotation key for the namespace of a QName identifying a variable.
31: */
32: public static final String VARIABLE_QUALIFIED_NAME_NS = Variable.class
33: .getCanonicalName()
34: + ".qname.ns";
35: /**
36: * Annotation key for the local part of a QName identifying a variable.
37: */
38: //public static final String VARIABLE_QUALIFIED_NAME_LP = Variable.class.getCanonicalName() + ".qname.lp";
39: public static final String PLAIN_LITERAL_LANGUAGE_TAG_KEY = PlainLiteral.class
40: .getCanonicalName()
41: + ".languageTag";
42: public static final String RULE_SET_ID_KEY = RuleSet.class
43: .getCanonicalName()
44: + ".ruleSetId";
45:
46: public static final String RULE_TEXT_KEY = RuleText.class
47: .getCanonicalName();
48: public static final String RULE_TEXT_FORMAT_KEY = RuleText.class
49: .getCanonicalName()
50: + ".format";
51: public static final String RULE_TEXT_DIAGRAM_KEY = RuleText.class
52: .getCanonicalName()
53: + ".diagram";
54: public static final String RULE_TEXT_VOCABULARY_DIAGRAM_KEY = RuleText.class
55: .getCanonicalName()
56: + "vocabulary.diagram";
57:
58: /**
59: * @param obj
60: * @return
61: * @throws R2MLException
62: */
63: Object importObject(Object obj) throws R2MLException;
64:
65: }
|