|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.modeler.data.Attribute
Field Summary | |
private String |
data
|
private String |
name
|
Constructor Summary | |
Attribute(String name)
create an attribute with a name and null value |
|
Attribute(String name,
String data)
create an attribute with a name and value |
Method Summary | |
String |
getData()
retrieve attribute data value |
String |
getName()
retrieve attribute name |
void |
setData(String newData)
set attribute data value |
void |
setName(String newName)
set attribute name |
String |
toString()
render this attribute as a string of the form <name>="<data value>" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String name
private String data
Constructor Detail |
public Attribute(String name)
name
- - attribute namepublic Attribute(String name, String data)
name
- - attribute namedata
- - attribute data valueMethod Detail |
public String getName()
public void setName(String newName)
newName
- - new attribute namepublic void setData(String newData)
newData
- - new data valuepublic String getData()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |