| DateTimeToken Class |
Namespace: Sdl.LanguagePlatform.Core.Tokenization
The DateTimeToken type exposes the following members.
| Name | Description | |
|---|---|---|
| DateTimeToken |
Initializes a new instance with default values.
| |
| DateTimeToken(DateTimeToken) |
Initializes a new instance with the values of another token, creating a deep copy.
| |
| DateTimeToken(String, DateTime, DateTimePatternType) |
Initializes a new instance with the specified values.
|
| Name | Description | |
|---|---|---|
| DateTimePatternType |
Gets or sets the pattern type
| |
| IsDateToken |
Gets a value to indicate whether this token represents a date or not.
| |
| IsPlaceable | IsPlaceable. Always true for this class.
(Overrides TokenIsPlaceable.) | |
| IsPunctuation |
true iff the token is a general punctuation, an opening punctuation, or a closing punctuation
(Inherited from Token.) | |
| IsSubstitutable | IsSubstitutable. Always true for this class.
(Overrides TokenIsSubstitutable.) | |
| IsTimeToken |
Gets a value to indicate whether this token represents a time or not.
| |
| IsWhitespace |
Gets a value which indicates whether this token is a whitespace token or not.
(Inherited from Token.) | |
| IsWord |
true iff the token is a word, an abbreviation, or an acronym
(Inherited from Token.) | |
| Span |
Gets or sets the span covered by this token in the original segment.
(Inherited from Token.) | |
| Text |
Gets or sets the token's text.
(Inherited from Token.) | |
| Type |
Gets, or sets, the TokenType of this token.
(Inherited from Token.) | |
| Value |
Gets or sets the value
|
| Name | Description | |
|---|---|---|
| AcceptSegmentElementVisitor |
Visitor pattern implementation. Calls VisitDateTimeToken(DateTimeToken).
(Overrides SegmentElementAcceptSegmentElementVisitor(ISegmentElementVisitor).) | |
| Duplicate |
See Duplicate (Overrides SegmentElementDuplicate.) | |
| Equals | Equals(object) (Overrides TokenEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | GetHashCode(object) (Overrides TokenGetHashCode.) | |
| GetSimilarity | (Overrides SegmentElementGetSimilarity(SegmentElement).) | |
| GetTokenType | (Overrides TokenGetTokenType.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetWeakHashCode |
See GetWeakHashCode (Inherited from Token.) | |
| Localize(CultureInfo, AutoLocalizationSettings) |
Auto-localizes the token according to the settings of the specified target culture
and the provided auto-localization settings. The text of the token will be changed,
but not the values.
For some token types, special AutoLocalizationSettings will be used, if provided. | |
| Localize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean) |
Auto-localizes the token according to the settings of the specified target culture
and the provided auto-localization settings. The text of the token will be changed,
but not the values.
For some token types, special AutoLocalizationSettings will be used, if provided. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetTokenType | (Inherited from Token.) | |
| SetValue |
Overwrites the current token's value with the value from blueprint, which
also must be a DateTimeToken. Note that only the value and the type are
overwritten, not the textual representation.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |