|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
byucc.edif.EdifNameSpaceList<E>
public class EdifNameSpaceList<E extends NamedPropertyObject>
A List implementation of the EdifNameSpace interface.
| Field Summary | |
|---|---|
private EdifNameSpaceUtils |
_util
Contains methods common to all EdifNameSpace implementations. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
EdifNameSpaceList(EdifNameClashPolicy clashPolicy)
Construct an EdifNameSpaceList with the given EdifNameClashPolicy. |
|
EdifNameSpaceList(EdifNameClashPolicy clashPolicy,
int size)
Construct an EdifNameSpaceList with the given EdifNameClashPolicy and size. |
|
| 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 str)
Indicate whether the name space contains a new name (part of a RenamedObject) that matches the given string. |
boolean |
containsOld(java.lang.String str)
Indicate whether the name space contains an old name (part of a RenamedObject) that matches the given string. |
boolean |
containsSingle(java.lang.String str)
Indicate whether the name space contains a single name (as a NamedObject) that matches the given string. |
E |
get(java.lang.String str)
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. |
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. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface byucc.edif.EdifNameSpace |
|---|
iterator, size |
| Methods inherited from interface byucc.edif.Trimable |
|---|
trimToSize |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
private EdifNameSpaceUtils _util
| Constructor Detail |
|---|
public EdifNameSpaceList(EdifNameClashPolicy clashPolicy)
clashPolicy - the clash policy to use for determining if two
names clash
public EdifNameSpaceList(EdifNameClashPolicy clashPolicy,
int size)
clashPolicy - the clash policy to use for determining if two
names clashsize - the original size of the list| Method Detail |
|---|
public void addElement(E element)
throws EdifNameConflictException
EdifNameSpace
addElement in interface EdifNameSpace<E extends NamedPropertyObject>EdifNameConflictException - This exception is thrown when
a name conflict occurs during the add.public boolean contains(E element)
EdifNameSpace
contains in interface EdifNameSpace<E extends NamedPropertyObject>public E get(java.lang.String str)
EdifNameSpace
get in interface EdifNameSpace<E extends NamedPropertyObject>public EdifNameable getUniqueNameable(E element)
EdifNameSpace
getUniqueNameable in interface EdifNameSpace<E extends NamedPropertyObject>element - the element whose name will be used as a basis for
a unique name
public EdifNameable getUniqueNameable(EdifNameable en)
EdifNameSpace
getUniqueNameable in interface EdifNameSpace<E extends NamedPropertyObject>en - the name to use as a basis for a unique name.
public boolean nameClash(E element)
EdifNameSpace
nameClash in interface EdifNameSpace<E extends NamedPropertyObject>element - the element whose name will be compared with the name
space
public boolean nameClash(EdifNameable en)
EdifNameSpace
nameClash in interface EdifNameSpace<E extends NamedPropertyObject>en - the name that will be compared with the name space
public boolean containsNew(java.lang.String str)
EdifNameSpace
containsNew in interface EdifNameSpace<E extends NamedPropertyObject>str - the string to match against
public boolean containsOld(java.lang.String str)
EdifNameSpace
containsOld in interface EdifNameSpace<E extends NamedPropertyObject>str - the string to match against
public boolean containsSingle(java.lang.String str)
EdifNameSpace
containsSingle in interface EdifNameSpace<E extends NamedPropertyObject>str - the string to match against
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||