/* * Initial version copyright 2008 Lockheed Martin Corporation, except * as stated in the file entitled Licensing-Information. * * All modifications copyright 2009-2012 Data Access Technologies, Inc. * * Licensed under the Academic Free License version 3.0 * (http://www.opensource.org/licenses/afl-3.0.php), except as stated * in the file entitled Licensing-Information. */ package fUML.Syntax.Classes.Kernel; import fUML.Debug; import UMLPrimitiveTypes.*; public abstract class StructuralFeature extends fUML.Syntax.Classes.Kernel.Feature { public fUML.Syntax.Classes.Kernel.TypedElement typedElement = new fUML.Syntax.Classes.Kernel.TypedElement(); public fUML.Syntax.Classes.Kernel.MultiplicityElement multiplicityElement = new fUML.Syntax.Classes.Kernel.MultiplicityElement(); public boolean isReadOnly = false; public void setIsReadOnly(boolean isReadOnly) { this.isReadOnly = isReadOnly; } // setIsReadOnly public void setIsOrdered(boolean isOrdered) { this.multiplicityElement.setIsOrdered(isOrdered); } // setIsOrdered public void setIsUnique(boolean isUnique) { this.multiplicityElement.setIsUnique(isUnique); } // setIsUnique public void setUpperValue( fUML.Syntax.Classes.Kernel.ValueSpecification upperValue) { this.multiplicityElement.setUpperValue(upperValue); } // setUpperValue public void setLowerValue( fUML.Syntax.Classes.Kernel.ValueSpecification lowerValue) { this.multiplicityElement.setLowerValue(lowerValue); } // setLowerValue public void setUpper(int upper) { // Note: This is a convenience operation that may be used _instead_ of // setUpperValue, not in addition to it. this.multiplicityElement.setUpper(upper); } // setUpper public void setLower(int lower) { // Note: This is a convenience operation that may be used _instead_ of // setLowerValue, not in addition to it. this.multiplicityElement.setLower(lower); } // setLower public void setType(fUML.Syntax.Classes.Kernel.Type type) { this.typedElement.setType(type); } // setType } // StructuralFeature