Class MarkupData
Represents the base class for all markup data elements in the LiteBCM model. Provides common properties and methods for managing hierarchical relationships, unique identification, and visitor pattern support for markup data structures.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public abstract class MarkupData
Constructors
MarkupData()
Initializes a new instance of the MarkupData class.
Declaration
protected MarkupData()
MarkupData(String)
Initializes a new instance of the MarkupData class.
Declaration
protected MarkupData(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id | The identifier. |
Properties
Ancestors
This item's MarkupDataContainer ancestors, in ascending order.
Declaration
public IEnumerable<MarkupDataContainer> Ancestors { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MarkupDataContainer> |
Id
Markup data unique id (GUID). Can not be null.
Declaration
public virtual string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
IndexInParent
The index of this item in the parent MarkupDataContainer. -1 if it doesn't have a parent.
Declaration
public int IndexInParent { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
IsContainer
True if this MarkupData is a container. Otherwise false.
Declaration
public bool IsContainer { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Parent
The MarkupDataContainer parent container.
Declaration
public MarkupDataContainer Parent { get; }
Property Value
| Type | Description |
|---|---|
| MarkupDataContainer |
ParentFragment
The LiteFragment containing this item.
Declaration
public LiteFragment ParentFragment { get; }
Property Value
| Type | Description |
|---|---|
| LiteFragment |
ParentParagraph
The Paragraph containing this item.
Declaration
public Paragraph ParentParagraph { get; }
Property Value
| Type | Description |
|---|---|
| Paragraph |
ParentParagraphUnit
The ParagraphUnit containing this item.
Declaration
public virtual ParagraphUnit ParentParagraphUnit { get; }
Property Value
| Type | Description |
|---|---|
| ParagraphUnit |
ParentSegment
The Segment containing this item. Null if the item isn't inside of a Segment.
Declaration
public Segment ParentSegment { get; }
Property Value
| Type | Description |
|---|---|
| Segment |
Type
Gets or sets the type. Should be implement in derived classes to uniquely identify the type of MarkupData on deserialization.
Declaration
protected abstract string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The type. |
Methods
AcceptVisitor(LiteBcmVisitor)
Accepts a visitor of type LiteBcmVisitor.
Declaration
public abstract void AcceptVisitor(LiteBcmVisitor visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| LiteBcmVisitor | visitor | The LiteBcmVisitor used to visit this item. |