|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jupe.editors.classdiagram.model.Util
public final class Util
This class provides some basic functionality which is used in the model.
One of this functionalities are the counters for the autmatic naming of elements in a diagram which are created by clicking. The counters are implemented as simple long integers which are increased every time.
Method Summary | |
---|---|
static NodeModelElement |
findInIterator(java.lang.Class type,
java.util.ListIterator<NodeModelElement> iterator,
java.lang.String name)
Convenience method to search a specific element using an iterator over NodeModelElement s. |
static long |
getNewAttributeNumber()
Calculates the next attribute number. |
static long |
getNewClassNumber()
Calculates the next class number. |
static long |
getNewInterfaceNumber()
Calculates the next interface number. |
static long |
getNewMethodNumber()
Calculates the next method number. |
static long |
getNewPackageNumber()
Calculates the next package number. |
static java.lang.String |
resolveTypeName(java.lang.String localName,
java.lang.String absoluteContainerName)
Resolves the given local type name and returns its absolute type name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NodeModelElement findInIterator(java.lang.Class type, java.util.ListIterator<NodeModelElement> iterator, java.lang.String name)
NodeModelElement
s.
type
- The type of the element that should be searched (e.g.
ClassElement
.class).iterator
- The iterator over which to search. Should be the iterator of a
collection of children.name
- The name of the element to search. Its the absolute name,
except for AttributeElement
and MethodElement
as type, where the simple name is used.
public static long getNewClassNumber()
public static long getNewInterfaceNumber()
public static long getNewPackageNumber()
public static long getNewAttributeNumber()
public static long getNewMethodNumber()
public static java.lang.String resolveTypeName(java.lang.String localName, java.lang.String absoluteContainerName)
localName
- The local name of a type, e.g. "List". This type has to exist
and be resolvable.absoluteContainerName
- The absolute name of the container of the type, i.e. its class
or interface. E.g. "org.jupe.MyClass".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |