Class Fragment
Class representing an independent fragment (slice) of a BCM Document.
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class Fragment : MetadataContainer, ICloneable<Fragment>
Constructors
Fragment()
Initializes a new instance of the Fragment class.
Declaration
public Fragment()
Properties
CommentDefinitionIds
Gets or sets the list of Comment
Declaration
public List<int> CommentDefinitionIds { get; set; }
Property Value
Type | Description |
---|---|
System. |
The list of Comment |
ContextList
Gets or sets the list of Context IDs associated with this fragment.
Declaration
public IList<int> ContextList { get; set; }
Property Value
Type | Description |
---|---|
System. |
The list of Context IDs associated with this fragment.. |
DocumentId
Gets or sets the document identifier.
Declaration
public string DocumentId { get; set; }
Property Value
Type | Description |
---|---|
System. |
The document identifier which uniquely identifies this BCM Fragment. |
Index
The index in the source Document from where this fragment was extracted.
Declaration
public Nullable<int> Index { get; set; }
Property Value
Type | Description |
---|---|
System. |
The index in the source Document from where this fragment was extracted. |
Skeleton
Gets or sets the File skeleton.
Declaration
public FileSkeleton Skeleton { get; set; }
Property Value
Type | Description |
---|---|
File |
The file skeleton. |
SourceContent
Gets or sets the source content of the BCM fragment.
Declaration
public MarkupData SourceContent { get; set; }
Property Value
Type | Description |
---|---|
Markup |
The source content of the Fragment. |
SourceLanguageCode
Gets or sets the source language code.
Declaration
public string SourceLanguageCode { get; set; }
Property Value
Type | Description |
---|---|
System. |
The source language code. |
StructureContextId
Gets or sets the structure Context associated with this fragment.
Declaration
public int StructureContextId { get; set; }
Property Value
Type | Description |
---|---|
System. |
The structure Context associated with this fragment. |
TargetContent
Gets or sets the target content of the BCM fragment.
Declaration
public MarkupData TargetContent { get; set; }
Property Value
Type | Description |
---|---|
Markup |
The target content of the BCM fragment. |
TargetLanguageCode
Gets or sets the target language code.
Declaration
public string TargetLanguageCode { get; set; }
Property Value
Type | Description |
---|---|
System. |
The target language code. |
Methods
Clone()
Clones this instance.
Declaration
public Fragment Clone()
Returns
Type | Description |
---|---|
Fragment | A deep clone of this instance. |
Equals(Fragment)
Performs a deep-equals comparison.
Declaration
public bool Equals(Fragment other)
Parameters
Type | Name | Description |
---|---|---|
Fragment | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System. |
true if the current object is equal to the |
Equals(Object)
Performs a deep-equals comparison.
System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance. |
Overrides
ShouldSerializeCommentDefinitionIds()
Used by JSON.NET serialization.
Declaration
public bool ShouldSerializeCommentDefinitionIds()
Returns
Type | Description |
---|---|
System. |
|
ShouldSerializeContextList()
Used by JSON.NET serialization.
Declaration
public bool ShouldSerializeContextList()
Returns
Type | Description |
---|---|
System. |
|
ShouldSerializeSkeleton()
Used by JSON.NET serialization.
Declaration
public bool ShouldSerializeSkeleton()
Returns
Type | Description |
---|---|
System. |
|
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A System. |