Class ObjectType
The name of the type is considered to be unique, especially when checking for objectType equality
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "ObjectType", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class ObjectType : IObjectType
Constructors
ObjectType()
ObjectType class constructor
Declaration
ObjectType(string, Type, IObject)
Declaration
public ObjectType(string name, Type type, IObject owner = null)
Parameters
Type |
Name |
Description |
string |
name |
The name of the type in the object
|
Type |
type |
The type
|
IObject |
owner |
The object that owns this type
|
Properties
Name
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Owner
The IObject that owns this type
Declaration
public IObject Owner { get; set; }
Property Value
Type
Declaration
[DataMember]
public Type Type { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static ObjectType Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out ObjectType)
Declaration
public static bool Deserialize(string xml, out ObjectType obj)
Parameters
Returns
Deserialize(string, out ObjectType, out Exception)
Deserializes workflow markup into an ObjectType object
Declaration
public static bool Deserialize(string xml, out ObjectType obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
ObjectType |
obj |
Output ObjectType 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 ObjectType LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out ObjectType)
Declaration
public static bool LoadFromFile(string fileName, out ObjectType obj)
Parameters
Returns
LoadFromFile(string, out ObjectType, out Exception)
Deserializes XML markup from file into an ObjectType object
Declaration
public static bool LoadFromFile(string fileName, out ObjectType obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
ObjectType |
obj |
Output ObjectType 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 ObjectType 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 ObjectType 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
Implements