org.eclipse.uml2
Interface Type

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Notifier, PackageableElement, ParameterableElement, TemplateableElement
All Known Subinterfaces:
Activity, Actor, Artifact, Association, AssociationClass, Behavior, BehavioredClassifier, Class, Classifier, Collaboration, CommunicationPath, Component, DataType, DeploymentSpecification, Device, EncapsulatedClassifier, Enumeration, ExecutionEnvironment, Extension, InformationItem, Interaction, Interface, Node, ParameterableClassifier, PrimitiveType, ProtocolStateMachine, Signal, StateMachine, Stereotype, StructuredClassifier, TemplateableClassifier, UseCase

public interface Type
extends PackageableElement

A representation of the model object 'Type'. A type serves as a constraint on the range of values represented by a typed element. Type is an abstract metaclass.

The following features are supported:

See Also:
UML2Package.getType()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 boolean conformsTo(Type other)
           A query based on the following OCL expression: false
 Association createAssociation(boolean thisEndIsNavigable, AggregationKind thisEndAggregation, String thisEndName, int thisEndLowerBound, int thisEndUpperBound, Type otherType, boolean otherEndIsNavigable, AggregationKind otherEndAggregation, String otherEndName, int otherEndLowerBound, int otherEndUpperBound)
          Creates a(n) (binary) association between this type and the specified other type, with the specified navigabilities, aggregations, names, lower bounds, and upper bounds, and owned by this type's package.
 Namespace getNamespace()
           
 Package getPackage()
          Returns the value of the 'Package' reference.
 
Methods inherited from interface org.eclipse.uml2.PackageableElement
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getOwnedElements, getOwner, getQualifiedName, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.ParameterableElement
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getPackage

public Package getPackage()
Returns the value of the 'Package' reference. It is bidirectional and its opposite is 'Owned Type'.

If the meaning of the 'Package' reference isn't clear, there really should be more of a description here...

References the owning package of a package. Subsets NamedElement::namespace.

Returns:
the value of the 'Package' reference.
See Also:
UML2Package.getType_Package(), Package.getOwnedTypes()

conformsTo

public boolean conformsTo(Type other)
A query based on the following OCL expression: false


getNamespace

public Namespace getNamespace()

Specified by:
getNamespace in interface NamedElement

createAssociation

public Association createAssociation(boolean thisEndIsNavigable,
                                     AggregationKind thisEndAggregation,
                                     String thisEndName,
                                     int thisEndLowerBound,
                                     int thisEndUpperBound,
                                     Type otherType,
                                     boolean otherEndIsNavigable,
                                     AggregationKind otherEndAggregation,
                                     String otherEndName,
                                     int otherEndLowerBound,
                                     int otherEndUpperBound)
Creates a(n) (binary) association between this type and the specified other type, with the specified navigabilities, aggregations, names, lower bounds, and upper bounds, and owned by this type's package.

Parameters:
thisEndIsNavigable - The navigability of this end.
thisEndAggregation - The aggregation of this end.
thisEndName - The name of this end.
thisEndLowerBound - The lower bound of this end.
thisEndUpperBound - The upper bound of this end.
otherType - The type at the other end.
otherEndIsNavigable - The navigability of the other end.
otherEndAggregation - The aggregation of the other end.
otherEndName - The name of the other end.
otherEndLowerBound - The lower bound of the other end.
otherEndUpperBound - The upper bound of the other end.
Returns:
The new (binary) association.
Throws:
IllegalArgumentException - If any of the navigabilities, lower bounds, or upper bounds are invalid.

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.