public class JCasRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static Class<? extends TOP> |
getClassForIndex(int aIndex)
Used for error message:
When a particular loaded type system is missing the type that corresponds to a loaded JCas class
(perhaps that class was loaded when another type system was being used, or
it was just referred to in Java code (which causes it to be loaded)
then the error message uses this to get the class to be able to print the class name
Gets the JCas cover class for a given index.
|
static boolean |
getFeatOkTst(String fullyQualTypeName)
For a particular type, return true if that type should have run-time checking for use of fields
defined in the JCas Model which are not present in the CAS.
|
static int |
getNumberOfRegisteredClasses()
NOT CURRENTLY USED
Gets the number of cover classes that have been registered.
|
static int |
register(Class<? extends TOP> aJCasCoverClass)
Registers a JCas cover class with this registry.
|
public static int register(Class<? extends TOP> aJCasCoverClass)
aJCasCoverClass
- the class to registerpublic static boolean getFeatOkTst(String fullyQualTypeName)
This is reserved for future use; it currently always returns true.
fullyQualTypeName
- fully qualified type namepublic static int getNumberOfRegisteredClasses()
public static Class<? extends TOP> getClassForIndex(int aIndex)
aIndex
- the indexaIndex
during its
registration, null
if none.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.