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 : SimpleToken
Constructors
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 |
---|---|---|
Generic |
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 Other
Declaration
public GenericPlaceableToken(string text, string tokenClass, bool isSubstitutable)
Parameters
Type | Name | Description |
---|---|---|
String | text | |
String | tokenClass | |
Boolean | isSubstitutable |
Properties
IsPlaceable
Istrue
for instances of this class.
Declaration
public override bool IsPlaceable { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSubstitutable
Is
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 |
---|---|
Segment |
A new instance that is a deep copy of this instance. |
Overrides
Equals(Object)
System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetHashCode()
System.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |