/** * @see org.eclipse.uml2.uml.TypedElement#setType(org.eclipse.uml2.uml.Type) */ public void setType(final Type arg0) { this.property.setType(arg0); }
/** * @see org.eclipse.uml2.uml.TypedElement#setType(org.eclipse.uml2.uml.Type) */ public void setType(final Type arg0) { this.property.setType(arg0); }
/** * @see org.eclipse.uml2.uml.TypedElement#setType(org.eclipse.uml2.uml.Type) */ public void setType(final Type arg0) { this.property.setType(arg0); }
/** * @see org.eclipse.uml2.uml.TypedElement#setType(org.eclipse.uml2.uml.Type) */ public void setType(final Type arg0) { this.property.setType(arg0); }
public Property createProperty(String name, Classifier resultType) { Property result = UMLFactory.eINSTANCE.createProperty(); result.setName(name); result.setType(resultType); return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createQualifier(String name, Type type, EClass eClass) { Property newQualifier = (Property) create(eClass); getQualifiers().add(newQualifier); if (name != null) newQualifier.setName(name); if (type != null) newQualifier.setType(type); return newQualifier; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedEnd(String name, Type type, EClass eClass) { Property newOwnedEnd = (Property) create(eClass); getOwnedEnds().add(newOwnedEnd); if (name != null) newOwnedEnd.setName(name); if (type != null) newOwnedEnd.setType(type); return newOwnedEnd; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createNavigableOwnedEnd(String name, Type type, EClass eClass) { Property newNavigableOwnedEnd = (Property) create(eClass); getNavigableOwnedEnds().add(newNavigableOwnedEnd); if (name != null) newNavigableOwnedEnd.setName(name); if (type != null) newNavigableOwnedEnd.setType(type); return newNavigableOwnedEnd; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedEnd(String name, Type type, EClass eClass) { Property newOwnedEnd = (Property) create(eClass); getOwnedEnds().add(newOwnedEnd); if (name != null) newOwnedEnd.setName(name); if (type != null) newOwnedEnd.setType(type); return newOwnedEnd; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createOwnedAttribute(String name, Type type, EClass eClass) { Property newOwnedAttribute = (Property) create(eClass); getOwnedAttributes().add(newOwnedAttribute); if (name != null) newOwnedAttribute.setName(name); if (type != null) newOwnedAttribute.setType(type); return newOwnedAttribute; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createNavigableOwnedEnd(String name, Type type, EClass eClass) { Property newNavigableOwnedEnd = (Property) create(eClass); getNavigableOwnedEnds().add(newNavigableOwnedEnd); if (name != null) newNavigableOwnedEnd.setName(name); if (type != null) newNavigableOwnedEnd.setType(type); return newNavigableOwnedEnd; }
public Property defineAttribute(Classifier owner, Variable<Classifier, Parameter> variable, Constraint constraint) { resetTypeCaches(); Property result; String name = variable.getName(); Classifier type = variable.getType(); result = UMLFactory.eINSTANCE.createProperty(); result.addKeyword(UMLReflection.OCL_HELPER); result.setName(name); result.setType(type); annotate(result, constraint); addHelperProperty(owner, result); return result; }