Interface IDataSetWrapper

    • Method Detail

      • init

        void init()
        Initialize
      • copyField

        void copyField​(DataSetField field,
                       String parentPathNew)
        Copy field
        Parameters:
        field - field, can't be null
        parentPathNew - destination folder path or null (empty) for root
      • removeField

        void removeField​(DataSetField field)
        Remove field
        Parameters:
        field - field, can't be null
      • moveField

        void moveField​(DataSetField field,
                       String parentPathNew)
        Move field
        Parameters:
        field - field, can't be null
        parentPathNew - destination folder path or null (empty) for root
      • getChildFields

        List<DataSetField> getChildFields​(DataSetField parentField)
        Get child fields or root fields
        Parameters:
        parentField - parent field, can't be null
        Returns:
        list of fields, never null
      • getFieldName

        String getFieldName​(DataSetField field)
        Get 'Field' property of field
        Parameters:
        field - field, can't be null
        Returns:
        value of 'Field' property name from source, never null, empty for folder
      • setFieldName

        void setFieldName​(DataSetField field,
                          String name)
        Set 'Field' property of field
        Parameters:
        field - field, can't be null
        name - value of 'Field' property
      • getFieldPath

        String getFieldPath​(DataSetField field)
        Get 'Data path' property of field
        Parameters:
        field - field, can't be null
        Returns:
        value of 'Data path' property, never null
      • setFieldPath

        void setFieldPath​(DataSetField field,
                          String path)
        Set 'Data path' property of field
        Parameters:
        field - field, can't be null
        path - value of 'Data path' property, can't be null
      • setFieldTitle

        void setFieldTitle​(DataSetField field,
                           LocalString title)
        Set 'Title' property of field
        Parameters:
        field - field, can't be null
        title - value of 'Title' property, can't be null
      • getFieldSynonym

        IDataSetWrapper.FieldSynonym getFieldSynonym​(String path)
        Get field synonym
        Parameters:
        path - path of field, can't be null
        Returns:
        synonym or null
      • getFieldRestriction

        IDataSetWrapper.FieldRestriction getFieldRestriction​(String path)
        Get field restriction
        Parameters:
        path - path of field, can't be null
        Returns:
        restriction or null
      • getField

        DataSetField getField​(String path)
        Get field
        Parameters:
        path - field path, can't be null
        Returns:
        field or null if field not found
      • getAncestorField

        DataSetField getAncestorField​(DataSetField field)
        Get ancestor for field
        Parameters:
        field - field, can't be null
        Returns:
        ancestor if exists or null
      • getCurrentLanguageCode

        String getCurrentLanguageCode()
        Get current language code
        Returns:
        language code, never null
      • getCurrentAlias

        int getCurrentAlias()
        Gets number of current alias
        Returns:
        number of current alias
      • getFieldParentPath

        String getFieldParentPath​(DataSetField field)
        Get path of field parent
        Parameters:
        field - field, can't be null
        Returns:
        path of field parent, can be null
      • setFieldUseRestiction

        void setFieldUseRestiction​(DataSetField field,
                                   org.eclipse.emf.ecore.EStructuralFeature feature,
                                   boolean state)
        Set field restiction
        Parameters:
        field - field, can't be null
        feature - feature of restriction, can't be null
        state - state
      • setFieldAttrUseRestiction

        void setFieldAttrUseRestiction​(DataSetField field,
                                       org.eclipse.emf.ecore.EStructuralFeature feature,
                                       boolean state)
        Set field attribute restiction
        Parameters:
        field - field, can't be null
        feature - feature of attribute restriction, can't be null
        state - state