|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.EdifNameSpaceUtils
public class EdifNameSpaceUtils
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.
| Field Summary | |
|---|---|
private EdifNameClashPolicy |
_clashPolicy
The EdifNameClashPolicy to use for the collection associated with this instance of EdifNameSpaceUtils |
private EdifNameSpace |
_nameSpace
The EdifNameSpace associated with this instance of EdifNameSpaceUtils |
| Constructor Summary | |
|---|---|
EdifNameSpaceUtils(EdifNameSpace nameSpace,
EdifNameClashPolicy clashPolicy)
|
|
| Method Summary | |
|---|---|
boolean |
nameClash(EdifNameable en)
Determine whether the given EdifNameable will cause a name clash with the current name space. |
boolean |
nameClashNew(RenamedObject en)
Determine whether the given RenamedObject will cause a name clash with an exiting new name in the current name space. |
boolean |
nameClashNew(java.lang.String newName)
Determine whether the given String will cause a name clash with an existing new name in the current name space. |
boolean |
nameClashOld(RenamedObject en)
Determine whether the given RenamedObject will cause a name clash with an existing old name in the current name space. |
boolean |
nameClashOld(java.lang.String oldName)
Determine whether the given String will cause a name clash with an existing old name in the current name space. |
boolean |
nameClashSingle(NamedObject en)
Determine whether the given NamedObject will cause a name clash with an existing single name in the current name space. |
boolean |
nameClashSingle(java.lang.String single)
Determine whether the given String will cause a name clash with an existing single name in the current name space. |
EdifNameable |
returnUniqueNameable(EdifNameable en)
Create an EdifNameable object based on the given one that will not clash with any of the existing names in the current name space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private EdifNameClashPolicy _clashPolicy
private EdifNameSpace _nameSpace
| Constructor Detail |
|---|
public EdifNameSpaceUtils(EdifNameSpace nameSpace,
EdifNameClashPolicy clashPolicy)
| Method Detail |
|---|
public boolean nameClash(EdifNameable en)
en - the EdifNameable to compare with the name space
public boolean nameClashNew(RenamedObject en)
en - the RenamedObject to compare with the name space
public boolean nameClashNew(java.lang.String newName)
newName - the String to compare with the name space
public boolean nameClashOld(RenamedObject en)
en - the RenamedObject to compare with the name space
public boolean nameClashOld(java.lang.String oldName)
oldName - the String to compare with the name space
public boolean nameClashSingle(NamedObject en)
en - the NamedObject to compare with the name space
public boolean nameClashSingle(java.lang.String single)
single - the String to compare with the name space
public EdifNameable returnUniqueNameable(EdifNameable en)
en - the EdifNameable object to use as a basis for a unique name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||