Class Factory
The default implementation of the Factory class
[AlternativeNamespace("http://schema.omg.org/spec/mof/2.0/emof.xmi")]
[XmlNamespace("http://schema.omg.org/spec/MOF/2.0/cmof.xml")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//Factory")]
public class Factory : Element, IFactory, IElement, 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, object)
public string ConvertToString(IDataType dataType, object @object)
Parameters
Returns
Create(IClass)
public IElement Create(IClass metaClass)
Parameters
metaClassIClass
Returns
CreateElement(IClass, IArgument)
public IElement CreateElement(IClass aClass, IArgument arguments)
Parameters
Returns
CreateFromString(IDataType, string)
public object 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)