Interface IInterface
The public interface for Interface
[DefaultImplementationType(typeof(Interface))]
[XmlDefaultImplementationType(typeof(Interface))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Interface")]
public interface IInterface : IClassifier, ITemplateableElement, IType, IPackageableElement, IParameterableElement, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inherited Members
Properties
NestedClassifier
References all the Classifiers that are defined (nested) within the Interface. <p>From package UML::SimpleClassifiers.</p>
[Browsable(false)]
[XmlElementName("nestedClassifier")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IClassifier> NestedClassifier { get; }
Property Value
OwnedAttribute
The attributes (i.e., the Properties) owned by the Interface. <p>From package UML::SimpleClassifiers.</p>
[Browsable(false)]
[XmlElementName("ownedAttribute")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("interface")]
IOrderedSetExpression<IProperty> OwnedAttribute { get; }
Property Value
OwnedOperation
The Operations owned by the Interface. <p>From package UML::SimpleClassifiers.</p>
[Browsable(false)]
[XmlElementName("ownedOperation")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("interface")]
IOrderedSetExpression<IOperation> OwnedOperation { get; }
Property Value
OwnedReception
Receptions that objects providing this Interface are willing to accept. <p>From package UML::SimpleClassifiers.</p>
[Browsable(false)]
[XmlElementName("ownedReception")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IReception> OwnedReception { get; }
Property Value
Protocol
References a ProtocolStateMachine specifying the legal sequences of the invocation of the BehavioralFeatures described in the Interface. <p>From package UML::SimpleClassifiers.</p>
[Browsable(false)]
[XmlElementName("protocol")]
[XmlAttribute(false)]
[Containment]
IProtocolStateMachine Protocol { get; set; }
Property Value
RedefinedInterface
References all the Interfaces redefined by this Interface. <p>From package UML::SimpleClassifiers.</p>
[XmlElementName("redefinedInterface")]
[XmlAttribute(true)]
ISetExpression<IInterface> RedefinedInterface { get; }
Property Value
Methods
CreateOwnedAttribute(string, IType, int, object)
Creates a property with the specified name, type, lower bound, and upper bound as an owned attribute of this interface.
IProperty CreateOwnedAttribute(string name, IType type, int lower, object upper)
Parameters
name
stringThe name for the new attribute, or null.
type
ITypeThe type for the new attribute, or null.
lower
intThe lower bound for the new attribute.
upper
objectThe upper bound for the new attribute.
Returns
CreateOwnedOperation(string, IEnumerable<string>, IEnumerable<IType>, IType)
Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this interface.
IOperation CreateOwnedOperation(string name, IEnumerable<string> parameterNames, IEnumerable<IType> parameterTypes, IType returnType)
Parameters
name
stringThe name for the new operation, or null.
parameterNames
IEnumerable<string>The parameter names for the new operation, or null.
parameterTypes
IEnumerable<IType>The parameter types for the new operation, or null.
returnType
ITypeThe return type for the new operation, or null.