Class GenericPlaceableToken
Represents a generic placeable token which is not one of the predefined placeable token classes. Generic placeable tokens can never be auto-localized, but may be auto-substitutable.
Inherited Members
Namespace: Sdl.LanguagePlatform.Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class GenericPlaceableToken : SimpleTokenConstructors
GenericPlaceableToken(GenericPlaceableToken)
Initializes a new instance with the values from another instance, creating a deep copy.
Declaration
public GenericPlaceableToken(GenericPlaceableToken other)Parameters
| Type | Name | Description | 
|---|---|---|
| GenericPlaceableToken | other | The instance to create a copy for | 
GenericPlaceableToken(String, String, Boolean)
Initializes a new instance with the specified token text, token class, and substitution flag. The token type will be set to OtherTextPlaceable.
Declaration
public GenericPlaceableToken(string text, string tokenClass, bool isSubstitutable)Parameters
| Type | Name | Description | 
|---|---|---|
| String | text | |
| String | tokenClass | |
| Boolean | isSubstitutable | 
Properties
IsPlaceable
IsPlaceable. Always returns true for instances of this class.
Declaration
public override bool IsPlaceable { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Overrides
IsSubstitutable
IsSubstitutable. Returns the value of the corresponding constructor flag.
Declaration
public override bool IsSubstitutable { get; }Property Value
| Type | Description | 
|---|---|
| Boolean | 
Overrides
TokenClass
Gets the value of the token class which has been used during construction.
Declaration
public string TokenClass { get; }Property Value
| Type | Description | 
|---|---|
| String | 
Methods
Duplicate()
See Duplicate()
Declaration
public override SegmentElement Duplicate()Returns
| Type | Description | 
|---|---|
| SegmentElement | A new instance that is a deep copy of this instance. | 
Overrides
Equals(Object)
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
GetHashCode()
System.Object.GetHashCode(object)
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 |