public interface Port extends Property
The following features are supported:
UMLPackage.getPort()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ProtocolStateMachine |
getProtocol()
Returns the value of the 'Protocol' reference
|
Interface |
getProvided(String name)
Retrieves the first
Interface with the specified 'Name' from the '
Provided' reference list |
Interface |
getProvided(String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the '
Provided' reference list |
MDWEList<Interface> |
getProvideds()
Returns the value of the 'Provided' reference list.
|
Port |
getRedefinedPort(String name,
Type type)
Retrieves the first
Port with the specified 'Name', and 'Type' from the
'Redefined Port' reference list |
Port |
getRedefinedPort(String name,
Type type,
boolean ignoreCase)
Retrieves the first
Port with the specified 'Name', and 'Type' from the
'Redefined Port' reference list |
MDWEList<Port> |
getRedefinedPorts()
Returns the value of the 'Redefined Port' reference list.
|
Interface |
getRequired(String name)
Retrieves the first
Interface with the specified 'Name' from the '
Required' reference list |
Interface |
getRequired(String name,
boolean ignoreCase)
Retrieves the first
Interface with the specified 'Name' from the '
Required' reference list |
MDWEList<Interface> |
getRequireds()
Returns the value of the 'Required' reference list.
|
boolean |
isBehavior()
Returns the value of the 'Is Behavior' attribute.
|
boolean |
isConjugated()
Returns the 'isConjugated' value for the current Port.
|
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 isConjugated)
Set the 'isConjugated' value for the current Port.
|
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(DiagnosticChain diagnostics,
Map context)
A defaultValue for port cannot be specified when the type of the Port is an Interface
true
|
boolean |
validatePortAggregation(DiagnosticChain diagnostics,
Map context)
Port.aggregation must be composite.
|
boolean |
validatePortDestroyed(DiagnosticChain diagnostics,
Map context)
When a port is destroyed, all connectors attached to this port will be destroyed also.
|
boolean |
validateRequiredInterfaces(DiagnosticChain diagnostics,
Map context)
The required interfaces of a port must be provided by elements to which the port is connected.
|
createDefaultValue, createQualifier, createQualifier, getAggregation, getAssociation, getAssociationEnd, getClass_, getDatatype, getDefault, getDefaultValue, getOpposite, getOtherEnd, getOwningAssociation, getQualifier, getQualifier, getQualifiers, getRedefinedProperties, getRedefinedProperty, getRedefinedProperty, getSubsettedProperties, getSubsettedProperty, getSubsettedProperty, isAttribute, isComposite, isDerived, isDerivedUnion, isNavigable, isSetDefault, setAggregation, setAssociation, setAssociationEnd, setBooleanDefaultValue, setDatatype, setDefault, setDefaultValue, setIntegerDefaultValue, setIsComposite, setIsDerived, setIsDerivedUnion, setIsNavigable, setNullDefaultValue, setOpposite, setOwningAssociation, setStringDefaultValue, setUnlimitedNaturalDefaultValue, subsettingContext, unsetDefault, validateBindingToAttribute, validateDeploymentTarget, validateDerivedUnionIsDerived, validateDerivedUnionIsReadOnly, validateMultiplicityOfComposite, validateNavigableReadonly, validateRedefinedPropertyInherited, validateSubsettedPropertyNames, validateSubsettingContextConforms, validateSubsettingRules
isReadOnly, setIsReadOnly
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
allNamespaces, allOwningPackages, createDependency, createNameExpression, 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
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
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, includesCardinality, includesMultiplicity, is, isMultivalued, isOrdered, isUnique, lowerBound, setIsOrdered, setIsUnique, setLower, setLowerValue, setUpper, setUpperValue, upperBound, validateLowerGe0, validateUpperGeLower, validateUpperGt0, validateValueSpecificationConstant, validateValueSpecificationNoSideEffects
getEnds
getType, setType
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
createDeployment, getDeployedElement, getDeployedElement, getDeployedElements, getDeployment, getDeployment, getDeployments
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
boolean isBehavior()
"false"
.
Specifies whether requests arriving at this port are sent to the classifier behavior of this classifier. Such ports are referred to as behavior
port. Any invocation of a behavioral feature targeted at a behavior port will be handled by the instance of the owning classifier itself,
rather than by any instances that this classifier may contain.
setIsBehavior(boolean)
,
UMLPackage.getPort_IsBehavior()
void setIsBehavior(boolean value)
Is Behavior
' attribute.
value
- the new value of the 'Is Behavior' attribute.isBehavior()
boolean isService()
"true"
.
If true indicates that this port is used to provide the published functionality of a classifier; if false, this port is used to implement the
classifier but is not part of the essential externally-visible functionality of the classifier and can, therefore, be altered or deleted along
with the internal implementation of the classifier and other properties that are considered part of its implementation.
setIsService(boolean)
,
UMLPackage.getPort_IsService()
void setIsService(boolean value)
Is Service
' attribute.
value
- the new value of the 'Is Service' attribute.isService()
MDWEList<Interface> getRequireds()
Interface
.
References the interfaces specifying the set of operations and receptions which the classifier expects its environment to handle. This
association is derived as the set of interfaces required by the type of the port or its supertypes.
UMLPackage.getPort_Required()
Interface getRequired(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(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()
MDWEList<Port> getRedefinedPorts()
Port
.
A port may be redefined when its containing classifier 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.
UMLPackage.getPort_RedefinedPort()
Port getRedefinedPort(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(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()
MDWEList<Interface> getProvideds()
Interface
.
References the interfaces specifying the set of operations and receptions which the classifier offers to its environment, and which it will
handle either directly or by forwarding it to a part of its internal structure. This association is derived from the interfaces realized by the
type of the port or by the type of the port, if the port was typed by an interface.
UMLPackage.getPort_Provided()
Interface getProvided(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(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()
setProtocol(ProtocolStateMachine)
,
UMLPackage.getPort_Protocol()
void setProtocol(ProtocolStateMachine value)
Protocol
' reference.
value
- the new value of the 'Protocol' reference.getProtocol()
boolean validateRequiredInterfaces(DiagnosticChain diagnostics, Map context)
boolean validatePortAggregation(DiagnosticChain diagnostics, Map context)
boolean validatePortDestroyed(DiagnosticChain diagnostics, Map context)
boolean validateDefaultValue(DiagnosticChain diagnostics, Map context)
boolean isConjugated()
void setIsConjugated(boolean isConjugated)
isConjugated
- boolean value