Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28510/src/net/sourceforge/bprocessor/model
Modified Files:
Component.java
Log Message:
Improvement to components
Index: Component.java
===================================================================
RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Component.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Component.java 19 Nov 2007 09:33:20 -0000 1.2
--- Component.java 19 Nov 2007 10:51:41 -0000 1.3
***************
*** 35,38 ****
--- 35,47 ----
name = s.getName();
}
+
+ /**
+ * Constructs a component for specified union
+ * @param union Union
+ */
+ public Component(Space union) {
+ this.space = union;
+ name = union.getName();
+ }
/**
***************
*** 139,143 ****
*/
public void setAttributes(List<Attribute> attributes) {
!
}
--- 148,156 ----
*/
public void setAttributes(List<Attribute> attributes) {
! for (Attribute current : attributes) {
! if (current.getName().equals("name")) {
! setName((String) current.getValue());
! }
! }
}
|