Class ObjectModelParameterImpl
- java.lang.Object
-
- org.nuiton.eugene.models.object.xml.ObjectModelElementImpl
-
- org.nuiton.eugene.models.object.xml.ObjectModelParameterImpl
-
- All Implemented Interfaces:
WithTagValuesOrStereotypes
,ObjectModelElement
,ObjectModelParameter
- Direct Known Subclasses:
ObjectModelAttributeImpl
public class ObjectModelParameterImpl extends ObjectModelElementImpl implements ObjectModelParameter
ObjectModelParameterImpl. Created: 14 janv. 2004- Author:
- Cédric Pineau - pineau@codelutin.com Copyright Code Lutin
-
-
Field Summary
Fields Modifier and Type Field Description protected String
defaultValue
Unique n'est utile que pour les collections pour indiquer que la collection ne peut prendre qu'une valeur identique (Set) si unique est false la collection peut prendre plusieurs fois la meme valeur (List)protected int
maxMultiplicity
protected int
minMultiplicity
static String
PROPERTY_ORDERED
protected String
type
-
Fields inherited from class org.nuiton.eugene.models.object.xml.ObjectModelElementImpl
comments, declaringElement, documentation, modifiers, name, objectModelImpl, tagValues
-
-
Constructor Summary
Constructors Constructor Description ObjectModelParameterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<ObjectModelModifier>
getAuthorizedModifiers()
String
getDefaultValue()
default value of this parameterint
getMaxMultiplicity()
Returns the maximal multiplicity of this parameter.int
getMinMultiplicity()
Returns the minimal multiplicity of this parameter.String
getType()
Returns the type of this parameter.boolean
isOrdered()
true if this parameter is isOrderedboolean
isUnique()
true if this parameter is isUniquevoid
postInit()
void
setDefaultValue(String defaultValue)
void
setMaxMultiplicity(int maxMultiplicity)
void
setMinMultiplicity(int minMultiplicity)
void
setOrdered(boolean ordered)
void
setOrdering(String ordering)
void
setType(String type)
void
setUnique(boolean unique)
String
toString()
-
Methods inherited from class org.nuiton.eugene.models.object.xml.ObjectModelElementImpl
addComment, addModifier, addOrRemoveModifier, addStereotype, addStereotype, addTagValue, addTagValue, getComments, getDeclaringElement, getDescription, getDocumentation, getModel, getName, getSourceDocumentation, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, isStatic, removeModifier, removeModifiers, removeStereotype, removeTagValue, setDeclaringElement, setDocumentation, setName, setObjectModelImpl, setStatic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelElement
getComments, getDeclaringElement, getDescription, getDocumentation, getName, getSourceDocumentation, isStatic
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Field Detail
-
type
protected String type
-
minMultiplicity
protected int minMultiplicity
-
maxMultiplicity
protected int maxMultiplicity
-
defaultValue
protected String defaultValue
Unique n'est utile que pour les collections pour indiquer que la collection ne peut prendre qu'une valeur identique (Set) si unique est false la collection peut prendre plusieurs fois la meme valeur (List)
-
PROPERTY_ORDERED
public static final String PROPERTY_ORDERED
- See Also:
- Constant Field Values
-
-
Method Detail
-
postInit
public void postInit()
- Overrides:
postInit
in classObjectModelElementImpl
-
getAuthorizedModifiers
protected Set<ObjectModelModifier> getAuthorizedModifiers()
- Specified by:
getAuthorizedModifiers
in classObjectModelElementImpl
-
setType
public void setType(String type)
-
setMinMultiplicity
public void setMinMultiplicity(int minMultiplicity)
-
setMaxMultiplicity
public void setMaxMultiplicity(int maxMultiplicity)
-
setOrdering
public void setOrdering(String ordering)
-
setUnique
public void setUnique(boolean unique)
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getType
public String getType()
Description copied from interface:ObjectModelParameter
Returns the type of this parameter.- Specified by:
getType
in interfaceObjectModelParameter
- Returns:
- the type of this parameter.
-
getDefaultValue
public String getDefaultValue()
Description copied from interface:ObjectModelParameter
default value of this parameter- Specified by:
getDefaultValue
in interfaceObjectModelParameter
- Returns:
- a String for the defaultValue (must be interpreted depending on the parameter type)
-
getMinMultiplicity
public int getMinMultiplicity()
Description copied from interface:ObjectModelParameter
Returns the minimal multiplicity of this parameter. The-1
value means infinite.- Specified by:
getMinMultiplicity
in interfaceObjectModelParameter
- Returns:
- the minimal multiplicity of this parameter.
-
getMaxMultiplicity
public int getMaxMultiplicity()
Description copied from interface:ObjectModelParameter
Returns the maximal multiplicity of this parameter. The-1
value means infinite.- Specified by:
getMaxMultiplicity
in interfaceObjectModelParameter
- Returns:
- the maximal multiplicity of this parameter.
-
isOrdered
public boolean isOrdered()
Description copied from interface:ObjectModelParameter
true if this parameter is isOrdered- Specified by:
isOrdered
in interfaceObjectModelParameter
- Returns:
true
if this parameter is isOrdered
-
setOrdered
public void setOrdered(boolean ordered)
-
isUnique
public boolean isUnique()
Description copied from interface:ObjectModelParameter
true if this parameter is isUnique- Specified by:
isUnique
in interfaceObjectModelParameter
- Returns:
true
if this parameter is isUnique
-
-