|
|||||||||
| 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
byucc.edif.ArrayListNameSpaceResolver
public class ArrayListNameSpaceResolver
Implements a name space using an ArrayList.
AbstractNameSpaceResolver,
NameSpaceResolver,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ArrayListNameSpaceResolver()
Construct an ArrayListNameSpaceResolver Object with the default initial capacity of 10. |
|
ArrayListNameSpaceResolver(int initialCapacity)
Construct an ArrayListNameSpaceResolver Object with a specified initial capacity. |
|
| Method Summary | |
|---|---|
boolean |
add(int position,
NamedPropertyObject name)
Return true if the name doesn't clash and was added to the name space at the specified position. |
boolean |
add(NamedPropertyObject name)
Return true if the name doesn't clash and was added to the name space. |
java.lang.Object |
getNextValue(java.lang.Object o)
This method will return the next object in the ordered list. |
java.util.Collection |
getNextValues(java.lang.Object o)
This method will return a collection of Value objects in the ordered list that occur after the object parameter. |
java.lang.Object |
getPreviousValue(java.lang.Object o)
This method will return the previous Value object in the ordered list. |
java.util.Collection |
getPreviousValues(java.lang.Object o)
This method will return a collection of Value objects in the ordered list that occur before the object parameter. |
static void |
main(java.lang.String[] args)
|
boolean |
nameClash(java.lang.String name)
Returns true if name does not clash with name space. |
java.lang.String |
returnUniqueName(java.lang.String name)
If the name is valid, return name. |
java.lang.String |
toString()
Returns a string representation of this object. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public ArrayListNameSpaceResolver()
public ArrayListNameSpaceResolver(int initialCapacity)
initialCapacity - The initial capacity of the ArrayList| Method Detail |
|---|
public boolean add(int position,
NamedPropertyObject name)
position - Adds the name object to the specified position.name - Name to add to the name space.
public boolean add(NamedPropertyObject name)
name - Name to add to the name space.
public java.lang.Object getNextValue(java.lang.Object o)
o - The object to find the next value of
public java.util.Collection getNextValues(java.lang.Object o)
o - The object to find the next values of
public java.lang.Object getPreviousValue(java.lang.Object o)
o - The object to find the previous value of
public java.util.Collection getPreviousValues(java.lang.Object o)
o - The object to find the previous values of
public static void main(java.lang.String[] args)
throws EdifNameConflictException
EdifNameConflictExceptionpublic boolean nameClash(java.lang.String name)
nameClash in interface NameSpaceResolvername - Name to check if it already exists in the name space.
public java.lang.String returnUniqueName(java.lang.String name)
returnUniqueName in interface NameSpaceResolvername - Name to modify, and make unique for this name space.
public java.lang.String toString()
toString in interface NameSpaceResolvertoString in class java.util.AbstractCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||