/** * @see org.eclipse.uml2.uml.NamedElement#setName(String) */ public void setName(final String arg0) { this.property.setName(arg0); }
/** * @see org.eclipse.uml2.uml.NamedElement#setName(String) */ public void setName(final String arg0) { this.property.setName(arg0); }
/** * @see org.eclipse.uml2.uml.NamedElement#setName(String) */ public void setName(final String arg0) { this.property.setName(arg0); }
/** * @see org.eclipse.uml2.uml.NamedElement#setName(String) */ public void setName(final String arg0) { this.property.setName(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 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; }
/** * <!-- 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; }
property.setName(Extension.METACLASS_ROLE_PREFIX + name.substring(5));
@Override public Object caseEAttribute(EAttribute eAttribute) { EClass eContainingClass = eAttribute.getEContainingClass(); if (eContainingClass != null) { Property property = UMLFactory.eINSTANCE.createProperty(); eModelElementToElementMap.put(eAttribute, property); Classifier classifier = (Classifier) doSwitch(eContainingClass); getOwnedAttributes(classifier).add(property); property.setName(eAttribute.getName()); property.setIsReadOnly(!eAttribute.isChangeable()); property.setIsDerived(eAttribute.isDerived()); property.setVisibility(VisibilityKind.PUBLIC_LITERAL); caseETypedElement(eAttribute); defaultCase(eAttribute); return property; } return super.caseEAttribute(eAttribute); }
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; }