|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.NamedPropertyObject
Represents a container class that contains an EdifNameable
object (to define the name of this object) as well as a PropertyList object to store all properties of the object. This
class is a useful base class for many of the Edif objects used in
this package.
To save memory, this class will not create any PropertyList object unless properties are added to the object.
| Field Summary | |
private EdifNameable |
_name
The EdifNameable object that names this object. |
private PropertyList |
_pl
The PropertyList object. |
| Constructor Summary | |
NamedPropertyObject(EdifNameable name)
Constructs a NamedPropertyObject with the specified name object as its value |
|
NamedPropertyObject(java.lang.String name)
Constructs a NamedPropertyObject with the specified name |
|
| Method Summary | |
void |
addProperty(Property p)
Adds a single property to this object. |
void |
addProperty(java.lang.String name,
NewTypedValue value)
Adds a single property to this object. |
boolean |
equals(NamedPropertyObject cmp)
|
boolean |
equalsProperties(NamedPropertyObject cmp)
Returns True if the passed-in NamedPropertyObject's PropertyList matches the PropertyList Object contained in this Object. |
EdifNameable |
getEdifNameable()
Get the EdifNameable object that names this object. |
java.lang.String |
getName()
Get the Edif name of this object. |
Property |
getProperty(java.lang.String str)
Get a property from this object. |
PropertyList |
getPropertyList()
Return the complete PropertyList of this object. |
(package private) void |
rename(java.lang.String newName)
Renames this object. |
(package private) void |
rename(java.lang.String newName,
java.lang.String oldName)
Renames this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private PropertyList _pl
private EdifNameable _name
| Constructor Detail |
public NamedPropertyObject(java.lang.String name)
name - The name of this new NamedPropertyObjectpublic NamedPropertyObject(EdifNameable name)
name - The object containing name information for this new
NamedPropertyObject| Method Detail |
void rename(java.lang.String newName,
java.lang.String oldName)
newName - The new name for this objectoldName - The new name for this objectvoid rename(java.lang.String newName)
newName - The new name for this object
public void addProperty(java.lang.String name,
NewTypedValue value)
name - The name of the property objectvalue - The instance specific value of this propertypublic void addProperty(Property p)
addProperty in interface Propertiesp - The Property Object to add to this objects list of
properties.public boolean equals(NamedPropertyObject cmp)
public boolean equalsProperties(NamedPropertyObject cmp)
cmp - The Object whose PropertyList Object will be matched
up with the one in this Object
public java.lang.String getName()
getName in interface Nameablepublic EdifNameable getEdifNameable()
EdifNameable Object that contains the name
information of this objectpublic Property getProperty(java.lang.String str)
getProperty in interface Propertiesstr - The 'key' of the property
public PropertyList getPropertyList()
getPropertyList in interface PropertiesPropertyList Object containing all the
properties of this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||