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 StringdefaultValueUnique 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 intmaxMultiplicityprotected intminMultiplicitystatic StringPROPERTY_ORDEREDprotected Stringtype-
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()StringgetDefaultValue()default value of this parameterintgetMaxMultiplicity()Returns the maximal multiplicity of this parameter.intgetMinMultiplicity()Returns the minimal multiplicity of this parameter.StringgetType()Returns the type of this parameter.booleanisOrdered()true if this parameter is isOrderedbooleanisUnique()true if this parameter is isUniquevoidpostInit()voidsetDefaultValue(String defaultValue)voidsetMaxMultiplicity(int maxMultiplicity)voidsetMinMultiplicity(int minMultiplicity)voidsetOrdered(boolean ordered)voidsetOrdering(String ordering)voidsetType(String type)voidsetUnique(boolean unique)StringtoString()-
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:
postInitin classObjectModelElementImpl
-
getAuthorizedModifiers
protected Set<ObjectModelModifier> getAuthorizedModifiers()
- Specified by:
getAuthorizedModifiersin 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:ObjectModelParameterReturns the type of this parameter.- Specified by:
getTypein interfaceObjectModelParameter- Returns:
- the type of this parameter.
-
getDefaultValue
public String getDefaultValue()
Description copied from interface:ObjectModelParameterdefault value of this parameter- Specified by:
getDefaultValuein interfaceObjectModelParameter- Returns:
- a String for the defaultValue (must be interpreted depending on the parameter type)
-
getMinMultiplicity
public int getMinMultiplicity()
Description copied from interface:ObjectModelParameterReturns the minimal multiplicity of this parameter. The -1 value means infinite.- Specified by:
getMinMultiplicityin interfaceObjectModelParameter- Returns:
- the minimal multiplicity of this parameter.
-
getMaxMultiplicity
public int getMaxMultiplicity()
Description copied from interface:ObjectModelParameterReturns the maximal multiplicity of this parameter. The -1 value means infinite.- Specified by:
getMaxMultiplicityin interfaceObjectModelParameter- Returns:
- the maximal multiplicity of this parameter.
-
isOrdered
public boolean isOrdered()
Description copied from interface:ObjectModelParametertrue if this parameter is isOrdered- Specified by:
isOrderedin interfaceObjectModelParameter- Returns:
trueif this parameter is isOrdered
-
setOrdered
public void setOrdered(boolean ordered)
-
isUnique
public boolean isUnique()
Description copied from interface:ObjectModelParametertrue if this parameter is isUnique- Specified by:
isUniquein interfaceObjectModelParameter- Returns:
trueif this parameter is isUnique
-
-