|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.metamodeller.BMetaElement
class BMetaElement
Field Summary | |
protected static String |
kDefaultName
|
protected static String |
kKeyName
|
protected static String |
kKeyProperty
|
protected String |
name
the name/identifier of this metaelement * |
protected Vector |
properties
the list of properties (string ids only) belonging to this meta-element * |
Constructor Summary | |
BMetaElement()
Construct the metaelement.. |
Method Summary | |
void |
addProperty(String theProperty)
Removes the property from the elements list of properties. |
boolean |
equals(Object target)
This will determine whether the given BMetaElement is the same as this meta element. |
String |
getName()
Gets the name of the meta-element |
Vector |
getProperties()
This will provide access to the properties of this meta element |
void |
insertPropertyAt(String theProperty,
int index)
Inserts the given property in the list at the index specified. |
boolean |
load(BDataFile file)
|
void |
removeProperty(String theProperty)
Removes the property from the elements list of properties. |
void |
removePropertyAt(int propertyIndex)
Removes the property from the elements list of properties at the given index. |
void |
resetProperties()
Resets the Meta Element. |
boolean |
save(BDataFile file)
|
void |
setName(String theName)
Sets the name of the meta-element Please complete the missing tags for setName |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String name
protected Vector properties
protected static final String kKeyName
protected static final String kDefaultName
protected static final String kKeyProperty
Constructor Detail |
public BMetaElement()
- Method Detail |
public void setName(String theName)
- public String getName()
public String toString()
public void addProperty(String theProperty)
The
- property to removepublic void resetProperties()
public void insertPropertyAt(String theProperty, int index)
theProperty
- The property to removeindex
- The index to insert the property atpublic void removePropertyAt(int propertyIndex)
propertyIndex
- The index of the property to removepublic void removeProperty(String theProperty)
theProperty
- The property to removepublic Vector getProperties()
public boolean equals(Object target)
This is not limited to referential comparisons, that is, one meta element may be created based on one file and another from a different file, (ie. they are two separate instances in memory), yet will still be treated as equal if their members match.
target
- The target element to comparepublic boolean load(BDataFile file)
public boolean save(BDataFile file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |