Class TagPair
A tag composed of a start and and end tag. Can contain other MarkupData elements.
Implements
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class TagPair : MarkupDataContainer, ISkeletonItemReference<TagPairDefinition>
Constructors
TagPair(Int32)
Initializes a new instance of the TagPair class.
Declaration
public TagPair(int tagPairDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | tagPairDefinitionId | The identifier for the TagPairDefinition |
TagPair(String, Int32)
Initializes a new instance of the TagPair class with the specified identifier and tag pair definition ID.
Declaration
public TagPair(string id, int tagPairDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
String | id | The unique identifier for the tag pair. Cannot be null or empty. |
Int32 | tagPairDefinitionId | The identifier of the tag pair definition associated with this tag pair. |
Properties
Definition
Gets the definition of this item from the Sdl.Core.Bcm.StudioPublicModel.Skeleton.FileSkeleton.
Declaration
public TagPairDefinition Definition { get; }
Property Value
Type | Description |
---|---|
TagPairDefinition | The definition of this item from the Sdl.Core.Bcm.StudioPublicModel.Skeleton.FileSkeleton. |
TagNumber
Gets or sets the TagNumber for this instance. This is the same as the "frameworkOriginalTagId" metadata but now exposed on the tag as well (the metadata will become deprecated). If needed, it will be populated on deserialization from the metadata, the value remains null iff not present (which should not be the case).
Declaration
public string TagNumber { get; set; }
Property Value
Type | Description |
---|---|
String |
TagPairDefinitionId
Gets or sets the TagPairDefinition id for this instance. When associated with a skeleton, the ID must correspond to a valid TagPairDefinition in the skeleton.
Declaration
public int TagPairDefinitionId { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The TagPairDefinition id for this instance. |
Type
Gets the type of MarkupData.
Declaration
protected override string Type { get; set; }
Property Value
Type | Description |
---|---|
String | The type. |
Overrides
Methods
AcceptVisitor(LiteBcmVisitor)
Accepts a visitor of type LiteBcmVisitor.
Declaration
public override void AcceptVisitor(LiteBcmVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
LiteBcmVisitor | visitor | The LiteBcmVisitor used to visit this item. |