Package org.apache.uima.cas.impl
Class SofaFSImpl
java.lang.Object
org.apache.uima.cas.impl.FeatureStructureImpl
org.apache.uima.cas.impl.FeatureStructureImplC
org.apache.uima.cas.impl.SofaFSImpl
- All Implemented Interfaces:
Cloneable
,FeatureStructure
,SofaFS
Implementation of the
SofaFS
interface.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
addr, casImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the Local Subject of Analysis returns null if not previously set.Get the Local Subject of Analysis returns null if not previously set.Provides stream access to both local and remote Sofa data.(package private) static FSGenerator
<SofaFSImpl> Get the Sofa globally unique name, after mapping.Get the Sofa mime type.int
Get the Sofa Ref value.Get the Sofa URI value.private boolean
void
setFeatureValue
(Feature feat, FeatureStructure fs) Set a feature value to another FS.void
setIntValue
(Feature feat, Integer val) void
setLocalSofaData
(String aString) Set the Local Subject of Analysis to be a String.void
Set the Local Subject of Analysis to be a predefined ArrayFS.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.Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImplC
equals, getAddress, getCAS, getCASImpl, hashCode
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.cas.FeatureStructure
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue
-
Constructor Details
-
SofaFSImpl
-
-
Method Details
-
getSofaFSGenerator
-
setLocalSofaData
Description copied from interface:SofaFS
Set the Local Subject of Analysis to be a predefined ArrayFS. Once set, the Sofa data cannot be changed.- Specified by:
setLocalSofaData
in interfaceSofaFS
- Parameters:
aFS
- the SofA- See Also:
-
setLocalSofaData
Description copied from interface:SofaFS
Set the Local Subject of Analysis to be a String. Once set, the Sofa data cannot be changed.- Specified by:
setLocalSofaData
in interfaceSofaFS
- Parameters:
aString
- The subject of analysis- See Also:
-
setRemoteSofaURI
Description copied from interface:SofaFS
Set the URI for a Remote Subject of Analysis. Once set, this URI may not be changed.- Specified by:
setRemoteSofaURI
in interfaceSofaFS
- Parameters:
aURI
- the URI for a remote Sofa- See Also:
-
isSofaDataSet
private boolean isSofaDataSet() -
getLocalFSData
Description copied from interface:SofaFS
Get the Local Subject of Analysis returns null if not previously set.- Specified by:
getLocalFSData
in interfaceSofaFS
- Returns:
- the local SofA
- See Also:
-
getLocalStringData
Description copied from interface:SofaFS
Get the Local Subject of Analysis returns null if not previously set.- Specified by:
getLocalStringData
in interfaceSofaFS
- Returns:
- the SofA
- See Also:
-
setStringValue
Description copied from interface:FeatureStructure
Set the string value of a feature.- Specified by:
setStringValue
in interfaceFeatureStructure
- Overrides:
setStringValue
in classFeatureStructureImpl
- Parameters:
feat
- The feature whose value we want to set.val
- The string we're setting the feature to.
-
setFeatureValue
Description copied from interface:FeatureStructure
Set a feature value to another FS.- Specified by:
setFeatureValue
in interfaceFeatureStructure
- Overrides:
setFeatureValue
in classFeatureStructureImpl
- Parameters:
feat
- The feature whose value should be set.fs
- The value FS.
-
setIntValue
-
getSofaMime
Description copied from interface:SofaFS
Get the Sofa mime type.- Specified by:
getSofaMime
in interfaceSofaFS
- Returns:
- SofA mime type
-
getSofaURI
Description copied from interface:SofaFS
Get the Sofa URI value.- Specified by:
getSofaURI
in interfaceSofaFS
- Returns:
- Sofa URI or null if not valid
-
getSofaRef
public int getSofaRef()Description copied from interface:SofaFS
Get the Sofa Ref value.- Specified by:
getSofaRef
in interfaceSofaFS
- Returns:
- the Sofa Reference value
-
getSofaDataStream
Description copied from interface:SofaFS
Provides stream access to both local and remote Sofa data. For remote SofA data, a custom URLStreamHandler may be registered for a protocol via the java.protocol.handler.pkgs system property.- Specified by:
getSofaDataStream
in interfaceSofaFS
- Returns:
- an InputStream for reading Sofa data. null returned if there is no Sofa data.
-
getSofaID
Description copied from interface:SofaFS
Get the Sofa globally unique name, after mapping.
-