public class Sofa extends TOP implements SofaFS
| Modifier and Type | Field and Description |
|---|---|
static int |
type |
static int |
typeIndexID |
| Modifier | Constructor and Description |
|---|---|
protected |
Sofa()
Never called.
|
|
Sofa(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
Sofa(JCas jcas,
SofaID ID,
String mimeType)
Deprecated.
As of v2.0, use
JCasImpl.createView(String) to create a view, which will
also create the Sofa for that view. |
| 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
|
InputStream |
getSofaDataStream()
Provides stream access to both local and remote Sofa data.
|
String |
getSofaID()
getter for sofaID - gets
|
String |
getSofaMime()
Get the Sofa mime type.
|
int |
getSofaNum()
getter for sofaNum - gets
|
int |
getSofaRef()
Get the Sofa Ref value.
|
String |
getSofaURI()
Get the Sofa URI value.
|
int |
getTypeIndexID()
used to obtain reference to the TOP_Type instance
|
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.
|
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexesclone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, toString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValueprotected Sofa()
public Sofa(int addr,
TOP_Type type)
addr - the addresstype - the type@Deprecated public Sofa(JCas jcas, SofaID ID, String mimeType)
JCasImpl.createView(String) to create a view, which will
also create the Sofa for that view.jcas - JCasID - the sofa IDmimeType - the mime typepublic int getTypeIndexID()
TOPgetTypeIndexID in class TOPpublic int getSofaNum()
public String getSofaID()
public String getMimeType()
public void setLocalSofaData(FeatureStructure aFS)
SofaFSsetLocalSofaData in interface SofaFSaFS - the SofAThis method is duplicated in
SofaFSImpl. Any changes should be made in both places.public void setLocalSofaData(String aString)
SofaFSsetLocalSofaData in interface SofaFSaString - The subject of analysisThis method is duplicated in
SofaFSImpl. Any changes should be made in both places.public FeatureStructure getLocalFSData()
SofaFSgetLocalFSData in interface SofaFSThis method is duplicated in SofaFSImpl. Any
changes should be made in both places.public String getLocalStringData()
SofaFSgetLocalStringData in interface SofaFSThis method is duplicated in SofaFSImpl.
Any changes should be made in both places.public void setRemoteSofaURI(String aURI)
SofaFSsetRemoteSofaURI in interface SofaFSaURI - the URI for a remote SofaThis method is duplicated in
SofaFSImpl. Any changes should be made in both places.public void setStringValue(Feature feat, String val)
FeatureStructuresetStringValue in interface FeatureStructuresetStringValue in class FeatureStructureImplfeat - The feature whose value we want to set.val - The string we're setting the feature to.public void setFeatureValue(Feature feat, FeatureStructure fs)
FeatureStructuresetFeatureValue in interface FeatureStructuresetFeatureValue in class FeatureStructureImplfeat - The feature whose value should be set.fs - The value FS.public String getSofaMime()
SofaFSgetSofaMime in interface SofaFSpublic String getSofaURI()
SofaFSgetSofaURI in interface SofaFSpublic int getSofaRef()
SofaFSgetSofaRef in interface SofaFSpublic InputStream getSofaDataStream()
SofaFSgetSofaDataStream in interface SofaFSCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.