com.supermap.data

Class DatasetGroups

  • java.lang.Object
    • com.supermap.data.DatasetGroups


  • public class DatasetGroups
    extends java.lang.Object
    Dataset grouping collection class. This class is a collection of dataset grouping (datasetgroup) objects, which are used to manage dataset grouping objects, such as creating, deleting, and obtaining dataset grouping objects with specified indexes or names.
    • Method Detail

      • get

        public DatasetGroup get(int index)
        Returns the dataset grouping at the specified index location in the current dataset grouping set.
        Parameters:
        index - specifies the index of the dataset grouping object to be found. The index value starts at 0.
        Returns:
        The dataset grouping at the specified index in the current dataset grouping set.
      • get

        public DatasetGroup get(java.lang.String name)
        Returns the dataset grouping with the name specified in the current dataset grouping set.
        Parameters:
        name - of the dataset grouping specified.
        Returns:
        The dataset grouping with the specified name in the current dataset grouping set.
      • getCount

        public int getCount()
        Returns the total number of dataset groupings in the current dataset grouping set.
        Returns:
        The total number of dataset groupings in the current dataset grouping set.
      • indexOf

        public int indexOf(java.lang.String name)
        Returns the index of the dataset grouping with the specified name in the current dataset grouping set.
        Parameters:
        name - to specify the dataset grouping name.
        Returns:
        The index of the dataset grouping with the specified name in the current dataset grouping set.
      • create

        public DatasetGroup create(java.lang.String name)
        Create a dataset grouping based on the specified name and add it to the dataset grouping set.
        Parameters:
        name - to specify the dataset grouping name.
        Returns:
        Grouping of newly created datasets.
      • contains

        public boolean contains(java.lang.String name)
        Determines whether the current dataset grouping set contains a dataset grouping with the specified name.
        Parameters:
        name - of the dataset grouping specified.
        Returns:
        Included or not.
      • delete

        public boolean delete(java.lang.String name)
        Deletes the dataset grouping with the specified name from the current dataset group grouping set.
        Parameters:
        name - to specify the dataset grouping name.
        Returns:
        Whether the deletion was successful.
      • addCreatedListener

        public void addCreatedListener(DatasetGroupCreatedListener listener)
        Add a listener to receive dataset grouping creation end events (DatasetGroupCreatedEvent).
        Parameters:
        listener - is a listener used to receive the end event of the creation of a grouping of datasets.
      • removeCreatedListener

        public void removeCreatedListener(DatasetGroupCreatedListener listener)
        Removed a listener that receives dataset grouping creation end events (DatasetGroupCreatedEvent).
        Parameters:
        listener - is a listener used to receive the end event of the creation of a grouping of datasets.
      • addDeletingListener

        public void addDeletingListener(DatasetGroupDeletingListener listener)
        Add a listener to receive dataset grouping deletion events (DatasetGroupDeletingEvent).
        Parameters:
        listener - is a listener used to receive grouping delete events from a dataset.
      • addDeletedListener

        public void addDeletedListener(DatasetGroupDeletedListener listener)
        Add a listener to receive dataset grouping delete end events (DatasetGroupDeletedEvent).
        Parameters:
        listener: - A listener used to receive data set grouping delete end events.
      • addChangedListener

        public void addChangedListener(DatasetGroupChangedListener listener)
        Add a listener to receive the dataset grouping churn end event (DatasetGroupChangedEvent).
        Parameters:
        listener - is a listener used to receive events that end of changes to the grouping of datasets.
      • removeDeletedListener

        public void removeDeletedListener(DatasetGroupDeletedListener listener)
        Removed a listener that receives the dataset grouping delete end event (DatasetGroupDeletedEvent).
        Parameters:
        listener: - A listener used to receive data set grouping delete end events.
      • removeChangedListener

        public void removeChangedListener(DatasetGroupChangedListener listener)
        Removed a listener that receives the end of the dataset grouping churn event (DatasetGroupChangedEvent).
        Parameters:
        listener - is a listener used to receive events that end of changes to the grouping of datasets.