Class PatternType
A PatternType is an association between a pattern entry name and a required type
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "PatternType", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class PatternType
Constructors
PatternType()
PatternType class constructor
Declaration
PatternType(string, Type)
Declaration
public PatternType(string name, Type type)
Parameters
Type |
Name |
Description |
string |
name |
The name of the type in the pattern
|
Type |
type |
The type
|
Properties
Name
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type
Declaration
[DataMember]
public Type Type { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static PatternType Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out PatternType)
Declaration
public static bool Deserialize(string xml, out PatternType obj)
Parameters
Returns
Deserialize(string, out PatternType, out Exception)
Deserializes workflow markup into an PatternType object
Declaration
public static bool Deserialize(string xml, out PatternType obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
PatternType |
obj |
Output PatternType 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 PatternType LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out PatternType)
Declaration
public static bool LoadFromFile(string fileName, out PatternType obj)
Parameters
Returns
LoadFromFile(string, out PatternType, out Exception)
Deserializes XML markup from file into an PatternType object
Declaration
public static bool LoadFromFile(string fileName, out PatternType obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
PatternType |
obj |
Output PatternType 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 PatternType 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 PatternType object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|