Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    SegmentElement
    Token
    SimpleToken
    GenericPlaceableToken
    Inherited Members
    SimpleToken.SetTokenType(TokenType)
    SimpleToken.GetTokenType()
    SimpleToken.ToString()
    SimpleToken.AcceptSegmentElementVisitor(ISegmentElementVisitor)
    SimpleToken.Stem
    SimpleToken.IsStopword
    Token.GetWeakHashCode()
    Token.GetBundleSimilarity(SegmentElement)
    Token.TokenizationContext
    Token.Text
    Token.Span
    Token.Type
    Token.IsWord
    Token.IsPunctuation
    Token.IsWhitespace
    Token.Culture
    SegmentElement.GetSimilarity(SegmentElement, Boolean)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    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
    System.String text
    System.String tokenClass
    System.Boolean isSubstitutable

    Properties

    IsPlaceable

    IsPlaceable. Always returns true for instances of this class.

    Declaration
    public override bool IsPlaceable { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SimpleToken.IsPlaceable

    IsSubstitutable

    IsSubstitutable. Returns the value of the corresponding constructor flag.

    Declaration
    public override bool IsSubstitutable { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    SimpleToken.IsSubstitutable

    TokenClass

    Gets the value of the token class which has been used during construction.

    Declaration
    public string TokenClass { get; }
    Property Value
    Type Description
    System.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
    SimpleToken.Duplicate()

    Equals(Object)

    System.Object.Equals(object)
    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    SimpleToken.Equals(Object)

    GetHashCode()

    System.Object.GetHashCode(object)
    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    SimpleToken.GetHashCode()

    GetSimilarity(SegmentElement)

    GetSimilarity(SegmentElement). To be similar, instances need to have the same token class.

    Declaration
    public override SegmentElement.Similarity GetSimilarity(SegmentElement other)
    Parameters
    Type Name Description
    SegmentElement other

    The other instance.

    Returns
    Type Description
    SegmentElement.Similarity

    A value indicating the degree of similarity to the provided segment element.

    Overrides
    SimpleToken.GetSimilarity(SegmentElement)

    On this page

    • Constructors
      • GenericPlaceableToken(GenericPlaceableToken)
      • GenericPlaceableToken(String, String, Boolean)
    • Properties
      • IsPlaceable
      • IsSubstitutable
      • TokenClass
    • Methods
      • Duplicate()
      • Equals(Object)
      • GetHashCode()
      • GetSimilarity(SegmentElement)
    Back to top Generated by DocFX