net.sf.farrago.cwm.core
Interface CwmMultiplicityRange

All Superinterfaces:
CwmElement, RefBaseObject, RefFeatured, RefObject
All Known Implementing Classes:
CwmMultiplicityRange$Hib

public interface CwmMultiplicityRange
extends CwmElement

MultiplicityRange object instance interface. In the metamodel a MultiplicityRange defines a range of integers. The upper bound of the range cannot be below the lower bound. The lower bound must be a nonnegative integer. The upper bound must be a nonnegative integer or the special value unlimited, which indicates there is no upper bound on the range.

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.


Method Summary
 int getLower()
          Returns the value of attribute lower.
 CwmMultiplicity getMultiplicity()
          Returns the value of reference multiplicity.
 int getUpper()
          Returns the value of attribute upper.
 void setLower(int newValue)
          Sets the value of lower attribute.
 void setMultiplicity(CwmMultiplicity newValue)
          Sets the value of multiplicity reference.
 void setUpper(int newValue)
          Sets the value of upper attribute.
 
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
 

Method Detail

getLower

int getLower()
Returns the value of attribute lower. Specifies the positive integer lower bound of the range.

Returns:
Value of attribute lower.

setLower

void setLower(int newValue)
Sets the value of lower attribute. See getLower() for description on the attribute.

Parameters:
newValue - New value to be set.

getUpper

int getUpper()
Returns the value of attribute upper. Specifies the upper bound of the range, which is a positive integer or the special value ?unlimited? indicating no upper bound is defined.

Returns:
Value of attribute upper.

setUpper

void setUpper(int newValue)
Sets the value of upper attribute. See getUpper() for description on the attribute.

Parameters:
newValue - New value to be set.

getMultiplicity

CwmMultiplicity getMultiplicity()
Returns the value of reference multiplicity.

Returns:
Value of reference multiplicity.

setMultiplicity

void setMultiplicity(CwmMultiplicity newValue)
Sets the value of multiplicity reference. See getMultiplicity() for description on the attribute.

Parameters:
newValue - New value to be set.