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()
UIMAException
public static JCas createJCas(String... typeSystemDescriptorNames) throws UIMAException
UIMAException
public static JCas createJCasFromPath(String... typeSystemDescriptorPaths) throws UIMAException
typeSystemDescriptorPaths
- paths to type system descriptor filesUIMAException
public static JCas createJCas(TypeSystemDescription typeSystemDescription) throws UIMAException
UIMAException
public static JCas createJCas(String fileName, TypeSystemDescription typeSystemDescription) throws UIMAException, IOException
fileName
- a file name for the serialized CAS dataUIMAException
IOException
Copyright © 2012–2013 The Apache Software Foundation. All rights reserved.