View previous topic :: View next topic |
Author |
Message |
adam_ratcliffe
Joined: 12 Nov 2004
Posts: 3
|
Posted: Sat Nov 13, 2004 12:29 am Post subject: Displaying attributes for association relationships
|
|
|
Hi,
I'm a little stuck on how to display class attributes when the attribute refers to an object type.
If I choose to display associations in the class diagram editor the object attributes can be inferred from the association lines but are not displayed in the attributes compartment. If I open the editor without the associations option selected the attributes are still not displayed and if the 'Use property concept' preference is selected the property is not displayed either.
I've attached a section of the class diagram with associations and the Java source for one of the classes that shows this behaviour is shown below.
Thanks in advance,
Adam
/*
* Created on Nov 9, 2004
*
*/
package com.geosmart.cocoon.model;
import java.io.Serializable;
/**
* @author Adam Ratcliffe
*/
public class Map implements Serializable {
/**
*
* @uml.property name="url" multiplicity="(0 1)"
*/
private String url;
/**
*
* @uml.property name="windowCenter"
* @uml.associationEnd multiplicity="(0 1)"
*/
private Coordinate windowCenter;
/**
*
* @uml.property name="windowMinimum"
* @uml.associationEnd multiplicity="(0 1)"
*/
private Coordinate windowMinimum;
/**
*
* @uml.property name="windowMaximum"
* @uml.associationEnd multiplicity="(0 1)"
*/
private Coordinate windowMaximum;
/**
*
* @uml.property name="height" multiplicity="(0 1)"
*/
private int height;
/**
*
* @uml.property name="width" multiplicity="(0 1)"
*/
private int width;
/**
*
* @uml.property name="colorDepth" multiplicity="(0 1)"
*/
private int colorDepth;
/**
*
* @uml.property name="format" multiplicity="(0 1)"
*/
private String format;
/**
* @return Returns the url.
*
* @uml.property name="url"
*/
public String getUrl() {
return url;
}
/**
* @param url The url to set.
*
* @uml.property name="url"
*/
public void setUrl(String url) {
this.url = url;
}
/**
* @return Returns the colorDepth.
*
* @uml.property name="colorDepth"
*/
public int getColorDepth() {
return colorDepth;
}
/**
* @param colorDepth The colorDepth to set.
*
* @uml.property name="colorDepth"
*/
public void setColorDepth(int colorDepth) {
this.colorDepth = colorDepth;
}
/**
* @return Returns the format.
*
* @uml.property name="format"
*/
public String getFormat() {
return format;
}
/**
* @param format The format to set.
*
* @uml.property name="format"
*/
public void setFormat(String format) {
this.format = format;
}
/**
* @return Returns the height.
*
* @uml.property name="height"
*/
public int getHeight() {
return height;
}
/**
* @param height The height to set.
*
* @uml.property name="height"
*/
public void setHeight(int height) {
this.height = height;
}
/**
* @return Returns the width.
*
* @uml.property name="width"
*/
public int getWidth() {
return width;
}
/**
* @param width The width to set.
*
* @uml.property name="width"
*/
public void setWidth(int width) {
this.width = width;
}
/**
* @return Returns the windowCenter.
*
* @uml.property name="windowCenter"
*/
public Coordinate getWindowCenter() {
return windowCenter;
}
/**
* @param windowCenter The windowCenter to set.
*
* @uml.property name="windowCenter"
*/
public void setWindowCenter(Coordinate windowCenter) {
this.windowCenter = windowCenter;
}
/**
* @return Returns the windowMaximum.
*
* @uml.property name="windowMaximum"
*/
public Coordinate getWindowMaximum() {
return windowMaximum;
}
/**
* @param windowMaximum The windowMaximum to set.
*
* @uml.property name="windowMaximum"
*/
public void setWindowMaximum(Coordinate windowMaximum) {
this.windowMaximum = windowMaximum;
}
/**
* @return Returns the windowMinimum.
*
* @uml.property name="windowMinimum"
*/
public Coordinate getWindowMinimum() {
return windowMinimum;
}
/**
* @param windowMinimum The windowMinimum to set.
*
* @uml.property name="windowMinimum"
*/
public void setWindowMinimum(Coordinate windowMinimum) {
this.windowMinimum = windowMinimum;
}
}
|
|
Back to top |
|
|
julien
Joined: 16 Mar 2003
Posts: 157
|
Posted: Fri Nov 26, 2004 8:58 am Post subject: Re: Displaying attributes for association relationships
|
|
|
There is an option "Show association member". Have you checked it ?
julien
omondo
|
|
Back to top |
|
|
adam_ratcliffe
Joined: 12 Nov 2004
Posts: 3
|
Posted: Tue Nov 30, 2004 8:54 am Post subject:
|
|
|
Hi Julien
Thanks for your reply. Yes I do have the "Show Association Member" option checked.
I would upload a screenshot of my preferences only the maximum size for all uploaded images has been reached for this board.
Cheers
Adam
|
|
Back to top |
|
|
|