Class Component
A component (a grouping of related functionality behind an interface that runs inside a container).
[DataContract]
public sealed class Component : StaticStructureElement, IEquatable<Component>
- Inheritance
-
Component
- Implements
- Inherited Members
Properties
CanonicalName
Gets the canonical name for this component.
public override string CanonicalName { get; }
Property Value
CodeElements
The implementation type (e.g. a fully qualified interface/class name).
[DataMember(Name = "code", EmitDefaultValue = false)]
public ISet<CodeElement> CodeElements { get; }
Property Value
Container
The container that this component belongs to.
public Container Container { get; }
Property Value
Parent
The container that owns this component.
public override Element Parent { get; set; }
Property Value
Size
The size of this component (e.g. lines of code).
[DataMember(Name = "size", EmitDefaultValue = true)]
public long Size { get; set; }
Property Value
Technology
The technology associated with this component (e.g. Spring Bean).
[DataMember(Name = "technology", EmitDefaultValue = false)]
public string Technology { get; set; }
Property Value
Type
Gets or sets the primary implementation type for this component.
public string Type { get; set; }
Property Value
Methods
AddSupportingType(string)
Adds a supporting implementation type to this component.
public CodeElement AddSupportingType(string type)
Parameters
typestringThe fully qualified type name to associate with the component.
Returns
- CodeElement
The created supporting CodeElement.
Equals(Component)
Compares this component with another component by canonical identity.
public bool Equals(Component component)
Parameters
componentComponentThe component to compare with.
Returns
GetRequiredTags()
Returns the tags that are always applied to components.
public override List<string> GetRequiredTags()