public enum CasLoadMode extends Enum<CasLoadMode>
| Enum Constant and Description | 
|---|
| DEFAULTDefault operation:
 If TSI is available, 
   reinitialize the CAS's type system and its indexes definition, except for Compressed Form 6, 
     using the first TSI in this list:
       - embedded
       - external
     (to do this for Compressed Form 6, specify REINIT)
     Logic for doing embedded before external:
       Examining each serialized form:
         Java Object: if embedded is available, it's the right one, a different one causes 
           exceptions
         XCas, XMI:  doesn't apply - no way to have embedded
         Form 6 - excluded, anyway, see below
         Form 4 and Binary: these require the serialized type system match the CASs, so the 
           embedded one is always right. | 
| LENIENTSame as DEFAULT, except for XMI and XCAS formats:
   Specifies lenient loading for those formats, which means that the 
   load will not indicate an error if the incoming data has types and/or features not in the 
   receiving CAS, but will instead silently ignore these. | 
| REINITUsed for Compressed Form 6 when needing to reset the CAS's type system. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CasLoadMode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static CasLoadMode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final CasLoadMode DEFAULT
public static final CasLoadMode LENIENT
public static final CasLoadMode REINIT
public static CasLoadMode[] values()
for (CasLoadMode c : CasLoadMode.values()) System.out.println(c);
public static CasLoadMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.