org.omg.cwm.objectmodel.core
Interface MOFPackage
- All Superinterfaces:
- Element, ModelElement, Namespace, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
- All Known Subinterfaces:
- Catalog, DeploymentGroup, Extent, MemberSet, Model, RowSet, Schema, Schema, Schema, Subsystem
- public interface MOFPackage
- extends Namespace
A package is a grouping of model elements.
In the metamodel, Package
is a subclass of Namespace. A Package contains ModelElements such as Packages
and Classifiers. A Package may also contain Constraints and Dependencies
between ModelElements of the Package.
The purpose of the package
construct is to provide a general grouping mechanism. In fact, its only
semantics is to define a namespace for its contents. The package construct
can be used for organizing elements for any purpose; the criteria to use
for grouping elements together into one package are not defined.
A
package owns a set of model elements, with the implication that if the
package is removed from the model, so are the elements owned by the package.
Elements with names, such as classifiers, that are owned by the same package
must have unique names within the package, although elements in different
packages may have the same name.
There may be relationships between
elements contained in the same package, and between an element in one package
and an element in a surrounding package at any level. In other words, elements
?see? all the way out through nested levels of packages.
Elements
in peer packages, however, are encapsulated and are not a priori visible
to each other. The same goes for elements in contained packages, i.e.
packages do not see "inwards".
Elements owned by a Package can be
made available to other Packages by importing
them. Although any ModelElement
may be imported by a Package, imported
ModelElements are typically other
Packages. When an element is imported by a
package it extends the namespace
of that package. Thus the elements available in a
Package consists of
its owned and imported ModelElements.
Methods inherited from interface javax.jmi.reflect.RefObject |
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite |
Methods inherited from interface javax.jmi.reflect.RefFeatured |
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue |
Methods inherited from interface javax.jmi.reflect.RefBaseObject |
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints |
getImportedElement
public java.util.Collection getImportedElement()
throws javax.jmi.reflect.JmiException
Copyright 1997-2005 by Object Management Group, Inc. (http://www.omg.org/),
250 First Ave. Needham, MA 02494 U.S.A. All rights reserved.
Unless otherwise indicated, users may make a single copy of the contents,
in whole or in part, of this web site strictly for personal, non-commercial
use. In the event that all or part of this site is downloaded for personal
use, users shall maintain all proprietary notices including copyright notices
that appear on or in connection with that content. Other than creating a
single copy of contents for personal use as described herein, users may not
copy, reproduce, distribute, republish, download, display, post or transmit
in any form or by any means, including but not limited to electronic,
mechanical, photocopying, recording, or other means, any content found or
linked to the OMG web site without the prior express written permission of OMG.
Any unauthorized use of any content contained on the OMG web site may violate
the copyright laws, trademark laws, laws relating to publicity and privacy,
and other regulations and statutes in the U.S. and other countries.