Package org.apache.uima.jcas.cas
Class Sofa
java.lang.Object
org.apache.uima.cas.impl.FeatureStructureImpl
org.apache.uima.jcas.cas.TOP
org.apache.uima.jcas.cas.Sofa
- All Implemented Interfaces:
Cloneable,FeatureStructure,SofaFS
Updated by JCasGen Fri Apr 29 16:05:04 EDT 2005
-
Field Summary
Fields -
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.getter for mimeType - getsProvides stream access to both local and remote Sofa data.getter for sofaID - getsGet the Sofa mime type.intgetter for sofaNum - getsintGet the Sofa Ref value.Get the Sofa URI value.intused to obtain reference to the TOP_Type instancevoidsetFeatureValue(Feature feat, FeatureStructure fs) Set a feature value to another FS.voidsetIntValue(Feature feat, Integer val) voidsetLocalSofaData(String aString) Set the Local Subject of Analysis to be a String.voidSet the Local Subject of Analysis to be a predefined ArrayFS.voidsetRemoteSofaURI(String aURI) Set the URI for a Remote Subject of Analysis.voidsetStringValue(Feature feat, String val) Set the string value of a feature.Methods inherited from class org.apache.uima.jcas.cas.TOP
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexesMethods 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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
Field Details
-
typeIndexID
public static final int typeIndexID -
type
public static final int type
-
-
Constructor Details
-
Sofa
protected Sofa()Never called. Disable default constructor -
Sofa
Internal - constructor used by generator- Parameters:
addr- the addresstype- the type
-
Sofa
Deprecated.As of v2.0, useJCasImpl.createView(String)to create a view, which will also create the Sofa for that view.- Parameters:
jcas- JCasID- the sofa IDmimeType- the mime type
-
-
Method Details
-
getTypeIndexID
public int getTypeIndexID()Description copied from class:TOPused to obtain reference to the TOP_Type instance- Overrides:
getTypeIndexIDin classTOP- Returns:
- the type array index
-
getSofaNum
public int getSofaNum()getter for sofaNum - gets- Returns:
- the sofa number
-
getSofaID
getter for sofaID - gets -
getMimeType
getter for mimeType - gets- Returns:
- the mime type
-
setLocalSofaData
Description copied from interface:SofaFSSet the Local Subject of Analysis to be a predefined ArrayFS. Once set, the Sofa data cannot be changed.- Specified by:
setLocalSofaDatain interfaceSofaFS- Parameters:
aFS- the SofA- See Also:
-
setLocalSofaData
Description copied from interface:SofaFSSet the Local Subject of Analysis to be a String. Once set, the Sofa data cannot be changed.- Specified by:
setLocalSofaDatain interfaceSofaFS- Parameters:
aString- The subject of analysis- See Also:
-
getLocalFSData
Description copied from interface:SofaFSGet the Local Subject of Analysis returns null if not previously set.- Specified by:
getLocalFSDatain interfaceSofaFS- Returns:
- the local SofA
- See Also:
-
getLocalStringData
Description copied from interface:SofaFSGet the Local Subject of Analysis returns null if not previously set.- Specified by:
getLocalStringDatain interfaceSofaFS- Returns:
- the SofA
- See Also:
-
setRemoteSofaURI
Description copied from interface:SofaFSSet the URI for a Remote Subject of Analysis. Once set, this URI may not be changed.- Specified by:
setRemoteSofaURIin interfaceSofaFS- Parameters:
aURI- the URI for a remote Sofa- See Also:
-
setStringValue
Description copied from interface:FeatureStructureSet the string value of a feature.- Specified by:
setStringValuein interfaceFeatureStructure- Overrides:
setStringValuein 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:FeatureStructureSet a feature value to another FS.- Specified by:
setFeatureValuein interfaceFeatureStructure- Overrides:
setFeatureValuein classFeatureStructureImpl- Parameters:
feat- The feature whose value should be set.fs- The value FS.
-
setIntValue
-
getSofaMime
Description copied from interface:SofaFSGet the Sofa mime type.- Specified by:
getSofaMimein interfaceSofaFS- Returns:
- SofA mime type
-
getSofaURI
Description copied from interface:SofaFSGet the Sofa URI value.- Specified by:
getSofaURIin interfaceSofaFS- Returns:
- Sofa URI or null if not valid
-
getSofaRef
public int getSofaRef()Description copied from interface:SofaFSGet the Sofa Ref value.- Specified by:
getSofaRefin interfaceSofaFS- Returns:
- the Sofa Reference value
-
getSofaDataStream
Description copied from interface:SofaFSProvides 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:
getSofaDataStreamin interfaceSofaFS- Returns:
- an InputStream for reading Sofa data. null returned if there is no Sofa data.
-
JCasImpl.createView(String)to create a view, which will also create the Sofa for that view.