|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.AbstractEdifNameSpace
public abstract class AbstractEdifNameSpace
An abstract implementation of the EdifNameSpace. This class does not have any implementation specific code (i.e. storage of the name space) but does provide a number of helper functions that simplify the process of creating an EdifNameSpace.
| Constructor Summary | |
|---|---|
AbstractEdifNameSpace()
|
|
| Method Summary | |
|---|---|
void |
add(Nameable en)
Adds a EdifNameable object to the Collection. |
protected abstract void |
addImplementation(Nameable en)
|
java.lang.String |
addUniqueName(NamedPropertyObject en)
Adds a EdifNameable object to the Collection. |
boolean |
nameClash(Nameable en)
Determines if the given named object will clash with the names in this given EdifNameSpace. |
boolean |
nameClash(java.lang.String str)
Indicates that there is a name clash within this Collection. |
java.lang.String |
returnUniqueName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface byucc.edif.EdifNameSpace |
|---|
contains, get, iterator, remove, size |
| Methods inherited from interface byucc.edif.Trimable |
|---|
trimToSize |
| Constructor Detail |
|---|
public AbstractEdifNameSpace()
| Method Detail |
|---|
public boolean nameClash(java.lang.String str)
EdifNameSpace
nameClash in interface EdifNameSpacestr - The String object that is to be compared against
the collection. Note that this method will perform the
check using case insensitivity.
public boolean nameClash(Nameable en)
EdifNameSpace
nameClash in interface EdifNameSpaceen - The EdifNameable object that is to be compared against
the name space
public java.lang.String addUniqueName(NamedPropertyObject en)
EdifNameSpace
addUniqueName in interface EdifNameSpaceen - Add the named object to the name space. The name of
the object is associated with name of the NamedPropertyObject.
public java.lang.String returnUniqueName(java.lang.String name)
protected abstract void addImplementation(Nameable en)
public void add(Nameable en)
throws EdifNameConflictException
EdifNameSpace
add in interface EdifNameSpaceen - Add the named object to the name space. The name of
the object is associated with name of the NamedPropertyObject.
EdifNameConflictException - This exception is thrown when
a name conflict occurs during the add.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||