Class Realization
A realization is a possible instantiation of a relation.
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "Realization", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class Realization
Constructors
Realization()
Realization class constructor
Declaration
Realization(string, HashSet<ObjectMatch>)
Declaration
public Realization(string relationName, HashSet<ObjectMatch> objectMatches)
Parameters
Type |
Name |
Description |
string |
relationName |
Name of the relation this realization is from
|
HashSet<ObjectMatch> |
objectMatches |
Pattern matches to create the realization
|
Properties
ObjectMatches
Declaration
[DataMember]
public HashSet<ObjectMatch> ObjectMatches { get; set; }
Property Value
RelationName
Declaration
[DataMember]
public string RelationName { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static Realization Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out Realization)
Declaration
public static bool Deserialize(string xml, out Realization obj)
Parameters
Returns
Deserialize(string, out Realization, out Exception)
Deserializes workflow markup into an Realization object
Declaration
public static bool Deserialize(string xml, out Realization obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
Realization |
obj |
Output Realization 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
FromJson(string)
Declaration
public static Realization FromJson(string data)
Parameters
Type |
Name |
Description |
string |
data |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
LoadFromFile(string)
Declaration
public static Realization LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out Realization)
Declaration
public static bool LoadFromFile(string fileName, out Realization obj)
Parameters
Returns
LoadFromFile(string, out Realization, out Exception)
Deserializes XML markup from file into an Realization object
Declaration
public static bool LoadFromFile(string fileName, out Realization obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
Realization |
obj |
Output Realization 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 Realization 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 Realization object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|
ToJson()
Declaration
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides