Skip to content

[Feature Request] CompositeCell.isEmpty and Data.isEmpty #531

@olscholz

Description

@olscholz

It would be nice to have a isEmpty function for both the CompositeCell as well as the Data type.
This could be accomplished with here:

member this.isEmpty = 
    match this with 
    | Term oa  -> oa.isEmpty()
    | FreeText s -> String.IsNullOrWhiteSpace s
    | Unitized (v, oa) -> String.IsNullOrWhiteSpace v && oa.isEmpty()
    | Data d -> d.isEmpty()

and for Data here

member this.isEmpty() =
    this.ID.IsNone && this.Name.IsNone && this.DataType.IsNone && this.Format.IsNone && this.SelectorFormat.IsNone && this.Comments.Count = 0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Feature RequestThis item is confirmed by the maintainers to be a request for a new feature

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions