Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

org::apache::uima::util::CasCopier Class Reference

Collaboration diagram for org::apache::uima::util::CasCopier:
Collaboration graph

List of all members.

Public Member Functions

boolean alreadyCopied (FeatureStructure aFS)
 CasCopier (CAS aSrcCas, CAS aDestCas)
void copyCasView (CAS aSrcCasView, boolean aCopySofa)
FeatureStructure copyFs (FeatureStructure aFS)

Static Public Member Functions

static void copyCas (CAS aSrcCas, CAS aDestCas, boolean aCopySofa)

Private Member Functions

FeatureStructure copyArray (FeatureStructure aSrcFs)
void copyFeatures (FeatureStructure aSrcFS, FeatureStructure aDestFS)

Static Private Member Functions

static CAS getOrCreateView (CAS aCas, String aViewName)
static boolean isDocumentAnnotation (FeatureStructure aFS)

Private Attributes

CAS mDestCas
Feature mDestSofaFeature
Map< FeatureStructure,
mFsMap = new HashMap<FeatureStructure, FeatureStructure>()
LowLevelCAS mLowLevelDestCas
CAS mSrcCas

Detailed Description

Utility class for doing deep copies of FeatureStructures from one CAS to another. To handle cases where the source CAS has multiple references to the same FS, you can create one instance of CasCopier and use it to copy multiple FeatureStructures. The CasCopier will remember previously copied FeatureStructures, so if you later copy another FS that has a reference to a previously copied FS, it will not duplicate the multiply-referenced FS.

Definition at line 55 of file CasCopier.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index