public interface Port extends Property
From package UML::StructuredClassifiers.
The following features are supported:
UMLPackage.getPort()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.util.EList<Interface> |
basicProvided()
The union of the sets of Interfaces realized by the type of the Port and its supertypes, or directly the type of the Port if the Port is typed by an Interface.
|
org.eclipse.emf.common.util.EList<Interface> |
basicRequired()
The union of the sets of Interfaces used by the type of the Port and its supertypes.
|
ProtocolStateMachine |
getProtocol()
Returns the value of the 'Protocol' reference
|
Interface |
getProvided(java.lang.String name)
Retrieves the first
Interface with the specified 'Name' from the 'Provided' reference list |
Interface |
getProvided(java.lang.String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the 'Provided' reference list |
org.eclipse.emf.common.util.EList<Interface> |
getProvideds()
Returns the value of the 'Provided' reference list.
|
Port |
getRedefinedPort(java.lang.String name,
Type type)
Retrieves the first
Port with the specified 'Name', and 'Type' from the 'Redefined Port' reference list |
Port |
getRedefinedPort(java.lang.String name,
Type type,
boolean ignoreCase)
Retrieves the first
Port with the specified 'Name', and 'Type' from the 'Redefined Port' reference list |
org.eclipse.emf.common.util.EList<Port> |
getRedefinedPorts()
Returns the value of the 'Redefined Port' reference list.
|
Interface |
getRequired(java.lang.String name)
Retrieves the first
Interface with the specified 'Name' from the 'Required' reference list |
Interface |
getRequired(java.lang.String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the 'Required' reference list |
org.eclipse.emf.common.util.EList<Interface> |
getRequireds()
Returns the value of the 'Required' reference list.
|
boolean |
isBehavior()
Returns the value of the 'Is Behavior' attribute.
|
boolean |
isConjugated()
Returns the value of the 'Is Conjugated' attribute.
|
boolean |
isService()
Returns the value of the 'Is Service' attribute.
|
void |
setIsBehavior(boolean value)
Sets the value of the '
Is Behavior ' attribute |
void |
setIsConjugated(boolean value)
Sets the value of the '
Is Conjugated ' attribute |
void |
setIsService(boolean value)
Sets the value of the '
Is Service ' attribute |
void |
setProtocol(ProtocolStateMachine value)
Sets the value of the '
Protocol ' reference |
boolean |
validateDefaultValue(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A defaultValue for port cannot be specified when the type of the Port is an Interface.
|
boolean |
validateEncapsulatedOwner(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
All Ports are owned by an EncapsulatedClassifier.
|
boolean |
validatePortAggregation(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Port.aggregation must be composite.
|
createDefaultValue, createQualifier, createQualifier, getAggregation, getAssociation, getAssociationEnd, getClass_, getDatatype, getDefault, getDefaultValue, getInterface, getOpposite, getOtherEnd, getOwningAssociation, getQualifier, getQualifier, getQualifiers, getRedefinedProperties, getRedefinedProperty, getRedefinedProperty, getSubsettedProperties, getSubsettedProperty, getSubsettedProperty, isAttribute, isComposite, isDerived, isDerivedUnion, isID, isNavigable, setAggregation, setAssociation, setAssociationEnd, setBooleanDefaultValue, setDatatype, setDefault, setDefaultValue, setIntegerDefaultValue, setInterface, setIsComposite, setIsDerived, setIsDerivedUnion, setIsID, setIsNavigable, setNullDefaultValue, setOpposite, setOwningAssociation, setRealDefaultValue, setStringDefaultValue, setUnlimitedNaturalDefaultValue, subsettingContext, validateBindingToAttribute, validateDeploymentTarget, validateDerivedUnionIsDerived, validateDerivedUnionIsReadOnly, validateMultiplicityOfComposite, validateQualifiedIsAssociationEnd, validateRedefinedPropertyInherited, validateSubsettedPropertyNames, validateSubsettingContextConforms, validateSubsettingRules, validateTypeOfOppositeEnd
isReadOnly, setIsReadOnly
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateNonLeafRedefinition, validateRedefinitionConsistent, validateRedefinitionContextValid
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
compatibleWith, createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateLowerIsInteger, validateUpperGeLower, validateUpperIsUnlimitedNatural, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
getEnds
getType, setType
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
boolean isBehavior()
"false"
.
Specifies whether requests arriving at this Port are sent to the classifier behavior of this EncapsulatedClassifier. Such a Port is referred to as a behavior Port. Any invocation of a BehavioralFeature targeted at a behavior Port will be handled by the instance of the owning EncapsulatedClassifier itself, rather than by any instances that it may contain.
From package UML::StructuredClassifiers.
setIsBehavior(boolean)
,
UMLPackage.getPort_IsBehavior()
void setIsBehavior(boolean value)
Is Behavior
' attribute.
value
- the new value of the 'Is Behavior' attribute.isBehavior()
boolean isConjugated()
"false"
.
Specifies the way that the provided and required Interfaces are derived from the Port’s Type.
From package UML::StructuredClassifiers.
setIsConjugated(boolean)
,
UMLPackage.getPort_IsConjugated()
void setIsConjugated(boolean value)
Is Conjugated
' attribute.
value
- the new value of the 'Is Conjugated' attribute.isConjugated()
boolean isService()
"true"
.
If true, indicates that this Port is used to provide the published functionality of an EncapsulatedClassifier. If false, this Port is used to implement the EncapsulatedClassifier but is not part of the essential externally-visible functionality of the EncapsulatedClassifier and can, therefore, be altered or deleted along with the internal implementation of the EncapsulatedClassifier and other properties that are considered part of its implementation.
From package UML::StructuredClassifiers.
setIsService(boolean)
,
UMLPackage.getPort_IsService()
void setIsService(boolean value)
Is Service
' attribute.
value
- the new value of the 'Is Service' attribute.isService()
org.eclipse.emf.common.util.EList<Interface> getRequireds()
Interface
.
The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCassifier expects its environment to handle via this port. This association is derived according to the value of isConjugated. If isConjugated is false, required is derived as the union of the sets of Interfaces used by the type of the Port and its supertypes. If isConjugated is true, it is derived as the union of the sets of Interfaces realized by the type of the Port and its supertypes, or directly from the type of the Port if the Port is typed by an Interface.
From package UML::StructuredClassifiers.
UMLPackage.getPort_Required()
Interface getRequired(java.lang.String name)
Interface
with the specified 'Name' from the 'Required' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.Interface
with the specified 'Name', or null
.getRequireds()
Interface getRequired(java.lang.String name, boolean ignoreCase)
Interface
with the specified 'Name' from the 'Required' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Interface
with the specified 'Name', or null
.getRequireds()
org.eclipse.emf.common.util.EList<Port> getRedefinedPorts()
Port
.
This feature subsets the following features:
A Port may be redefined when its containing EncapsulatedClassifier is specialized. The redefining Port may have additional Interfaces to those that are associated with the redefined Port or it may replace an Interface by one of its subtypes.From package UML::StructuredClassifiers.
UMLPackage.getPort_RedefinedPort()
Port getRedefinedPort(java.lang.String name, Type type)
Port
with the specified 'Name', and 'Type' from the 'Redefined Port' reference list.
name
- The 'Name' of the Port
to retrieve, or null
.type
- The 'Type' of the Port
to retrieve, or null
.Port
with the specified 'Name', and 'Type', or null
.getRedefinedPorts()
Port getRedefinedPort(java.lang.String name, Type type, boolean ignoreCase)
Port
with the specified 'Name', and 'Type' from the 'Redefined Port' reference list.
name
- The 'Name' of the Port
to retrieve, or null
.type
- The 'Type' of the Port
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Port
with the specified 'Name', and 'Type', or null
.getRedefinedPorts()
org.eclipse.emf.common.util.EList<Interface> getProvideds()
Interface
.
The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCclassifier offers to its environment via this Port, and which it will handle either directly or by forwarding it to a part of its internal structure. This association is derived according to the value of isConjugated. If isConjugated is false, provided is derived as the union of the sets of Interfaces realized by the type of the port and its supertypes, or directly from the type of the Port if the Port is typed by an Interface. If isConjugated is true, it is derived as the union of the sets of Interfaces used by the type of the Port and its supertypes.
From package UML::StructuredClassifiers.
UMLPackage.getPort_Provided()
Interface getProvided(java.lang.String name)
Interface
with the specified 'Name' from the 'Provided' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.Interface
with the specified 'Name', or null
.getProvideds()
Interface getProvided(java.lang.String name, boolean ignoreCase)
Interface
with the specified 'Name' from the 'Provided' reference list.
name
- The 'Name' of the Interface
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.Interface
with the specified 'Name', or null
.getProvideds()
ProtocolStateMachine getProtocol()
From package UML::StructuredClassifiers.
setProtocol(ProtocolStateMachine)
,
UMLPackage.getPort_Protocol()
void setProtocol(ProtocolStateMachine value)
Protocol
' reference.
value
- the new value of the 'Protocol' reference.getProtocol()
boolean validatePortAggregation(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateDefaultValue(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateEncapsulatedOwner(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
org.eclipse.emf.common.util.EList<Interface> basicProvided()
From package UML::StructuredClassifiers.
org.eclipse.emf.common.util.EList<Interface> basicRequired()
From package UML::StructuredClassifiers.