This class provides methods to serialize and deserialize Vecto vehicle job declarations to and from XML format, applying necessary schema normalization such as decimal scaling and UTC timestamp formatting.
More...
|
|
static void | SerializeJob (Stream output, IVehicleJobDeclaration vectoInputDeclaration) |
| | Serializes a IVehicleJobDeclaration to the specified output stream as XML, applying schema normalization (e.g., decimal scale, UTC timestamps) before serialization.
|
| static IVehicleJobDeclaration | CreateVehicleJobDeclaration (IVehicleDeclaration vehicle) |
| | Creates the vehicle job declaration.
|
|
static void | SerializeJob (string filePath, IVehicleJobDeclaration vectoInputDeclaration) |
| | Serializes a IVehicleJobDeclaration to the specified output file, applying schema normalization (e.g., decimal scale, UTC timestamps) before serialization.
|
|
static bool | TryGetSerializer (Stream xmlStream, out XmlSerializer serializer, out Type rootType, out string error) |
| | Creates an XmlSerializer for the root element of the specified XML stream. This method inspects the root element of the specified XML stream to determine its type and namespace. If the root element and namespace are recognized, it returns a serializer configured for that type. Otherwise, it returns an error indicating the unknown root element or namespace.
|
|
static bool | TryGetSerializer (string xmlFilePath, out XmlSerializer serializer, out Type rootType, out string error) |
| | Creates an XmlSerializer for the root element of the specified XML file. This method inspects the root element of the specified XML file to determine its type and namespace. If the root element and namespace are recognized, it returns a serializer configured for that type. Otherwise, it returns an error indicating the unknown root element or namespace.
|
|
static void | SerializeFixed (this XmlSerializer serializer, Stream stream, object obj) |
| | Recursively normalizes an object graph before XML serialization to produce schema-friendly output.
|
This class provides methods to serialize and deserialize Vecto vehicle job declarations to and from XML format, applying necessary schema normalization such as decimal scaling and UTC timestamp formatting.
◆ CreateVehicleJobDeclaration()
Creates the vehicle job declaration.
- Parameters
-
- Returns
- Exceptions
-
| System.InvalidOperationException | Unsupported job type: {vehicleType.FullName} |
The documentation for this class was generated from the following file:
- VectoObjects/Helpers/VectoXml.cs