public final class JCasFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static JCas |
createJCas()
Creates a new JCas for the automatically derived type system.
|
static JCas |
createJCas(String... typeSystemDescriptorNames)
Creates a new JCas from type system descriptor files found by name
|
static JCas |
createJCas(String fileName,
TypeSystemDescription typeSystemDescription)
This method creates a new JCas and loads the contents of an XMI or XCAS file into it.
|
static JCas |
createJCas(TypeSystemDescription typeSystemDescription)
Create a new JCas for the given type system description
|
static JCas |
createJCasFromPath(String... typeSystemDescriptorPaths)
Creates a new JCas from type system descriptor files.
|
public static JCas createJCas() throws UIMAException
TypeSystemDescriptionFactory.createTypeSystemDescription()UIMAExceptionpublic static JCas createJCas(String... typeSystemDescriptorNames) throws UIMAException
UIMAExceptionpublic static JCas createJCasFromPath(String... typeSystemDescriptorPaths) throws UIMAException
typeSystemDescriptorPaths - paths to type system descriptor filesUIMAExceptionpublic static JCas createJCas(TypeSystemDescription typeSystemDescription) throws UIMAException
UIMAExceptionpublic static JCas createJCas(String fileName, TypeSystemDescription typeSystemDescription) throws UIMAException, IOException
fileName - a file name for the serialized CAS dataUIMAExceptionIOExceptionCopyright © 2012–2013 The Apache Software Foundation. All rights reserved.