public class Sofa extends TOP implements org.apache.uima.cas.impl.SofaFSImpl
Modifier and Type | Field and Description |
---|---|
static String |
_FeatName_mimeType |
static String |
_FeatName_sofaArray |
static String |
_FeatName_sofaID |
static String |
_FeatName_sofaNum |
static String |
_FeatName_sofaString |
static String |
_FeatName_sofaURI |
static String |
_TypeName |
static int |
type |
static int |
typeIndexID |
_singleton
Modifier | Constructor and Description |
---|---|
protected |
Sofa() |
|
Sofa(org.apache.uima.cas.impl.TypeImpl t,
org.apache.uima.cas.impl.CASImpl c)
used by generator, not used
Make a new Sofa
|
|
Sofa(org.apache.uima.cas.impl.TypeImpl t,
org.apache.uima.cas.impl.CASImpl c,
int sofaNum,
String viewName,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
FeatureStructure |
getLocalFSData()
Get the Local Subject of Analysis returns null if not previously set.
|
String |
getLocalStringData()
Get the Local Subject of Analysis returns null if not previously set.
|
String |
getMimeType()
getter for mimeType - gets
|
TOP |
getSofaArray()
These getter methods are for creating method handle access
The getter name must match the feature name + transformation
- used in generic pretty printing routines
|
InputStream |
getSofaDataStream()
Provides stream access to both local and remote Sofa data.
|
String |
getSofaID()
getter for sofaID
|
String |
getSofaMime()
Get the Sofa mime type.
|
int |
getSofaNum()
getter for sofaNum
|
int |
getSofaRef()
Get the Sofa Ref value.
|
String |
getSofaString() |
String |
getSofaURI()
Get the Sofa URI value.
|
int |
getTypeIndexID() |
boolean |
isSofaDataSet() |
void |
setFeatureValue(Feature feat,
FeatureStructure fs)
Set a feature value to another FS.
|
void |
setIntValue(Feature feat,
Integer val) |
void |
setLocalSofaData(FeatureStructure aFS)
Set the Local Subject of Analysis to be a predefined ArrayFS.
|
void |
setLocalSofaData(FeatureStructure aFS,
String mimeType) |
void |
setLocalSofaData(String aString)
Set the Local Subject of Analysis to be a String.
|
void |
setLocalSofaData(String aString,
String mimeType) |
void |
setLocalSofaDataNoDocAnnotUpdate(String aString)
Internal use: used by deserializers
|
void |
setMimeType(String v) |
void |
setRemoteSofaURI(String aURI)
Set the URI for a Remote Subject of Analysis.
|
void |
setRemoteSofaURI(String aURI,
String mimeType) |
void |
setStringValue(Feature feat,
String val)
Set the string value of a feature.
|
_createJCasHashMapReserve, _createSearchKey
_copyIntAndRefArraysEqTypesFrom, _copyIntAndRefArraysFrom, _copyIntArrayEqTypesFrom, _getBooleanValueNc, _getBooleanValueNc, _getByteValueNc, _getByteValueNc, _getDoubleValueNc, _getDoubleValueNc, _getFeatFromAdjOffset, _getFeatureValueNc, _getFeatureValueNc, _getFloatValueNc, _getFloatValueNc, _getIntLikeValue, _getIntValueNc, _getIntValueNc, _getLongValueNc, _getLongValueNc, _getRefValueCommon, _getShortValueNc, _getShortValueNc, _getStringValueNc, _getStringValueNc, _getTypeCode, _getTypeImpl, _getView, _id, _inSetSortedIndex, _isJCasHashMapReserve, _isPearTrampoline, _maybeGetBaseForPearFs, _maybeGetBaseForPearFs, _maybeGetPearFs, _maybeGetPearFs, _resetInSetSortedIndex, _setBooleanValueNcNj, _setBooleanValueNcNj, _setBooleanValueNfc, _setByteValueNcNj, _setByteValueNcNj, _setByteValueNfc, _setDoubleValueNcNj, _setDoubleValueNcNj, _setDoubleValueNfc, _setFeatureValueNcNj, _setFeatureValueNcNj, _setFeatureValueNcWj, _setFloatValueNcNj, _setFloatValueNcNj, _setFloatValueNfc, _setInSetSortedIndexed, _setIntLikeValue, _setIntLikeValueNcNj, _setIntValueCJ, _setIntValueNcNj, _setIntValueNcNj, _setIntValueNfc, _setIntValueNfcCJ, _setJCasHashMapReserve, _setLongValueCJ, _setLongValueNcNj, _setLongValueNcNj, _setLongValueNfc, _setLongValueNfcCJ, _setPearTrampoline, _setRefValueCJ, _setRefValueCommon, _setRefValueCommonWj, _setRefValueNfcCJ, _setShortValueNcNj, _setShortValueNcNj, _setShortValueNfc, _setStringValueNcNj, _setStringValueNcWj, _setStringValueNfc, _setTypeImpl, addStringOrPrimitive, addToIndexes, addToIndexes, addToIndexes, clone, compare, equals, getAddress, getBooleanValue, getByteValue, getCAS, getCASImpl, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getLowLevelCas, getShortValue, getStringValue, getType, hashCode, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrintShort, removeFromIndexes, removeFromIndexes, removeFromIndexes, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, toShortString, toString, toString, wrapGetIntCatchException
finalize, getClass, notify, notifyAll, wait, wait, wait
_getTypeCode, _id, clone, equals, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue
public static final String _TypeName
public static final String _FeatName_sofaNum
public static final String _FeatName_sofaID
public static final String _FeatName_mimeType
public static final String _FeatName_sofaArray
public static final String _FeatName_sofaString
public static final String _FeatName_sofaURI
public static final int typeIndexID
public static final int type
protected Sofa()
public Sofa(org.apache.uima.cas.impl.TypeImpl t, org.apache.uima.cas.impl.CASImpl c)
c
- -t
- -public int getTypeIndexID()
getTypeIndexID
in class TOP
public int getSofaNum()
getSofaNum
in interface SofaFS
public String getSofaID()
public String getMimeType()
public void setLocalSofaData(FeatureStructure aFS)
SofaFS
setLocalSofaData
in interface SofaFS
aFS
- the SofAThis method is duplicated in
SofaFSImpl. Any changes should be made in both places.
aFS must be an array
public void setLocalSofaData(FeatureStructure aFS, String mimeType)
public void setLocalSofaData(String aString)
SofaFS
setLocalSofaData
in interface SofaFS
aString
- The subject of analysisSofaFS.setLocalSofaData(String)
public void setLocalSofaDataNoDocAnnotUpdate(String aString)
aString
- the string to updatepublic FeatureStructure getLocalFSData()
SofaFS
getLocalFSData
in interface SofaFS
returns an UIMA Array whose data represents the sofa
public String getLocalStringData()
SofaFS
getLocalStringData
in interface SofaFS
SofaFS.getLocalStringData()
public void setRemoteSofaURI(String aURI)
SofaFS
setRemoteSofaURI
in interface SofaFS
aURI
- the URI for a remote SofaThis method is duplicated in
SofaFSImpl. Any changes should be made in both places.
public boolean isSofaDataSet()
public String getSofaMime()
SofaFS
getSofaMime
in interface SofaFS
public String getSofaURI()
SofaFS
getSofaURI
in interface SofaFS
public int getSofaRef()
SofaFS
getSofaRef
in interface SofaFS
public InputStream getSofaDataStream()
SofaFS
getSofaDataStream
in interface SofaFS
public TOP getSofaArray()
public String getSofaString()
public void setStringValue(Feature feat, String val)
FeatureStructure
setStringValue
in interface FeatureStructure
setStringValue
in class org.apache.uima.cas.impl.FeatureStructureImplC
feat
- The feature whose value we want to set.val
- The string we're setting the feature to.public void setFeatureValue(Feature feat, FeatureStructure fs)
FeatureStructure
setFeatureValue
in interface FeatureStructure
setFeatureValue
in class org.apache.uima.cas.impl.FeatureStructureImplC
feat
- The feature whose value should be set.fs
- The value FS.public void setMimeType(String v)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.