You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2015/12/28 21:34:24 UTC
svn commit: r1721993 -
/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java
Author: schor
Date: Mon Dec 28 20:34:24 2015
New Revision: 1721993
URL: http://svn.apache.org/viewvc?rev=1721993&view=rev
Log:
[UIMA-4673] add /clarify predicates for String and String subtypes; return more specific type instance in one case
Modified:
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java?rev=1721993&r1=1721992&r2=1721993&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/Type.java Mon Dec 28 20:34:24 2015
@@ -22,6 +22,8 @@ package org.apache.uima.cas;
import java.util.List;
import java.util.Vector;
+import org.apache.uima.cas.impl.FeatureImpl;
+
/**
* The interface describing types in the type system.
*
@@ -92,7 +94,7 @@ public interface Type {
* The short, unqualified name of the feature.
* @return The feature, if it exists; <code>null</code>, else.
*/
- Feature getFeatureByBaseName(String featureName);
+ FeatureImpl getFeatureByBaseName(String featureName);
/**
* Check if type is feature final, i.e., if no more new features may be defined for it.
@@ -124,12 +126,18 @@ public interface Type {
/**
* Check if the type is a String subtype.
+ * Note: returns false if a plain string
*
- * @return <code>true</code> iff the type is a String subtype type.
+ * @return <code>true</code> iff the type is a String subtype type; false for plain string
*/
boolean isStringSubtype();
/**
+ * @return true if is a String or a StringSubtype
+ */
+ boolean isStringOrStringSubtype();
+
+ /**
* For array types, returns the component type of the array type. For all other types, it will
* return <code>null</code>.
*