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.
Inherited Members
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
IsSubstitutable
IsSubstitutable. Returns the value of the corresponding constructor flag.
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
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
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
GetHashCode()
System.Object.GetHashCode(object)
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |