Uses of Interface
org.nuiton.eugene.models.object.ObjectModelAttribute
-
Packages that use ObjectModelAttribute Package Description org.nuiton.eugene Eugene.org.nuiton.eugene.java Eugene java package : all specific class for Java generation.org.nuiton.eugene.models.extension.io org.nuiton.eugene.models.object org.nuiton.eugene.models.object.validator org.nuiton.eugene.models.object.xml -
-
Uses of ObjectModelAttribute in org.nuiton.eugene
Methods in org.nuiton.eugene with parameters of type ObjectModelAttribute Modifier and Type Method Description static String
GeneratorUtil. getAssocAttrName(ObjectModelAttribute attr)
Renvoie le nom de l'attribut de classe d'association en fonction des cas: Si l'attribut porte le même nom que le type (extrémité inverse de l'association), on lui ajoute le nom de la classe d'associationString
EugeneCoreTagValues. getAttributeGenericTagValue(ObjectModelAttribute attribute)
Obtain the value of theEugeneCoreTagValues.Store.attributeGeneric
tag value on the given attribute.static String
GeneratorUtil. getInitValue(ObjectModelAttribute attribute)
return an init value for the specified attributestatic boolean
GeneratorUtil. isBooleanPrimitive(ObjectModelAttribute attribute)
Tests if an attribute is a boolean primitive.static boolean
GeneratorUtil. isComposition(ObjectModelAttribute attribute)
static boolean
GeneratorUtil. isFirstAttribute(ObjectModelAttribute attr)
Renvoie si l'attribut passé en paramètre est premier lexicographiquement par rapport à son attribut inverse (si celui ci existe).static boolean
GeneratorUtil. isNMultiplicity(ObjectModelAttribute attribute)
static boolean
GeneratorUtil. isOneMultiplicity(ObjectModelAttribute attribute)
static boolean
EugeneCoreTagValues. isOrdered(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.ordered
boolean tag value.static boolean
GeneratorUtil. isPrimitiveAttributeType(ObjectModelAttribute attribute)
Indicates if the specified attribute has a primitive type (byte, boolean, ...)static boolean
EugeneCoreTagValues. isUnique(ObjectModelAttribute attribute)
Check if the given attribute has theEugeneCoreTagValues.Store.unique
boolean tag value. -
Uses of ObjectModelAttribute in org.nuiton.eugene.java
Methods in org.nuiton.eugene.java that return ObjectModelAttribute Modifier and Type Method Description ObjectModelAttribute
JavaBuilder. addAttribute(ObjectModelClassifier classifier, String name, String type)
Add a new attribute to a classifier with no default value.ObjectModelAttribute
JavaBuilder. addAttribute(ObjectModelClassifier classifier, String name, String type, String value, ObjectModelModifier... modifiers)
Add a new attribute to a classifier.ObjectModelAttribute
JavaBuilder. addAttribute(ObjectModelClassifier classifier, ObjectModelAttribute attribute)
Add a new attribute to a classifier from an existing attribute.protected ObjectModelAttribute
ObjectModelTransformerToJava. addAttribute(ObjectModelClassifier classifier, String name, Class<?> type, String value, ObjectModelModifier... modifiers)
ObjectModelAttribute
ObjectModelTransformerToJava. addAttribute(ObjectModelClassifier classifier, String name, String type)
protected ObjectModelAttribute
ObjectModelTransformerToJava. addAttribute(ObjectModelClassifier classifier, String name, String type, String value, ObjectModelModifier... modifiers)
protected ObjectModelAttribute
ObjectModelTransformerToJava. addAttribute(ObjectModelClassifier classifier, ObjectModelAttribute attribute)
ObjectModelAttribute
JavaBuilder. addConstant(ObjectModelClassifier classifier, String name, String type, String value, ObjectModelModifier visibility)
Add a new constant to a classifier.protected ObjectModelAttribute
ObjectModelTransformerToJava. addConstant(ObjectModelClassifier classifier, String name, Class<?> type, String value, ObjectModelModifier visibility)
protected ObjectModelAttribute
ObjectModelTransformerToJava. addConstant(ObjectModelClassifier classifier, String name, String type, String value, ObjectModelModifier visibility)
protected ObjectModelAttribute
ObjectModelTransformerToJava. cloneAttribute(ObjectModelAttribute source, ObjectModelClassifier destination, boolean cloneDocumentation, ObjectModelModifier... modifiers)
clone a given attribute into a classifier of the output modelMethods in org.nuiton.eugene.java with parameters of type ObjectModelAttribute Modifier and Type Method Description ObjectModelAttribute
JavaBuilder. addAttribute(ObjectModelClassifier classifier, ObjectModelAttribute attribute)
Add a new attribute to a classifier from an existing attribute.protected ObjectModelAttribute
ObjectModelTransformerToJava. addAttribute(ObjectModelClassifier classifier, ObjectModelAttribute attribute)
protected ObjectModelAttribute
ObjectModelTransformerToJava. cloneAttribute(ObjectModelAttribute source, ObjectModelClassifier destination, boolean cloneDocumentation, ObjectModelModifier... modifiers)
clone a given attribute into a classifier of the output modelstatic Class<?>
JavaGeneratorUtil. getCollectionInstanceType(ObjectModelAttribute attr)
static Class<?>
JavaGeneratorUtil. getCollectionType(ObjectModelAttribute attr)
static boolean
JavaGeneratorUtil. isOrdered(ObjectModelAttribute attr)
void
ObjectModelTransformerToJava. setMaxMultiplicity(ObjectModelAttribute attribute, int multiplicity)
Adds a max multiplicity to the givenattribute
.void
ObjectModelTransformerToJava. setMinMultiplicity(ObjectModelAttribute attribute, int multiplicity)
Adds a min multiplicity to the givenattribute
.void
ObjectModelTransformerToJava. setNavigable(ObjectModelAttribute attribute, boolean navigable)
Adds a navigable flag to the givenattribute
.Method parameters in org.nuiton.eugene.java with type arguments of type ObjectModelAttribute Modifier and Type Method Description protected void
JavaGenerator. generateAttributes(Writer output, ObjectModelClassifier clazz, Collection<ObjectModelAttribute> attributes)
Generate attributes from a collection of ObjectModelAttribute. -
Uses of ObjectModelAttribute in org.nuiton.eugene.models.extension.io
Methods in org.nuiton.eugene.models.extension.io that return ObjectModelAttribute Modifier and Type Method Description protected ObjectModelAttribute
ModelExtensionReader. getAttribute(ObjectModelClassifier clazz, String name)
Retrieve an attribute from aclazz
with itsname
. -
Uses of ObjectModelAttribute in org.nuiton.eugene.models.object
Methods in org.nuiton.eugene.models.object that return ObjectModelAttribute Modifier and Type Method Description ObjectModelAttribute
ObjectModelBuilder. addAssociation(ObjectModelClassifier classifierA, ObjectModelClassifier classifierB, String roleName, int minMultiplicity, int maxMultiplicity, ObjectModelModifier... modifiers)
Add an association A to B.ObjectModelAttribute
ObjectModelBuilder. addAttribute(ObjectModelClassifier classifier, String name, String type)
Add an attribute to a classifier (interface, class, enum) without default value.ObjectModelAttribute
ObjectModelBuilder. addAttribute(ObjectModelClassifier classifier, String name, String type, String value, ObjectModelModifier... modifiers)
Add an attribute to a classifier (interface, class, enum).ObjectModelAttribute
ObjectModelBuilder. addReverseAssociation(ObjectModelAttribute attrAssociation, String roleName, int minMultiplicity, int maxMultiplicity, ObjectModelModifier... modifiers)
Create reverse association from an other association.ObjectModelAttribute
ObjectModelClassifier. getAttribute(String attributeName)
Returns the attribute corresponding to the given name, or null if the class contains no attribute for this name.ObjectModelAttribute
ObjectModelAttribute. getReverseAttribute()
Returns the attribute used to reference this class at the other end of the association or null if this is not an association, or if it is not bi-directionnal.Methods in org.nuiton.eugene.models.object that return types with arguments of type ObjectModelAttribute Modifier and Type Method Description Collection<ObjectModelAttribute>
ObjectModelClassifier. getAllInterfaceAttributes()
Returns all attributes defined on all interfaces implemented by this classifier, directly or indirectly.Collection<ObjectModelAttribute>
ObjectModelClassifier. getAllOtherAttributes()
Returns all attributes defined on all super class extended by this classifier, directly or indirectly.Collection<ObjectModelAttribute>
ObjectModelClassifier. getAttributes()
Returns all attributes defined on this class.List<ObjectModelAttribute>
ObjectModelAssociationClass. getParticipantsAttributes()
Returns all participants (that is association ends) attributes for this association class.Methods in org.nuiton.eugene.models.object with parameters of type ObjectModelAttribute Modifier and Type Method Description ObjectModelAttribute
ObjectModelBuilder. addReverseAssociation(ObjectModelAttribute attrAssociation, String roleName, int minMultiplicity, int maxMultiplicity, ObjectModelModifier... modifiers)
Create reverse association from an other association.ObjectModelAssociationClass
ObjectModelBuilder. createAssociationClass(String name, String packageName, ObjectModelAttribute attrAssociationA, ObjectModelAttribute attrAssociationB, ObjectModelModifier... modifiers)
Create association class.void
ObjectModelBuilder. setMaxMultiplicity(ObjectModelAttribute attribute, int multiplicity)
Set the max multiplicity of an attribute in the model.void
ObjectModelBuilder. setMinMultiplicity(ObjectModelAttribute attribute, int multiplicity)
Set the min multiplicity of an attribute in the model.void
ObjectModelBuilder. setNavigable(ObjectModelAttribute attribute, boolean navigable)
Set the navigable flag of an attribute in the model. -
Uses of ObjectModelAttribute in org.nuiton.eugene.models.object.validator
Methods in org.nuiton.eugene.models.object.validator with parameters of type ObjectModelAttribute Modifier and Type Method Description protected boolean
AttributeNamesValidator. validateAttribute(ObjectModelAttribute attr)
protected boolean
ObjectModelValidator. validateAttribute(ObjectModelAttribute attr)
-
Uses of ObjectModelAttribute in org.nuiton.eugene.models.object.xml
Classes in org.nuiton.eugene.models.object.xml that implement ObjectModelAttribute Modifier and Type Class Description class
ObjectModelAttributeImpl
ObjectModelAttributeImpl.Fields in org.nuiton.eugene.models.object.xml with type parameters of type ObjectModelAttribute Modifier and Type Field Description protected Map<String,ObjectModelAttribute>
ObjectModelClassifierImpl. attributes
protected List<ObjectModelAttribute>
ObjectModelClassifierImpl. orderedAttributes
protected List<ObjectModelAttribute>
ObjectModelAssociationClassImpl. participantsAttributes
Methods in org.nuiton.eugene.models.object.xml that return ObjectModelAttribute Modifier and Type Method Description ObjectModelAttribute
ObjectModelClassifierImpl. getAttribute(String attributeName)
Returns the attribute corresponding to the given name, or null if the class contains no attribute for this name.ObjectModelAttribute
ObjectModelAttributeImpl. getReverseAttribute()
Returns the attribute used to reference this class at the other end of the association or null if this is not an association, or if it is not bi-directionnal. @ see #getClassifier()Methods in org.nuiton.eugene.models.object.xml that return types with arguments of type ObjectModelAttribute Modifier and Type Method Description Collection<ObjectModelAttribute>
ObjectModelClassifierImpl. getAllInterfaceAttributes()
protected Collection<ObjectModelAttribute>
ObjectModelClassifierImpl. getAllInterfaceAttributes(Collection<ObjectModelAttribute> result)
Collection<ObjectModelAttribute>
ObjectModelClassifierImpl. getAllOtherAttributes()
Collection<ObjectModelAttribute>
ObjectModelClassImpl. getAllOtherAttributes()
protected Collection<ObjectModelAttribute>
ObjectModelClassImpl. getAllOtherAttributes(Collection<ObjectModelAttribute> result)
Collection<ObjectModelAttribute>
ObjectModelClassifierImpl. getAttributes()
List<ObjectModelAttribute>
ObjectModelAssociationClassImpl. getParticipantsAttributes()
Returns all participants (that is association ends) attributes for this association class.Method parameters in org.nuiton.eugene.models.object.xml with type arguments of type ObjectModelAttribute Modifier and Type Method Description protected Collection<ObjectModelAttribute>
ObjectModelClassifierImpl. getAllInterfaceAttributes(Collection<ObjectModelAttribute> result)
protected Collection<ObjectModelAttribute>
ObjectModelClassImpl. getAllOtherAttributes(Collection<ObjectModelAttribute> result)
-