Class Sofa

    • Field Detail

      • _FeatName_sofaNum

        public static final java.lang.String _FeatName_sofaNum
        See Also:
        Constant Field Values
      • _FeatName_sofaID

        public static final java.lang.String _FeatName_sofaID
        See Also:
        Constant Field Values
      • _FeatName_mimeType

        public static final java.lang.String _FeatName_mimeType
        See Also:
        Constant Field Values
      • _FeatName_sofaArray

        public static final java.lang.String _FeatName_sofaArray
        See Also:
        Constant Field Values
      • _FeatName_sofaString

        public static final java.lang.String _FeatName_sofaString
        See Also:
        Constant Field Values
      • _FeatName_sofaURI

        public static final java.lang.String _FeatName_sofaURI
        See Also:
        Constant Field Values
      • typeIndexID

        public static final int typeIndexID
      • type

        public static final int type
      • _FC_sofaNum

        private static final java.lang.invoke.CallSite _FC_sofaNum
      • _FC_sofaID

        private static final java.lang.invoke.CallSite _FC_sofaID
      • _FC_mimeType

        private static final java.lang.invoke.CallSite _FC_mimeType
      • _FC_sofaArray

        private static final java.lang.invoke.CallSite _FC_sofaArray
      • _FC_sofaString

        private static final java.lang.invoke.CallSite _FC_sofaString
      • _FC_sofaURI

        private static final java.lang.invoke.CallSite _FC_sofaURI
      • _FH_sofaNum

        private static final java.lang.invoke.MethodHandle _FH_sofaNum
      • _FH_sofaID

        private static final java.lang.invoke.MethodHandle _FH_sofaID
      • _FH_mimeType

        private static final java.lang.invoke.MethodHandle _FH_mimeType
      • _FH_sofaArray

        private static final java.lang.invoke.MethodHandle _FH_sofaArray
      • _FH_sofaString

        private static final java.lang.invoke.MethodHandle _FH_sofaString
      • _FH_sofaURI

        private static final java.lang.invoke.MethodHandle _FH_sofaURI
    • Constructor Detail

      • Sofa

        protected Sofa()
      • Sofa

        public Sofa​(TypeImpl t,
                    CASImpl c)
        used by generator, not used Make a new Sofa
        Parameters:
        c - -
        t - -
      • Sofa

        public Sofa​(TypeImpl t,
                    CASImpl c,
                    int sofaNum,
                    java.lang.String viewName,
                    java.lang.String mimeType)
    • Method Detail

      • getTypeIndexID

        public int getTypeIndexID()
        Overrides:
        getTypeIndexID in class TOP
        Returns:
        the type array index
      • getSofaNum

        public int getSofaNum()
        getter for sofaNum
        Specified by:
        getSofaNum in interface SofaFS
        Returns:
        the sofa number
      • getSofaID

        public java.lang.String getSofaID()
        getter for sofaID
        Specified by:
        getSofaID in interface SofaFS
        Returns:
        the sofaID, which is the same as the view name
      • getMimeType

        public java.lang.String getMimeType()
        getter for mimeType - gets
        Returns:
        the mime type
      • setLocalSofaData

        public void setLocalSofaData​(FeatureStructure aFS,
                                     java.lang.String mimeType)
      • setLocalSofaData

        public void setLocalSofaData​(java.lang.String aString)
        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 interface SofaFS
        Parameters:
        aString - The subject of analysis
        See Also:
        SofaFS.setLocalSofaData(String)
      • setLocalSofaDataNoDocAnnotUpdate

        public void setLocalSofaDataNoDocAnnotUpdate​(java.lang.String aString)
        Internal use: used by deserializers
        Parameters:
        aString - the string to update
      • setLocalSofaData

        public void setLocalSofaData​(java.lang.String aString,
                                     java.lang.String mimeType)
      • getLocalStringData

        public java.lang.String getLocalStringData()
        Description copied from interface: SofaFS
        Get the Local Subject of Analysis returns null if not previously set.
        Specified by:
        getLocalStringData in interface SofaFS
        Returns:
        the SofA
        See Also:
        SofaFS.getLocalStringData()
      • setRemoteSofaURI

        public void setRemoteSofaURI​(java.lang.String aURI,
                                     java.lang.String mimeType)
      • isSofaDataSet

        public boolean isSofaDataSet()
      • getSofaMime

        public java.lang.String getSofaMime()
        Description copied from interface: SofaFS
        Get the Sofa mime type.
        Specified by:
        getSofaMime in interface SofaFS
        Returns:
        SofA mime type
      • getSofaURI

        public java.lang.String getSofaURI()
        Description copied from interface: SofaFS
        Get the Sofa URI value.
        Specified by:
        getSofaURI in interface SofaFS
        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 interface SofaFS
        Returns:
        the Sofa Reference value
      • getSofaDataStream

        public java.io.InputStream 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 interface SofaFS
        Returns:
        an InputStream for reading Sofa data. null returned if there is no Sofa data.
      • getSofaArray

        public 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
        Returns:
        -
      • getSofaString

        public java.lang.String getSofaString()
      • setIntValue

        public void setIntValue​(Feature feat,
                                java.lang.Integer val)
      • throwAlreadySet

        private void throwAlreadySet​(java.lang.String msg)
      • setMimeType

        public void setMimeType​(java.lang.String v)