Class TypeMatch
A TypeMatch links a pattern type to an object type
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "TypeMatch", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class TypeMatch
Constructors
TypeMatch()
Declaration
TypeMatch(string, string)
Declaration
public TypeMatch(string patternType, string objectType)
Parameters
Properties
ObjectType
Declaration
[DataMember]
public string ObjectType { get; set; }
Property Value
PatternType
Declaration
[DataMember]
public string PatternType { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static TypeMatch Deserialize(string xml)
Parameters
| Type |
Name |
Description |
| string |
xml |
|
Returns
Deserialize(string, out TypeMatch)
Declaration
public static bool Deserialize(string xml, out TypeMatch obj)
Parameters
Returns
Deserialize(string, out TypeMatch, out Exception)
Deserializes workflow markup into an TypeMatch object
Declaration
public static bool Deserialize(string xml, out TypeMatch obj, out Exception exception)
Parameters
| Type |
Name |
Description |
| string |
xml |
string workflow markup to deserialize
|
| TypeMatch |
obj |
Output TypeMatch object
|
| Exception |
exception |
output Exception value if deserialize failed
|
Returns
| Type |
Description |
| bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The object to compare with the current object.
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
LoadFromFile(string)
Declaration
public static TypeMatch LoadFromFile(string fileName)
Parameters
| Type |
Name |
Description |
| string |
fileName |
|
Returns
LoadFromFile(string, out TypeMatch)
Declaration
public static bool LoadFromFile(string fileName, out TypeMatch obj)
Parameters
Returns
LoadFromFile(string, out TypeMatch, out Exception)
Deserializes XML markup from file into an TypeMatch object
Declaration
public static bool LoadFromFile(string fileName, out TypeMatch obj, out Exception exception)
Parameters
| Type |
Name |
Description |
| string |
fileName |
string xml file to load and deserialize
|
| TypeMatch |
obj |
Output TypeMatch object
|
| Exception |
exception |
output Exception value if deserialize failed
|
Returns
| Type |
Description |
| bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
SaveToFile(string)
Declaration
public virtual void SaveToFile(string fileName)
Parameters
| Type |
Name |
Description |
| string |
fileName |
|
SaveToFile(string, out Exception)
Serializes current TypeMatch object into file
Declaration
public virtual bool SaveToFile(string fileName, out Exception exception)
Parameters
| Type |
Name |
Description |
| string |
fileName |
full path of output XML file
|
| Exception |
exception |
output Exception value if failed
|
Returns
| Type |
Description |
| bool |
true if can serialize and save into file; otherwise, false
|
Serialize()
Serializes current TypeMatch object into an XML document
Declaration
public virtual string Serialize()
Returns
| Type |
Description |
| string |
string XML value
|
ToString()
Declaration
public override string ToString()
Returns
Overrides