Class Object
An object that can potentially interact with other objects. The name of the object is considered to be unique, especially when checking for Object equality
Implements
Inherited Members
Namespace: Xareus.Relations
Assembly: Xareus.Relations.dll
Syntax
[Serializable]
[DataContract(Name = "Object", Namespace = "http://www.insa-rennes.fr/Xareus.Relations")]
public class Object : IObject
Constructors
Object()
Object class constructor
Declaration
public Object()
Object(string, HashSet<IObjectType>)
Constructor
Declaration
public Object(string name, HashSet<IObjectType> types)
Parameters
Type | Name | Description |
---|---|---|
string | name | The object name (must be unique) |
HashSet<IObjectType> | types | The object types |
Properties
Name
The unique name of the object
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Types
The types this object holds
Declaration
[DataMember]
public HashSet<IObjectType> Types { get; set; }
Property Value
Type | Description |
---|---|
HashSet<IObjectType> |
Methods
Deserialize(string)
Declaration
public static Object Deserialize(string xml)
Parameters
Type | Name | Description |
---|---|---|
string | xml |
Returns
Type | Description |
---|---|
Object |
Deserialize(string, out Object)
Declaration
public static bool Deserialize(string xml, out Object obj)
Parameters
Type | Name | Description |
---|---|---|
string | xml | |
Object | obj |
Returns
Type | Description |
---|---|
bool |
Deserialize(string, out Object, out Exception)
Deserializes workflow markup into an Object object
Declaration
public static bool Deserialize(string xml, out Object obj, out Exception exception)
Parameters
Type | Name | Description |
---|---|---|
string | xml | string workflow markup to deserialize |
Object | obj | Output Object 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
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
LoadFromFile(string)
Declaration
public static Object LoadFromFile(string fileName)
Parameters
Type | Name | Description |
---|---|---|
string | fileName |
Returns
Type | Description |
---|---|
Object |
LoadFromFile(string, out Object)
Declaration
public static bool LoadFromFile(string fileName, out Object obj)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | |
Object | obj |
Returns
Type | Description |
---|---|
bool |
LoadFromFile(string, out Object, out Exception)
Deserializes XML markup from file into an Object object
Declaration
public static bool LoadFromFile(string fileName, out Object obj, out Exception exception)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | string xml file to load and deserialize |
Object | obj | Output Object 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 Object 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 Object object into an XML document
Declaration
public virtual string Serialize()
Returns
Type | Description |
---|---|
string | string XML value |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |