[Jiemamy-notify:1929] commit [3095] リファクタリング

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 4月 4日 (土) 15:45:54 JST


Revision: 3095
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3095
Author:   j5ik2o
Date:     2009-04-04 15:45:54 +0900 (Sat, 04 Apr 2009)

Log Message:
-----------
リファクタリング

Modified Paths:
--------------
    charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/EntityMetaReaderContext.java


-------------- next part --------------
Modified: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/EntityMetaReaderContext.java
===================================================================
--- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/EntityMetaReaderContext.java	2009-04-04 06:45:13 UTC (rev 3094)
+++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/EntityMetaReaderContext.java	2009-04-04 06:45:54 UTC (rev 3095)
@@ -20,9 +20,10 @@
 
 import java.io.File;
 import java.util.List;
+import java.util.regex.Pattern;
 
 /**
- * {@link EntityMetaReader}のコンテキスト。
+ * {@link EntityMetaReader}のコンテキストクラス。
  * 
  * @author j5ik2o
  */
@@ -34,9 +35,9 @@
 	
 	EntityMetaFactory entityMetaFactory;
 	
-	List<String> shortClassNamePatterns;
+	List<Pattern> shortClassNamePatterns;
 	
-	List<String> ignoreShortClassNamePatterns;
+	List<Pattern> ignoreShortClassNamePatterns;
 	
 	boolean readComment;
 	
@@ -45,25 +46,15 @@
 	String javaFileEncoding;
 	
 
-	/**
-	 * TODO for kato
-	 * 
-	 * @return
-	 */
 	public List<File> getClassPathDirs() {
 		return classPathDirs;
 	}
 	
-	/**
-	 * TODO for kato
-	 * 
-	 * @return
-	 */
 	public EntityMetaFactory getEntityMetaFactory() {
 		return entityMetaFactory;
 	}
 	
-	public List<String> getIgnoreShortClassNamePattern() {
+	public List<Pattern> getIgnoreShortClassNamePatterns() {
 		return ignoreShortClassNamePatterns;
 	}
 	
@@ -79,24 +70,32 @@
 		return packageName;
 	}
 	
+	public List<Pattern> getShortClassNamePatterns() {
+		return shortClassNamePatterns;
+	}
+	
 	public boolean isReadComment() {
 		return readComment;
 	}
 	
-	public void setClassPathDirs(List<File> classpathDirs) {
-		classPathDirs = classpathDirs;
+	public void setClassPathDirs(List<File> classPathDirs) {
+		this.classPathDirs = classPathDirs;
 	}
 	
 	public void setEntityMetaFactory(EntityMetaFactory entityMetaFactory) {
 		this.entityMetaFactory = entityMetaFactory;
 	}
 	
+	public void setIgnoreShortClassNamePatterns(List<Pattern> ignoreShortClassNamePatterns) {
+		this.ignoreShortClassNamePatterns = ignoreShortClassNamePatterns;
+	}
+	
 	public void setJavaFileEncoding(String javaFileEncoding) {
 		this.javaFileEncoding = javaFileEncoding;
 	}
 	
-	public void setJavaFileSrcDirs(List<File> javaFileSrcDirList) {
-		javaFileSrcDirs = javaFileSrcDirList;
+	public void setJavaFileSrcDirs(List<File> javaFileSrcDirs) {
+		this.javaFileSrcDirs = javaFileSrcDirs;
 	}
 	
 	public void setPackageName(String packageName) {
@@ -107,4 +106,8 @@
 		this.readComment = readComment;
 	}
 	
+	public void setShortClassNamePatterns(List<Pattern> shortClassNamePatterns) {
+		this.shortClassNamePatterns = shortClassNamePatterns;
+	}
+	
 }



Jiemamy-notify メーリングリストの案内
アーカイブの一覧に戻る