Click or drag to resize
DateTimeToken Class
A Token which represents a date or time expression.
Inheritance Hierarchy

Namespace: Sdl.LanguagePlatform.Core.Tokenization
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class DateTimeToken : Token, 
	ILocalizableToken

The DateTimeToken type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeToken
Initializes a new instance with default values.
Public methodDateTimeToken(DateTimeToken)
Initializes a new instance with the values of another token, creating a deep copy.
Public methodDateTimeToken(String, DateTime, DateTimePatternType)
Initializes a new instance with the specified values.
Top
Properties
  NameDescription
Public propertyDateTimePatternType
Gets or sets the pattern type
Public propertyIsDateToken
Gets a value to indicate whether this token represents a date or not.
Public propertyIsPlaceable
IsPlaceable. Always true for this class.
(Overrides TokenIsPlaceable.)
Public propertyIsPunctuation
true iff the token is a general punctuation, an opening punctuation, or a closing punctuation
(Inherited from Token.)
Public propertyIsSubstitutable
IsSubstitutable. Always true for this class.
(Overrides TokenIsSubstitutable.)
Public propertyIsTimeToken
Gets a value to indicate whether this token represents a time or not.
Public propertyIsWhitespace
Gets a value which indicates whether this token is a whitespace token or not.
(Inherited from Token.)
Public propertyIsWord
true iff the token is a word, an abbreviation, or an acronym
(Inherited from Token.)
Public propertySpan
Gets or sets the span covered by this token in the original segment.
(Inherited from Token.)
Public propertyText
Gets or sets the token's text.
(Inherited from Token.)
Public propertyType
Gets, or sets, the TokenType of this token.
(Inherited from Token.)
Public propertyValue
Gets or sets the value
Top
Methods
  NameDescription
Public methodAcceptSegmentElementVisitor
Visitor pattern implementation. Calls VisitDateTimeToken(DateTimeToken).
(Overrides SegmentElementAcceptSegmentElementVisitor(ISegmentElementVisitor).)
Public methodDuplicate (Overrides SegmentElementDuplicate.)
Public methodEquals
Equals(object)
(Overrides TokenEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
GetHashCode(object)
(Overrides TokenGetHashCode.)
Public methodGetSimilarity (Overrides SegmentElementGetSimilarity(SegmentElement).)
Protected methodGetTokenType (Overrides TokenGetTokenType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWeakHashCode (Inherited from Token.)
Public methodLocalize(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.

Public methodLocalize(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.

Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetTokenType (Inherited from Token.)
Public methodSetValue
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.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments