Class Factory
The default implementation of the Factory class
[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Factory")]
public class Factory : Element, IFactory, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
Factory
- Implements
- Inherited Members
Properties
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Package
The package property
[XmlElementName("package")]
[XmlAttribute(true)]
public IPackage Package { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
ConvertToString(IDataType, IObject)
public string ConvertToString(IDataType dataType, IObject @object)
Parameters
Returns
Create(IClass)
public IElement Create(IClass metaClass)
Parameters
metaClassIClass
Returns
CreateElement(IClass, IEnumerable<IArgument>)
public IElement CreateElement(IClass @class, IEnumerable<IArgument> arguments)
Parameters
classIClassargumentsIEnumerable<IArgument>
Returns
CreateFromString(IDataType, string)
public IObject CreateFromString(IDataType dataType, string @string)
Parameters
Returns
CreateLink(IAssociation, IElement, IElement)
public ILink CreateLink(IAssociation association, IElement firstElement, IElement secondElement)
Parameters
associationIAssociationfirstElementIElementsecondElementIElement
Returns
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
referencestringThe requested reference in upper case
Returns
- INotifyExpression<IModelElement>
An incremental property expression
GetModelElementForReference(string, int)
Resolves the given URI to a child model element
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Returns
- IModelElement
The model element or null if it could not be found
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)