Class EntityNodeModel
public sealed class EntityNodeModel : NodeModelBase, INotifyPropertyChanged, IOptionModel<Guid>, IOptionModel
- Inheritance
-
EntityNodeModel
- Implements
- Inherited Members
Constructors
EntityNodeModel(AppNodeModel, Guid, Action<IEvent[]>, EventFactory, bool, IEnumerable<IFeature>, string, IOptionModel<EntityCalculationMode>, IOptionModel<Tuple<Guid, PropertyType>?>, IOptionModel<SortType?>)
public EntityNodeModel(AppNodeModel root, Guid id, Action<IEvent[]> update, EventFactory factory, bool useSectionNodes, IEnumerable<IFeature> features, string initialName, IOptionModel<EntityCalculationMode> initialTextCalculation, IOptionModel<Tuple<Guid, PropertyType>?> initialSortBy, IOptionModel<SortType?> initialSortDirection)
Parameters
rootAppNodeModelidGuidupdateAction<IEvent[]>factoryEventFactoryuseSectionNodesboolfeaturesIEnumerable<IFeature>initialNamestringinitialTextCalculationIOptionModel<EntityCalculationMode>initialSortByIOptionModel<Tuple<Guid, PropertyType>>initialSortDirectionIOptionModel<SortType?>
Fields
NewEntityName
public const string NewEntityName = "UntitledEntity"
Field Value
Properties
CaptionOverride
public IElement<string?> CaptionOverride { get; }
Property Value
Commands
public override ObservableCollection<EditorCommand> Commands { get; }
Property Value
CopyEntityCommand
public EditorCommand CopyEntityCommand { get; }
Property Value
DiagramNumbers
public IElement<string?> DiagramNumbers { get; }
Property Value
FlagsDoc
public MultiDoc FlagsDoc { get; }
Property Value
FormatOverride
public IElement<string?> FormatOverride { get; }
Property Value
IsAbstract
public IElement<bool> IsAbstract { get; }
Property Value
IsAudited
public IElement<bool> IsAudited { get; }
Property Value
IsLegacy
public override IElement<bool> IsLegacy { get; }
Property Value
IsLocked
public override bool IsLocked { get; }
Property Value
IsReferenceData
public IElement<bool> IsReferenceData { get; }
Property Value
IsTopLevel
public IElement<bool> IsTopLevel { get; }
Property Value
IsTransient
public IElement<bool> IsTransient { get; }
Property Value
ModelID
public string ModelID { get; }
Property Value
Name
public override IElement<string> Name { get; }
Property Value
PluralCaptionOverride
public IElement<string?> PluralCaptionOverride { get; }
Property Value
PluralOverride
public IElement<string?> PluralOverride { get; }
Property Value
Properties
public IEnumerable<PropertyNodeModel> Properties { get; }
Property Value
Sections
public IEnumerable<SectionNodeModel> Sections { get; }
Property Value
ShowIsAbstract
public bool ShowIsAbstract { get; }
Property Value
ShowTextCalculation
public bool ShowTextCalculation { get; }
Property Value
SortBy
public IElement<IOptionModel<Tuple<Guid, PropertyType>?>> SortBy { get; }
Property Value
SortByTypes
public ObservableCollection<IOptionModel<Tuple<Guid, PropertyType>?>> SortByTypes { get; }
Property Value
SortDirection
public IElement<IOptionModel<SortType?>> SortDirection { get; }
Property Value
SortDirectionTypes
public IProperty<ObservableCollection<IOptionModel<SortType?>>?> SortDirectionTypes { get; }
Property Value
SyntaxType
public SyntaxType SyntaxType { get; }
Property Value
TextCalculation
public IElement<IOptionModel<EntityCalculationMode>> TextCalculation { get; }
Property Value
TextCalculationTypes
public IProperty<ObservableCollection<IOptionModel<EntityCalculationMode>>?> TextCalculationTypes { get; }
Property Value
Methods
AddAttribute(IDialogHost)
public Task AddAttribute(IDialogHost host)
Parameters
hostIDialogHost
Returns
AppendProp(SectionNodeModel, PropertyNodeModel)
public void AppendProp(SectionNodeModel intoSection, PropertyNodeModel prop)
Parameters
intoSectionSectionNodeModelpropPropertyNodeModel
AppendSection(SectionNodeModel)
public void AppendSection(SectionNodeModel section)
Parameters
sectionSectionNodeModel
ContainsText(string)
public override bool ContainsText(string text)
Parameters
textstring
Returns
GetAbsoluteOrderWithinEntity(PropertyNodeModel)
public int GetAbsoluteOrderWithinEntity(PropertyNodeModel prop)
Parameters
propPropertyNodeModel
Returns
GetRelativeOrderWithinSection(SectionNodeModel, PropertyNodeModel)
public int GetRelativeOrderWithinSection(SectionNodeModel section, PropertyNodeModel prop)
Parameters
sectionSectionNodeModelpropPropertyNodeModel
Returns
GetSectionOrderWithinEntity(SectionNodeModel)
public int GetSectionOrderWithinEntity(SectionNodeModel section)
Parameters
sectionSectionNodeModel
Returns
InsertProp(SectionNodeModel, int, PropertyNodeModel)
public void InsertProp(SectionNodeModel intoSection, int index, PropertyNodeModel prop)
Parameters
intoSectionSectionNodeModelindexintpropPropertyNodeModel
InsertSection(int, SectionNodeModel)
public void InsertSection(int index, SectionNodeModel section)
Parameters
indexintsectionSectionNodeModel
JumpTo()
public void JumpTo()
MoveProp(int, PropertyNodeModel)
moves within a single section, though the index is entity-relative
public void MoveProp(int index, PropertyNodeModel prop)
Parameters
indexintpropPropertyNodeModel
Remarks
these Move functions unnecessarily lose selection and reset owner. they could be reimplemented with ObservableCollection.Move, but that, too, removes-and-adds as far as the Selection is concerned...
MoveProp(SectionNodeModel, SectionNodeModel, int, PropertyNodeModel)
moves to within a new section
public void MoveProp(SectionNodeModel fromSection, SectionNodeModel intoSection, int index, PropertyNodeModel prop)
Parameters
fromSectionSectionNodeModelintoSectionSectionNodeModelindexintpropPropertyNodeModel
MoveProp(SectionNodeModel, SectionNodeModel, PropertyNodeModel)
moves to the end of a new section
public void MoveProp(SectionNodeModel fromSection, SectionNodeModel intoSection, PropertyNodeModel prop)
Parameters
fromSectionSectionNodeModelintoSectionSectionNodeModelpropPropertyNodeModel
NameEquals(string)
public bool NameEquals(string compare)
Parameters
comparestring
Returns
NameMatches(string)
public bool NameMatches(string compare)
Parameters
comparestring
Returns
RecalculatePropertyOrderingAfterSectionsReordered()
public void RecalculatePropertyOrderingAfterSectionsReordered()
RemoveProp(SectionNodeModel, PropertyNodeModel)
public void RemoveProp(SectionNodeModel fromSection, PropertyNodeModel prop)
Parameters
fromSectionSectionNodeModelpropPropertyNodeModel
RemoveSection(SectionNodeModel)
public void RemoveSection(SectionNodeModel section)
Parameters
sectionSectionNodeModel
ToString()
public override string ToString()
Returns
UpdateDummyTags()
public void UpdateDummyTags()