|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The Namespace interface provides methods and constants which any class dealing with namespaces needs to implement.
| Field Summary | |
static String |
CPP_NS_TOKEN
the scope token for c++. |
static String |
JAVA_NS_TOKEN
the scope token for java. |
static String |
UML_NS_TOKEN
the scope token for uml. |
| Method Summary | |
Namespace |
getBaseNamespace()
returns the base of a namespace, e.g. |
Namespace |
getCommonNamespace(Namespace namespace)
returns the namespace which is common to both namespaces, e.g. |
boolean |
isEmpty()
check if the namespace is empty. |
Iterator |
iterator()
return an iterator to the namespace elements. |
NamespaceElement |
peekNamespaceElement()
return the innermost namespace element without removing it. |
NamespaceElement |
popNamespaceElement()
reduces the innermost namespace element, e.g. |
void |
pushNamespaceElement(NamespaceElement element)
add another element to a namespace. |
void |
setDefaultScopeToken(String token)
namespaces usually have a scope operator when used in representational form. |
String |
toString(String token)
return a string representation of the namespace with the given token. |
| Field Detail |
public static final String JAVA_NS_TOKEN
public static final String UML_NS_TOKEN
public static final String CPP_NS_TOKEN
| Method Detail |
public Namespace getCommonNamespace(Namespace namespace)
org.argouml.model
and org.argouml.util have org.argouml in
common.
namespace - a namespace
public Namespace getBaseNamespace()
org.argouml.util
is org.argouml.
public void pushNamespaceElement(NamespaceElement element)
element - the element to addpublic NamespaceElement popNamespaceElement()
org.argouml.model
will return model, and change the namespace
to org.argouml.
public NamespaceElement peekNamespaceElement()
public void setDefaultScopeToken(String token)
token - the token to use from now on.public Iterator iterator()
public boolean isEmpty()
public String toString(String token)
token - the token to be converted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2005 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |