Class ObjectPattern
An object pattern is a snip of an object in that it defines a subset of
the types of this object.
The name of the object pattern is considered to be unique in the relation, especially when checking for objectPatterns equality
Inheritance
ObjectPattern
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "ObjectPattern", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class ObjectPattern
Constructors
ObjectPattern()
ObjectPattern class constructor
Declaration
ObjectPattern(string, HashSet<PatternType>)
Declaration
public ObjectPattern(string name, HashSet<PatternType> types)
Parameters
Properties
Name
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Types
Declaration
[DataMember]
public HashSet<PatternType> Types { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static ObjectPattern Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out ObjectPattern)
Declaration
public static bool Deserialize(string xml, out ObjectPattern obj)
Parameters
Returns
Deserialize(string, out ObjectPattern, out Exception)
Deserializes workflow markup into an ObjectPattern object
Declaration
public static bool Deserialize(string xml, out ObjectPattern obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
ObjectPattern |
obj |
Output ObjectPattern 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 ObjectPattern LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out ObjectPattern)
Declaration
public static bool LoadFromFile(string fileName, out ObjectPattern obj)
Parameters
Returns
LoadFromFile(string, out ObjectPattern, out Exception)
Deserializes XML markup from file into an ObjectPattern object
Declaration
public static bool LoadFromFile(string fileName, out ObjectPattern obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
ObjectPattern |
obj |
Output ObjectPattern 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 ObjectPattern 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 ObjectPattern 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