Class TemplatePropertiesWrapper
Wraps Properties for handle templates like key=${value}.
Inheritance
System.Object
TemplatePropertiesWrapper
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FixAntenna.Configuration.dll
Syntax
public class TemplatePropertiesWrapper : ICloneable
Constructors
TemplatePropertiesWrapper()
Declaration
public TemplatePropertiesWrapper()
TemplatePropertiesWrapper(Properties)
Declaration
public TemplatePropertiesWrapper(Properties properties)
Parameters
TemplatePropertiesWrapper(IDictionary<String, String>)
Declaration
public TemplatePropertiesWrapper(IDictionary<string, string> properties)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.String> |
properties |
|
Fields
TemplEnd
Declaration
public const string TemplEnd = "}"
Field Value
Type |
Description |
System.String |
|
TemplNegation
Declaration
public const string TemplNegation = "!"
Field Value
Type |
Description |
System.String |
|
TemplNegationLen
Declaration
public static readonly int TemplNegationLen
Field Value
Type |
Description |
System.Int32 |
|
TemplStart
Declaration
public const string TemplStart = "${"
Field Value
Type |
Description |
System.String |
|
Methods
Clear()
Declaration
public virtual void Clear()
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Exists(String)
Declaration
public virtual bool Exists(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Returns
Type |
Description |
System.Boolean |
|
GetAllProperties()
Declaration
public virtual IDictionary<string, string> GetAllProperties()
Returns
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.String> |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetKeys()
Declaration
public virtual ISet<string> GetKeys()
Returns
Type |
Description |
System.Collections.Generic.ISet<System.String> |
|
GetProperty(String)
Gets value by key.
If value is template methods replace it by template value otherwise puts ' '.
Declaration
public virtual string GetProperty(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
String
|
GetProperty(String, String)
Gets value by key.
If value is template methods replace it by template value.
If template value doesn't exist it will be replace by defaultValue .
Declaration
public virtual string GetProperty(string key, string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
defaultValue |
|
Returns
Type |
Description |
System.String |
String
|
Put(String, String)
Declaration
public virtual void Put(string key, string value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
value |
|
Implements
System.ICloneable