|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EdifNameSpace<E extends NamedPropertyObject>
A group of Nameable objects each with a unique String name. The group specifies a name space of unique names for EdifNameable objects. Each name in the space is unique and methods are provided for creating and checking for uniqueness. Each unique name is associated with a EdifNameable object.
| Method Summary | |
|---|---|
void |
addElement(E element)
Add an EdifNameable object to the name space. |
boolean |
contains(E element)
Indicate whether the given EdifNameable object is a member of the name space. |
boolean |
containsNew(java.lang.String name)
Indicate whether the name space contains a new name (part of a RenamedObject) that matches the given string. |
boolean |
containsOld(java.lang.String name)
Indicate whether the name space contains an old name (part of a RenamedObject) that matches the given string. |
boolean |
containsSingle(java.lang.String name)
Indicate whether the name space contains a single name (as a NamedObject) that matches the given string. |
E |
get(java.lang.String name)
Return the Nameable object associated with this name space that matches the given String name. |
EdifNameable |
getUniqueNameable(E element)
Determine a name based on the name of the given element that will not clash with any names already in the name space. |
EdifNameable |
getUniqueNameable(EdifNameable en)
Determine a name based on the given name that will not clash with any names already in the name space. |
java.util.Iterator<E> |
iterator()
Return an Iterator for all Nameable objects in the name space |
boolean |
nameClash(E element)
Determine if the given elements name will clash with the names already in the name space. |
boolean |
nameClash(EdifNameable en)
Determine if the given name will clash with the names in this given EdifNameSpace. |
int |
size()
Indicate the number of members of the name space |
| Methods inherited from interface byucc.edif.Trimable |
|---|
trimToSize |
| Method Detail |
|---|
void addElement(E element)
throws EdifNameConflictException
e - 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.boolean contains(E element)
e - The NamedPropertyObject to search for in the name
space.
E get(java.lang.String name)
name -
EdifNameable getUniqueNameable(E element)
element - the element whose name will be used as a basis for
a unique name
EdifNameable getUniqueNameable(EdifNameable en)
en - the name to use as a basis for a unique name.
java.util.Iterator<E> iterator()
boolean nameClash(E element)
element - the element whose name will be compared with the name
space
boolean nameClash(EdifNameable en)
en - the name that will be compared with the name space
boolean containsNew(java.lang.String name)
name - the string to match against
boolean containsOld(java.lang.String name)
name - the string to match against
boolean containsSingle(java.lang.String name)
name - the string to match against
int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||