You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by jg...@apache.org on 2008/02/27 03:58:38 UTC
svn commit: r631471 -
/ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java
Author: jgbutler
Date: Tue Feb 26 18:58:35 2008
New Revision: 631471
URL: http://svn.apache.org/viewvc?rev=631471&view=rev
Log:
Abator: Another class for the comment generator (unbreak the build)
Added:
ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java
Added: ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java?rev=631471&view=auto
==============================================================================
--- ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java (added)
+++ ibatis/trunk/java/mapper/mapper2/tools/abator/core/src/org/apache/ibatis/abator/config/CommentGeneratorConfiguration.java Tue Feb 26 18:58:35 2008
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2008 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ibatis.abator.config;
+
+import org.apache.ibatis.abator.api.dom.xml.Attribute;
+import org.apache.ibatis.abator.api.dom.xml.XmlElement;
+
+/**
+ * @author Jeff Butler
+ *
+ */
+public class CommentGeneratorConfiguration extends TypedPropertyHolder {
+
+ /**
+ *
+ */
+ public CommentGeneratorConfiguration() {
+ }
+
+ public XmlElement toXmlElement() {
+ XmlElement answer = new XmlElement("commentGenerator"); //$NON-NLS-1$
+ if (getConfigurationType() != null) {
+ answer.addAttribute(new Attribute("type", getConfigurationType())); //$NON-NLS-1$
+ }
+
+ addPropertyXmlElements(answer);
+
+ return answer;
+ }
+}