Class Term
Terminology element.
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Skeleton
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
[DataContract]
public class Term : ExtensionDataContainer, ICloneable<Term>, IEquatable<Term>, ITermAttributeContainer
Constructors
Term()
Initializes a new instance of the Term class.
Declaration
public Term()
Properties
Id
Gets or sets the identifier.
Declaration
[DataMember(Name = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The identifier. |
Score
Gets or sets the terminology score.
Declaration
[DataMember(Name = "score")]
public double Score { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The terminology score. |
TermAttributes
Gets or sets term level attributes contained at any level within the termbase field structures.
Declaration
[DataMember(Name = "termAttributes")]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public DictionaryEx<string, object> TermAttributes { get; set; }
Property Value
| Type | Description |
|---|---|
| DictionaryEx<string, object> | The term attributes. |
TermOrigin
Gets or sets the term origin.
Declaration
[DataMember(Name = "termOrigin")]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public TermOrigin TermOrigin { get; set; }
Property Value
| Type | Description |
|---|---|
| TermOrigin | The term origin. |
TermTranslations
Gets or sets the term translations.
Declaration
[DataMember(Name = "termTranslations")]
public List<TermTranslation> TermTranslations { get; set; }
Property Value
| Type | Description |
|---|---|
| List<TermTranslation> | The term translations. |
Text
Gets or sets the terminology text.
Declaration
[DataMember(Name = "text")]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The terminology text. |
Methods
Clone()
Clones this instance.
Declaration
public Term Clone()
Returns
| Type | Description |
|---|---|
| Term | A deep clone of this instance. |
Equals(Term)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public bool Equals(Term other)
Parameters
| Type | Name | Description |
|---|---|---|
| Term | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for this instance. |
Overrides
ShouldSerializeTermAttributes()
Used by JSON serialization.
Declaration
public bool ShouldSerializeTermAttributes()
Returns
| Type | Description |
|---|---|
| bool |
ShouldSerializeTermTranslations()
Used by JSON serialization.
Declaration
public bool ShouldSerializeTermTranslations()
Returns
| Type | Description |
|---|---|
| bool |