Class ObjectMatch
Stands for a matching of an object and an object pattern.
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "ObjectMatch", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class ObjectMatch
Constructors
ObjectMatch()
ObjectMatch class constructor
Declaration
ObjectMatch(string, ObjectPattern, HashSet<TypeMatch>)
Declaration
public ObjectMatch(string objectName, ObjectPattern objectPattern, HashSet<TypeMatch> types)
Parameters
Type |
Name |
Description |
string |
objectName |
The name of the object matching with the pattern
|
ObjectPattern |
objectPattern |
The object pattern
|
HashSet<TypeMatch> |
types |
The type matches (types of the objects matching the pattern)
|
Properties
ObjectName
Declaration
[DataMember]
public string ObjectName { get; set; }
Property Value
ObjectPattern
Declaration
[DataMember]
public ObjectPattern ObjectPattern { get; set; }
Property Value
Types
Declaration
[DataMember]
public HashSet<TypeMatch> Types { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static ObjectMatch Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out ObjectMatch)
Declaration
public static bool Deserialize(string xml, out ObjectMatch obj)
Parameters
Returns
Deserialize(string, out ObjectMatch, out Exception)
Deserializes workflow markup into an ObjectMatch object
Declaration
public static bool Deserialize(string xml, out ObjectMatch obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
ObjectMatch |
obj |
Output ObjectMatch 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)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
LoadFromFile(string)
Declaration
public static ObjectMatch LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out ObjectMatch)
Declaration
public static bool LoadFromFile(string fileName, out ObjectMatch obj)
Parameters
Returns
LoadFromFile(string, out ObjectMatch, out Exception)
Deserializes XML markup from file into an ObjectMatch object
Declaration
public static bool LoadFromFile(string fileName, out ObjectMatch obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
ObjectMatch |
obj |
Output ObjectMatch 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 ObjectMatch 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 ObjectMatch 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