Class GenericPlaceableToken
Represents a generic, abstract token, which is a sequence of characters in the input. A token is identified using a tokenizer, which breaks up the sequence of characters in the input into a sequence of tokens. That token sequence is non-overlapping, but not necessarily contiguous.
Inherited Members
Namespace: Sdl.LanguagePlatform .Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
[DataContract]
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, bool)
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
Properties
IsPlaceable
Istrue
for instances of this class.
Declaration
public override bool IsPlaceable { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsSubstitutable
Is
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
bool |
Overrides
GetHashCode()
System.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |