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: SdlSdl.LanguagePlatformCoreTokenization
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 |
---|---|---|
GenericPlaceableToken | 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 OtherTextPlaceable.
Declaration
public GenericPlaceableToken(string text, string tokenClass, bool isSubstitutable)
Parameters
Type | Name | Description |
---|---|---|
string | text | |
string | tokenClass | |
bool | isSubstitutable |
Properties
IsPlaceable
IsPlaceable. Always returns true
for instances of this class.
Declaration
public override bool IsPlaceable { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsSubstitutable
IsSubstitutable. Returns the value of the corresponding constructor flag.
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 |
---|---|
SegmentElement | A new instance that is a deep copy of this instance. |
Overrides
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |