Class NFEBasicFeature

    • Constructor Detail

      • NFEBasicFeature

        public NFEBasicFeature()
    • Method Detail

      • setFeatureLayer

        public void setFeatureLayer​(NFEFeatureLayer featureLayer)
        Description copied from class: NFEFeature
        Sets the feature's feature layer
        Specified by:
        setFeatureLayer in class NFEFeature
        Parameters:
        featureLayer - a feature layer instance
      • setId

        public void setId​(long id)
        Description copied from class: NFEFeature
        Sets the feature's ID
        Specified by:
        setId in class NFEFeature
        Parameters:
        id - a feature ID
      • getId

        public long getId()
        Description copied from class: NFEFeature
        Gets the feature's ID
        Specified by:
        getId in class NFEFeature
        Returns:
        a feature ID
      • setParentFeatureId

        public void setParentFeatureId​(long parentFeatId)
        Description copied from class: NFEFeature
        Sets the feature's parent feature ID
        Specified by:
        setParentFeatureId in class NFEFeature
        Parameters:
        parentFeatId - a feature ID
      • getParentFeatureId

        public long getParentFeatureId()
        Description copied from class: NFEFeature
        Gets the feature's parent feature ID (if any)
        Specified by:
        getParentFeatureId in class NFEFeature
        Returns:
        a feature ID or -1 if the feature does not have a parent feature
      • setParentFeatureLayerId

        public void setParentFeatureLayerId​(long parentFeatLayerId)
        Description copied from class: NFEFeature
        Sets the feature layer ID of the feature's parent feature. The parent can be from a higher hierarchy feature layer or from a feature layer in another model.
        Specified by:
        setParentFeatureLayerId in class NFEFeature
        Parameters:
        parentFeatLayerId - a feature layer ID
      • getParentFeatureLayerId

        public long getParentFeatureLayerId()
        Description copied from class: NFEFeature
        Gets the feature layer ID of the feature's parent feature
        Specified by:
        getParentFeatureLayerId in class NFEFeature
        Returns:
        a feature layer ID
      • setFeatureClass

        public void setFeatureClass​(NFEFeatureClass featureClass)
        Description copied from class: NFEFeature
        Sets the feature class of the feature
        Specified by:
        setFeatureClass in class NFEFeature
        Parameters:
        featureClass - a feature class instance
      • getKey

        public java.lang.String getKey()
        Description copied from class: NFEFeature
        Returns the feature's key. The key is a unique identifier among features of any Feature Layer. It has the following format: FeatureLayerId_FeautureId
        Specified by:
        getKey in class NFEFeature
        Returns:
        Returns the Feature's key
      • setAttribute

        public void setAttribute​(java.lang.String attributeName,
                                 java.lang.Object attributeValue)
        Description copied from class: NFEFeature
        Sets the value of the attribute with the given name
        Specified by:
        setAttribute in class NFEFeature
        Parameters:
        attributeName - an attribute name
        attributeValue - the value of the attribute
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String attributeName)
        Description copied from class: NFEFeature
        Gets the value of the attribute with the given name
        Specified by:
        getAttribute in class NFEFeature
        Parameters:
        attributeName - an attribute name
        Returns:
        the value of the attribute or null if the attribute does not exist or has not been set
      • addFeatureElement

        public boolean addFeatureElement​(NFEFeatureElement featureElement)
        Description copied from class: NFEFeature
        Adds a feature element to the feature
        Specified by:
        addFeatureElement in class NFEFeature
        Parameters:
        featureElement - a feature element instance
        Returns:
        true if the feature could be added to the feature
      • addFeatureElements

        public void addFeatureElements​(java.util.List<NFEFeatureElement> featureElements)
        Description copied from class: NFEFeature
        Adds all the feature elements in the collection to the feature
        Specified by:
        addFeatureElements in class NFEFeature
        Parameters:
        featureElements - a collection of feature element instances
      • removeFeatureElement

        public boolean removeFeatureElement​(NFEFeatureElement featureElement)
        Description copied from class: NFEFeature
        Removes the given feature element from the feature
        Specified by:
        removeFeatureElement in class NFEFeature
        Parameters:
        featureElement - a feature element instance
        Returns:
        true if the feature element was removed
      • removeFeatureElements

        public void removeFeatureElements​(java.util.Collection<NFEFeatureElement> featureElements)
        Description copied from class: NFEFeature
        Removes from the feature all the feature elements in the collection
        Specified by:
        removeFeatureElements in class NFEFeature
        Parameters:
        featureElements - a collection of feature element instances