Search Results for

    Show / Hide Table of Contents

    Class DateTimeToken

    Inheritance
    System.Object
    SegmentElement
    Token
    DateTimeToken
    Implements
    ILocalizableToken
    Inherited Members
    Token.SetTokenType(TokenType)
    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.ToString()
    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 DateTimeToken : Token, ILocalizableToken

    Constructors

    DateTimeToken()

    Declaration
    public DateTimeToken()

    DateTimeToken(DateTimeToken)

    Declaration
    public DateTimeToken(DateTimeToken other)
    Parameters
    Type Name Description
    DateTimeToken other

    DateTimeToken(String, DateTime, DateTimePatternType)

    Declaration
    public DateTimeToken(string text, DateTime dateTime, DateTimePatternType type)
    Parameters
    Type Name Description
    System.String text
    System.DateTime dateTime
    DateTimePatternType type

    DateTimeToken(String, DateTime, DateTimePatternType, String)

    Declaration
    public DateTimeToken(string text, DateTime dateTime, DateTimePatternType type, string formatString)
    Parameters
    Type Name Description
    System.String text
    System.DateTime dateTime
    DateTimePatternType type
    System.String formatString

    Properties

    DateTimePatternType

    Declaration
    public DateTimePatternType DateTimePatternType { get; set; }
    Property Value
    Type Description
    DateTimePatternType

    FormatString

    Declaration
    public string FormatString { get; set; }
    Property Value
    Type Description
    System.String

    IsDateToken

    Declaration
    public bool IsDateToken { get; }
    Property Value
    Type Description
    System.Boolean

    IsPlaceable

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

    IsSubstitutable

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

    IsTimeToken

    Declaration
    public bool IsTimeToken { get; }
    Property Value
    Type Description
    System.Boolean

    Value

    Declaration
    public DateTime Value { get; set; }
    Property Value
    Type Description
    System.DateTime

    Methods

    AcceptSegmentElementVisitor(ISegmentElementVisitor)

    Declaration
    public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
    Parameters
    Type Name Description
    ISegmentElementVisitor visitor
    Overrides
    SegmentElement.AcceptSegmentElementVisitor(ISegmentElementVisitor)

    Duplicate()

    Declaration
    public override SegmentElement Duplicate()
    Returns
    Type Description
    SegmentElement
    Overrides
    SegmentElement.Duplicate()

    Equals(Object)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Token.GetHashCode()

    GetSimilarity(SegmentElement)

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

    GetTokenType()

    Declaration
    protected override TokenType GetTokenType()
    Returns
    Type Description
    TokenType
    Overrides
    Token.GetTokenType()

    Localize(CultureInfo, AutoLocalizationSettings)

    Declaration
    public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture
    AutoLocalizationSettings autoLocalizationSettings
    Returns
    Type Description
    System.Boolean

    Localize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean)

    Declaration
    public virtual bool Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, bool adjustCasing)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture
    AutoLocalizationSettings autoLocalizationSettings
    ILocalizableToken originalMemoryToken
    System.Boolean adjustCasing
    Returns
    Type Description
    System.Boolean

    SetValue(Token, Boolean)

    Declaration
    public virtual bool SetValue(Token blueprint, bool keepNumericSeparators)
    Parameters
    Type Name Description
    Token blueprint
    System.Boolean keepNumericSeparators
    Returns
    Type Description
    System.Boolean

    Implements

    ILocalizableToken

    On this page

    • Constructors
      • DateTimeToken()
      • DateTimeToken(DateTimeToken)
      • DateTimeToken(String, DateTime, DateTimePatternType)
      • DateTimeToken(String, DateTime, DateTimePatternType, String)
    • Properties
      • DateTimePatternType
      • FormatString
      • IsDateToken
      • IsPlaceable
      • IsSubstitutable
      • IsTimeToken
      • Value
    • Methods
      • AcceptSegmentElementVisitor(ISegmentElementVisitor)
      • Duplicate()
      • Equals(Object)
      • GetHashCode()
      • GetSimilarity(SegmentElement)
      • GetTokenType()
      • Localize(CultureInfo, AutoLocalizationSettings)
      • Localize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean)
      • SetValue(Token, Boolean)
    • Implements
    Back to top Generated by DocFX