Click or drag to resize
GenericPlaceableToken Class
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 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 GenericPlaceableToken : SimpleToken

The GenericPlaceableToken type exposes the following members.

Constructors
  NameDescription
Public methodGenericPlaceableToken(GenericPlaceableToken)
Initializes a new instance with the values from another instance, creating a deep copy.
Public methodGenericPlaceableToken(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.
Top
Properties
  NameDescription
Public propertyIsPlaceable
IsPlaceable. Always returns true for instances of this class.
(Overrides SimpleTokenIsPlaceable.)
Public propertyIsPunctuation
true iff the token is a general punctuation, an opening punctuation, or a closing punctuation
(Inherited from Token.)
Public propertyIsStopword
Gets or sets whether this token is a stop word
(Inherited from SimpleToken.)
Public propertyIsSubstitutable
IsSubstitutable. Returns the value of the corresponding constructor flag.
(Overrides SimpleTokenIsSubstitutable.)
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 propertyStem
An optional stem to assign to this token. Stems are used for TM search and scoring.
(Inherited from SimpleToken.)
Public propertyText
Gets or sets the token's text.
(Inherited from Token.)
Public propertyTokenClass
Gets the value of the token class which has been used during construction.
Public propertyType
Gets, or sets, the TokenType of this token.
(Inherited from Token.)
Top
Methods
  NameDescription
Public methodAcceptSegmentElementVisitor
Visitor pattern implementation. Calls VisitSimpleToken(SimpleToken).
(Inherited from SimpleToken.)
Public methodDuplicate (Overrides SimpleTokenDuplicate.)
Public methodEquals
Equals(object)
(Overrides SimpleTokenEquals(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 SimpleTokenGetHashCode.)
Public methodGetSimilarity
GetSimilarity(SegmentElement). To be similar, instances need to have the same token class.
(Overrides SimpleTokenGetSimilarity(SegmentElement).)
Protected methodGetTokenType (Inherited from SimpleToken.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWeakHashCode (Inherited from Token.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetTokenType
Overwrites the token type. This should only be done with caution, and to reclassify exchangeable token types (acronyms, words, abbreviations). In particular, do not set the token type to one of the special (localizable) token types.
(Inherited from SimpleToken.)
Public methodToString (Inherited from SimpleToken.)
Top
See Also
Community
Edit

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