45 lines
1.2 KiB
VB.net
45 lines
1.2 KiB
VB.net
Imports DigitalData.Modules.Patterns
|
|
|
|
Public Class Placeholder
|
|
''' <summary>
|
|
''' The internal Category of the placeholder, ie. the INT Part of {#INT#USERNAME}
|
|
''' </summary>
|
|
Public Property [Module] As String
|
|
|
|
''' <summary>
|
|
''' The internal Name of the placeholder, ie. the USERNAME Part of {#INT#USERNAME}
|
|
''' </summary>
|
|
Public Property Name As String
|
|
|
|
''' <summary>
|
|
''' The Value that this palceholder is replaced by, user entry.
|
|
''' </summary>
|
|
''' <returns></returns>
|
|
Public Property Value As String
|
|
|
|
''' <summary>
|
|
''' The internal pattern object
|
|
''' </summary>
|
|
''' <returns></returns>
|
|
Public Property Pattern As Pattern
|
|
|
|
Public Title As String
|
|
Public Description As String
|
|
|
|
Public Enum PlaceholderType
|
|
FileFlow
|
|
End Enum
|
|
|
|
Public Sub New(pTitle As String, pDescription As String, pModule As String, pName As String)
|
|
Title = pTitle
|
|
Description = pDescription
|
|
|
|
Name = pName
|
|
[Module] = pModule
|
|
End Sub
|
|
|
|
Public Overrides Function Equals(obj As Object) As Boolean
|
|
Return DirectCast(obj, Placeholder).Module = [Module] And
|
|
DirectCast(obj, Placeholder).Name = Name
|
|
End Function
|
|
End Class |