Class FeatureStructureImpl

    • Constructor Detail

      • FeatureStructureImpl

        public FeatureStructureImpl()
    • Method Detail

      • getType

        public String getType()
        Description copied from interface: FeatureStructure
        Gets the type of this FeatureStructure
        Specified by:
        getType in interface FeatureStructure
        Returns:
        this FeatureStructure's type, as a string
      • setType

        public void setType​(String aType)
        Description copied from interface: FeatureStructure
        Sets the type of this FeatureStructure
        Specified by:
        setType in interface FeatureStructure
        Parameters:
        aType - this FeatureStructure's type, as a string
      • getFeatureValue

        public FeatureValue getFeatureValue​(String aFeatureName)
        Description copied from interface: FeatureStructure
        Gets the value of a feature
        Specified by:
        getFeatureValue in interface FeatureStructure
        Parameters:
        aFeatureName - name of feature
        Returns:
        value of feature named aName, or null if there is no such feature
      • getId

        public String getId()
        Description copied from interface: FeatureStructure
        Gets the ID of this FeatureStructure. IDs are optional, so this may return null. A FeatureStructure must have an ID if it is to be the target of a reference.
        Specified by:
        getId in interface FeatureStructure
        Returns:
        an ID string
      • isIndexed

        @Deprecated
        public boolean isIndexed()
        Deprecated.
        Description copied from interface: FeatureStructure
        Gets whether this FeatureStructure should be indexed if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.
        Specified by:
        isIndexed in interface FeatureStructure
        Returns:
        true if it is indexed
      • setId

        public void setId​(String string)
        Description copied from interface: FeatureStructure
        Sets the ID of this FeatureStructure. IDs are optional, so null may be passed to this method. A FeatureStructure must have an ID if it is to be the target of a reference.
        Specified by:
        setId in interface FeatureStructure
        Parameters:
        string - -
      • setIndexed

        @Deprecated
        public void setIndexed​(boolean b)
        Deprecated.
        Description copied from interface: FeatureStructure
        Sets whether this FeatureStructure should be indexed if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.
        Specified by:
        setIndexed in interface FeatureStructure
        Parameters:
        b - -
      • getIndexed

        public int[] getIndexed()
        Description copied from interface: FeatureStructure
        Gets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.
        Specified by:
        getIndexed in interface FeatureStructure
        Returns:
        an array containing the numbers of the index repsositories that should contain this FS. Returns an empty array if this FS is not indexed.
      • setIndexed

        public void setIndexed​(int[] aIndexed)
        Description copied from interface: FeatureStructure
        Sets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.
        Specified by:
        setIndexed in interface FeatureStructure
        Parameters:
        aIndexed - an array containing the numbers of the index repsositories that should contain this FS. Passing null is equivalent to passing an empty array.