org.omg.cwm.objectmodel.core
Interface StructuralFeature
- All Superinterfaces:
- Element, Feature, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
- All Known Subinterfaces:
- Attribute, Column, DimensionedObject, Measure
- public interface StructuralFeature
- extends Feature
A structural feature refers to a static feature of a model element.
In
the metamodel, a StructuralFeature declares a structural aspect of a Classifier
that is typed, such as an attribute. For example, it specifies the multiplicity
and changeability of the StructuralFeature. StructuralFeature is an abstract
metaclass.
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 |
getChangeability
public ChangeableKind getChangeability()
throws javax.jmi.reflect.JmiException
- Specifies whether the value may be modified after the object is created.
setChangeability
public void setChangeability(ChangeableKind newValue)
throws javax.jmi.reflect.JmiException
- Specifies whether the value may be modified after the object is created.
getMultiplicity
public Multiplicity getMultiplicity()
throws javax.jmi.reflect.JmiException
- The possible number of data values for the feature that may be held by an
instance. The cardinality of the set of values is an implicit part of the
feature. In the common case in which the multiplicity is 1..1, then the
feature is a scalar (i.e., it holds exactly one value).
setMultiplicity
public void setMultiplicity(Multiplicity newValue)
throws javax.jmi.reflect.JmiException
- The possible number of data values for the feature that may be held by an
instance. The cardinality of the set of values is an implicit part of the
feature. In the common case in which the multiplicity is 1..1, then the
feature is a scalar (i.e., it holds exactly one value).
getOrdering
public OrderingKind getOrdering()
throws javax.jmi.reflect.JmiException
- Specifies whether the set of instances is ordered. The ordering must be
determined and maintained by Operations that add values to the feature.
This property is only relevant if the multiplicity is greater than one.
setOrdering
public void setOrdering(OrderingKind newValue)
throws javax.jmi.reflect.JmiException
- Specifies whether the set of instances is ordered. The ordering must be
determined and maintained by Operations that add values to the feature.
This property is only relevant if the multiplicity is greater than one.
getTargetScope
public ScopeKind getTargetScope()
throws javax.jmi.reflect.JmiException
- Specifies whether the targets are ordinary Instances or are Classifiers.
setTargetScope
public void setTargetScope(ScopeKind newValue)
throws javax.jmi.reflect.JmiException
- Specifies whether the targets are ordinary Instances or are Classifiers.
getType
public Classifier getType()
throws javax.jmi.reflect.JmiException
setType
public void setType(Classifier newValue)
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.