You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2014/11/15 11:27:14 UTC

svn commit: r1639854 - /uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java

Author: degenaro
Date: Sat Nov 15 10:27:13 2014
New Revision: 1639854

URL: http://svn.apache.org/r1639854
Log:
UIMA-4069 Redesign of JD toward the main goal of classpath separation for container (system) code.

SystemPropertiesHelper - add isRequired() method.

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java?rev=1639854&r1=1639853&r2=1639854&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/config/SystemPropertiesHelper.java Sat Nov 15 10:27:13 2014
@@ -29,11 +29,27 @@ public class SystemPropertiesHelper {
 	}
 	
 	public enum Name {
-		CollectionReaderCfg,
-		CollectionReaderXml,
-		UserClasspath,
-		UserErrorHandlerClassname,
-		UserErrorHandlerCfg,
+		
+		CollectionReaderCfg(false),
+		CollectionReaderXml(true),
+		UserClasspath(true),
+		UserErrorHandlerClassname(false),
+		UserErrorHandlerCfg(false),
+		;
+		
+		private boolean requiredFlag;
+		
+		private Name(boolean requiredFlag) {
+			setRequired(requiredFlag);
+		}
+		
+		private void setRequired(boolean value) {
+			requiredFlag = value;
+		}
+		
+		public boolean isRequired() {
+			return requiredFlag;
+		}
 	}
 	
 	public String getCollectionReaderCfg() {