public class SofaFSImpl extends FeatureStructureImplC implements SofaFS
SofaFS
interface.addr, casImpl
Constructor and Description |
---|
SofaFSImpl(int addr,
CASImpl cas) |
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.
|
InputStream |
getSofaDataStream()
Provides stream access to both local and remote Sofa data.
|
String |
getSofaID()
Get the Sofa globally unique name, after mapping.
|
String |
getSofaMime()
Get the Sofa mime type.
|
int |
getSofaRef()
Get the Sofa Ref value.
|
String |
getSofaURI()
Get the Sofa URI value.
|
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(String aString)
Set the Local Subject of Analysis to be a String.
|
void |
setRemoteSofaURI(String aURI)
Set the URI for a Remote Subject of Analysis.
|
void |
setStringValue(Feature feat,
String val)
Set the string value of a feature.
|
equals, getAddress, getCAS, getCASImpl, hashCode
clone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, toString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue
public SofaFSImpl(int addr, CASImpl cas)
public void setLocalSofaData(FeatureStructure aFS)
SofaFS
setLocalSofaData
in interface SofaFS
aFS
- the SofAThis method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
public void setLocalSofaData(String aString)
SofaFS
setLocalSofaData
in interface SofaFS
aString
- The subject of analysisThis method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
public void setRemoteSofaURI(String aURI)
SofaFS
setRemoteSofaURI
in interface SofaFS
aURI
- the URI for a remote SofaThis method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
public FeatureStructure getLocalFSData()
SofaFS
getLocalFSData
in interface SofaFS
This method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
public String getLocalStringData()
SofaFS
getLocalStringData
in interface SofaFS
This method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
public void setStringValue(Feature feat, String val)
FeatureStructure
setStringValue
in interface FeatureStructure
setStringValue
in class FeatureStructureImpl
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 FeatureStructureImpl
feat
- The feature whose value should be set.fs
- The value FS.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 String getSofaID()
SofaFS
getSofaID
in interface SofaFS
This method is duplicated in
org.apache.uima.jcas.cas.Sofa. Any changes should be made in both places.
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.