/** * <p> * Whether or not the multiplicity of this attribute is 1. * </p> * @see AttributeFacade#isRequired() */ public boolean isRequired() { return this.getSuperAttributeFacade().isRequired(); }
/** * <p> * Whether or not the multiplicity of this attribute is 1. * </p> * @see AttributeFacade#isRequired() */ public boolean isRequired() { return this.getSuperAttributeFacade().isRequired(); }
/** * <p> * Whether or not the multiplicity of this attribute is 1. * </p> * @see AttributeFacade#isRequired() */ public boolean isRequired() { return this.getSuperAttributeFacade().isRequired(); }
/** * <p> * Whether or not the multiplicity of this attribute is 1. * </p> * @see AttributeFacade#isRequired() */ public boolean isRequired() { return this.getSuperAttributeFacade().isRequired(); }
public boolean evaluate(final Object object) { final AttributeFacade attribute = (AttributeFacade)object; return attribute.isRequired() && (!(object instanceof EntityAttribute) || !((EntityAttribute)object).isIdentifier()); } });
public boolean evaluate(final Object object) { final AttributeFacade attribute = (AttributeFacade)object; return attribute.isRequired() && (!(object instanceof EntityAttribute) || !((EntityAttribute)object).isIdentifier()); } });
public boolean evaluate(Object object) { boolean valid; valid = ((AttributeFacade)object).isRequired(); if (valid && !withIdentifiers && object instanceof EntityAttribute) { valid = !((EntityAttribute)object).isIdentifier(); } return valid; } });
public boolean evaluate(final Object object) { boolean valid = false; if (object instanceof AttributeFacade) { AttributeFacade attribute = (AttributeFacade)object; valid = attribute.isRequired() && !attribute.isDerived(); if (valid && !withIdentifiers && object instanceof EntityAttribute) { valid = !((EntityAttribute)object).isIdentifier(); } } else if (object instanceof AssociationEndFacade) { valid = ((AssociationEndFacade)object).isRequired(); } return valid; } });
/** * @see org.andromda.metafacades.uml.ClassifierFacade#getRequiredConstructorParameters() */ @Override public Collection handleGetRequiredConstructorParameters() { final Collection requiredConstructorParameters = new ArrayList(); final Collection properties = this.getProperties(); for (Iterator propertyIterator = properties.iterator(); propertyIterator.hasNext();) { final Object property = propertyIterator.next(); if (property instanceof AttributeFacade) { final AttributeFacade attribute = (AttributeFacade)property; if (!attribute.isDerived() && (attribute.isRequired() || attribute.isReadOnly())) { requiredConstructorParameters.add(attribute); } } else if (property instanceof AssociationEndFacade) { final AssociationEndFacade associationEnd = (AssociationEndFacade)property; if (!associationEnd.isDerived() && (associationEnd.isRequired() || associationEnd.isReadOnly())) { requiredConstructorParameters.add(associationEnd); } } } return requiredConstructorParameters; }
/** * Can return either an AttributeFacade or AssociationFacade Collection (UML2 Property) * @see org.andromda.metafacades.uml.ClassifierFacade#getRequiredConstructorParameters() */ @Override public Collection<ModelElementFacade> handleGetRequiredConstructorParameters() { final Collection<ModelElementFacade> requiredConstructorParameters = new ArrayList<ModelElementFacade>(); final Collection<? extends ModelElementFacade> properties = this.getProperties(); for (final Object property : properties) { if (property instanceof AttributeFacade) { final AttributeFacade attribute = (AttributeFacade)property; if (!attribute.isDerived() && (attribute.isRequired() || attribute.isReadOnly())) { requiredConstructorParameters.add(attribute); } } else if (property instanceof AssociationEndFacade) { final AssociationEndFacade associationEnd = (AssociationEndFacade)property; if (!associationEnd.isDerived() && (associationEnd.isRequired() || associationEnd.isReadOnly())) { requiredConstructorParameters.add(associationEnd); } } } return requiredConstructorParameters; }
/** * Can return either an AttributeFacade or AssociationFacade Collection (UML2 Property) * @see org.andromda.metafacades.uml.ClassifierFacade#getRequiredConstructorParameters() */ @Override public Collection<ModelElementFacade> handleGetRequiredConstructorParameters() { final Collection<ModelElementFacade> requiredConstructorParameters = new ArrayList<ModelElementFacade>(); final Collection<? extends ModelElementFacade> properties = this.getProperties(); for (final Object property : properties) { if (property instanceof AttributeFacade) { final AttributeFacade attribute = (AttributeFacade)property; if (!attribute.isDerived() && (attribute.isRequired() || attribute.isReadOnly())) { requiredConstructorParameters.add(attribute); } } else if (property instanceof AssociationEndFacade) { final AssociationEndFacade associationEnd = (AssociationEndFacade)property; if (!associationEnd.isDerived() && (associationEnd.isRequired() || associationEnd.isReadOnly())) { requiredConstructorParameters.add(associationEnd); } } } return requiredConstructorParameters; }
public boolean evaluate(final Object object) { boolean valid = false; if (object instanceof AttributeFacade) { final AttributeFacade attribute = (AttributeFacade)object; valid = attribute.isRequired() && !attribute.isDerived(); if (valid && !withIdentifiers && object instanceof EntityAttribute) { valid = !((EntityAttribute)object).isIdentifier(); } } else if (object instanceof AssociationEndFacade) { final AssociationEndFacade assocationEnd = (AssociationEndFacade)object; valid = assocationEnd.isRequired() && !assocationEnd.isDerived(); } return valid; } });
public boolean evaluate(final Object object) { boolean valid = false; if (object instanceof AttributeFacade) { final AttributeFacade attribute = (AttributeFacade)object; valid = attribute.isRequired() && !attribute.isDerived(); if (valid && !withIdentifiers && object instanceof EntityAttribute) { valid = !((EntityAttribute)object).isIdentifier(); } } else if (object instanceof AssociationEndFacade) { final AssociationEndFacade assocationEnd = (AssociationEndFacade)object; valid = assocationEnd.isRequired() && !assocationEnd.isDerived(); } return valid; } });