An AbstractData for a simple value, e.g. string, bool, int.
More...
Inherits MSWifiImportPlugin.AbstractData, and IXmlSerializable.
Inherited by MSWifiImportPlugin.WlanProfile, MSWifiImportPlugin.WlanProfile.IHV, MSWifiImportPlugin.WlanProfile.IHV.ConnectivityData, MSWifiImportPlugin.WlanProfile.IHV.IHVSecurityData, MSWifiImportPlugin.WlanProfile.IHV.OuiHeaderData, MSWifiImportPlugin.WlanProfile.MacRandData, MSWifiImportPlugin.WlanProfile.MSMData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.AuthEncryptionData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData.EAPTypeEapData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData.EAPTypeEapData.EAPTypeEaptTypeData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData.PeapExtensionsData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData.PeapExtensionsData.PeapExtensionsV2Data, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.BaseEapMethodConfig.EAPConfigEAPData.EAPConfigTypeData.ServerValData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.EAPConfigData.EAPHostConfigData.EAPMethodeData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.OneXData.SingleSignOnData, MSWifiImportPlugin.WlanProfile.MSMData.SecurityData.SharedKeyData, MSWifiImportPlugin.WlanProfile.SSIDConfigData, and MSWifiImportPlugin.WlanProfile.SSIDConfigData.SSIDData< T >.
|
delegate T | DFctFromString (ProtectedString val) |
| A Function translating a string (from a .xml-file or from a db entry) to the value More...
|
|
delegate ProtectedString | DFctToString (T val, bool protect) |
| A function translating the value to a string (to write it to a db entry) More...
|
|
delegate bool | DValidString (ProtectedString val) |
| Whether the given string can be translated to a valid data More...
|
|
delegate bool | DValidValue (T val) |
| Is the value of the data is valid More...
|
|
| Data (DFctFromString fromString, DFctToString toString, String eName, bool eIsMandory=false, DValidString isValidString=null, DValidValue isValid=null) |
| Standard constructor More...
|
|
bool | IsValidValue (T val) |
| Whether a given value would be a valid one if this is set to it. More...
|
|
bool | IsValidValueString (ProtectedString val) |
| Whether a given string would give a valid value if this is set to it. More...
|
|
override void | WriteXml (XmlWriter writer) |
| Writes the data to a XML-file More...
|
|
override void | ReadXml (XmlReader reader) |
| Reads the data from a XML-file More...
|
|
override bool | ExistsIn (PwDatabase db, PwEntry entry) |
| Checks whether the data is contained in a given entry More...
|
|
override bool | SaveIn (PwDatabase db, PwEntry entry) |
| Writes a data to a given enty in a database More...
|
|
override bool | LoadFrom (PwDatabase db, PwEntry entry) |
| Reads a data from a given enty in a database More...
|
|
override void | ClearIn (PwDatabase db, PwEntry entry) |
| Deletes the data from a given enty in a database More...
|
|
override void | Clear () |
| Clears the data More...
|
|
XmlSchema | GetSchema () |
|
void | WriteXml (XmlWriter writer) |
| Writes the data to a XML-file More...
|
|
void | ReadXml (XmlReader reader) |
| Reads the data from a XML-file More...
|
|
bool | SaveIn (PwDatabase db, PwEntry entry) |
| Saves the data in an entry in a database More...
|
|
bool | LoadFrom (PwDatabase db, PwEntry entry) |
| Reads the data from an entry in a database More...
|
|
void | ClearIn (PwDatabase db, PwEntry entry) |
| Delete the data from an entry in a database More...
|
|
void | Clear () |
| Deletes the content saved in the data More...
|
|
XmlSchema | GetSchema () |
| Always null More...
|
|
|
DFctFromString | FctFromString [get, set] |
| The FctFromString for the given data More...
|
|
DFctToString | FctToString [get, set] |
| The FctToString for the given data More...
|
|
DValidString | FctIsValidString [get, set] |
| The ValidString for the given data More...
|
|
DValidValue | FctIsValid [get, set] |
| The ValidValue for the given data More...
|
|
T | Value [get, set] |
| The value saved in the data More...
|
|
override bool | IsValid [get] |
|
override bool | WriteNecessary [get] |
|
virtual bool | IsValid [get] |
| The data is valid if all mandory subentries are valid More...
|
|
bool | IsMandory [get, set] |
| If this is true and this is invalid, then its parent is invalid, too. More...
|
|
String | EntryName [get, set] |
| Name of the value in the database More...
|
|
abstract bool | WriteNecessary [get] |
| Whether the value must be written in the XML-file, i.e. its valid but not empty. More...
|
|
abstract bool | IsValid [get] |
| Whether the data is valid, i.e. all mandory subentries have to valid. More...
|
|
An AbstractData for a simple value, e.g. string, bool, int.
A complex type. When the data is written to/read from a .xml-file or a database entry, then each of its properties (if it is of a subclass of AbstractData) will be written/read correspondingly (and the result of the process is calculated by the process of its properties).
- Template Parameters
-
T | What is saved in the Data |
◆ Data()
Standard constructor
- Parameters
-
fromString | DFctFromString |
toString | DFctToString |
eName | The name in the database entry |
eIsMandory | Whether the data is valid |
isValidString | DFctIsValidString |
isValid | DFctIsValid |
◆ Clear() [1/2]
◆ Clear() [2/2]
◆ ClearIn() [1/2]
Delete the data from an entry in a database
- Parameters
-
db | The database in which the entry lies |
entry | The entry from which the data will be erased |
Implements MSWifiImportPlugin.AbstractData.
◆ ClearIn() [2/2]
Deletes the data from a given enty in a database
- Parameters
-
db | The database in which the entry is safed |
entry | The entry from which the data will be removed. |
Implements MSWifiImportPlugin.AbstractData.
◆ DFctFromString()
A Function translating a string (from a .xml-file or from a db entry) to the value
- Parameters
-
val | The string to be translated |
- Returns
- The translated value
◆ DFctToString()
A function translating the value to a string (to write it to a db entry)
- Parameters
-
val | The value to be translated |
protect | Whether the translated value has to be encrypted. |
- Returns
- The translated value
◆ DValidString()
Whether the given string can be translated to a valid data
- Parameters
-
val | The string to be translated |
- Returns
- Whether the string can be translated
◆ DValidValue()
Is the value of the data is valid
- Parameters
-
val | The value to be checked |
- Returns
- Whether the value is valid
◆ ExistsIn()
◆ FromString()
Sets the value from a given string
- Parameters
-
<return>Whether a valid value was set.</return> Note that if a non-valid string is given, then value is cleared
◆ IsValidValue()
Whether a given value would be a valid one if this is set to it.
- Parameters
-
val | The value to be checked. |
- Returns
- Whether the value is a valid one.
◆ IsValidValueString()
Whether a given string would give a valid value if this is set to it.
- Parameters
-
val | The value to be checked. |
- Returns
- Whether the value is a valid one.
◆ LoadFrom() [1/2]
Reads the data from an entry in a database
- Parameters
-
db | The database in which the entry lies |
entry | The entry from which the data will be read |
- Returns
- Whether the read process was successfull, i.e. a valid element was read.
Note that invalid read data will always be cleared.
Implements MSWifiImportPlugin.AbstractData.
◆ LoadFrom() [2/2]
Reads a data from a given enty in a database
- Parameters
-
db | The database in which the entry is safed |
entry | The entry in which the data was saved. |
- Returns
- Whether the data is successfully loaded.
Implements MSWifiImportPlugin.AbstractData.
◆ ReadXml() [1/2]
◆ ReadXml() [2/2]
◆ SaveIn() [1/2]
Saves the data in an entry in a database
- Parameters
-
db | The database in which the entry lies |
entry | The entry in which the data wil be written |
- Returns
- Whether the write process was successfull.
Note that all data in entry will be removed or replaced!
Note that an invalid value will never be successfull written to the db.
Implements MSWifiImportPlugin.AbstractData.
◆ SaveIn() [2/2]
Writes a data to a given enty in a database
- Parameters
-
db | The database in which the entry is safed |
entry | The entry in which the data will be safed. |
- Returns
- Whether the data is successfully saved.
Implements MSWifiImportPlugin.AbstractData.
◆ WriteXml() [1/2]
◆ WriteXml() [2/2]
◆ LastInputValid
Whether the value was valid after setting/reading it the last time.
◆ FctFromString
◆ FctIsValid
The ValidValue for the given data
◆ FctIsValidString
The ValidString for the given data
◆ FctToString
◆ IsValid
The data is valid if all mandory subentries are valid
- Returns
- Whether the data is valid
◆ Value
The value saved in the data
Note that the setting function also resets 'isValid'.
The documentation for this class was generated from the following files: