public class NamespaceDefinitions extends Object
LeoNamespace
sConstructor and Description |
---|
NamespaceDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
clearDefinitions()
Removes all
LeoNamespace 's. |
boolean |
containsNamespace(LeoObject namespace)
Determines if there is a
LeoNamespace associated with the supplied name. |
LeoNamespace |
getNamespace(LeoObject namespace)
Retrieves the
LeoNamespace associated with the supplied name. |
Map<LeoObject,LeoNamespace> |
getNamespaceDefinitions() |
boolean |
hasDefinitions()
Determine if there are any
LeoNamespace 's defined |
void |
removeNamespace(LeoObject namespaceName)
Removes the
LeoNamespace associated with the supplied name |
void |
storeNamespace(LeoNamespace ns)
Stores the
LeoNamespace |
void |
storeNamespace(LeoObject namespaceName,
LeoNamespace ns)
Stores the
LeoNamespace , bounded to the supplied namespace name |
public boolean hasDefinitions()
LeoNamespace
's definedLeoNamespace
's definedpublic void clearDefinitions()
LeoNamespace
's. Use this method with care.public Map<LeoObject,LeoNamespace> getNamespaceDefinitions()
public void storeNamespace(LeoNamespace ns)
LeoNamespace
ns
- public void storeNamespace(LeoObject namespaceName, LeoNamespace ns)
LeoNamespace
, bounded to the supplied namespace namenamespaceName
- ns
- public void removeNamespace(LeoObject namespaceName)
LeoNamespace
associated with the supplied namenamespaceName
- public boolean containsNamespace(LeoObject namespace)
LeoNamespace
associated with the supplied name.namespace
- LeoNamespace
associated with the supplied name.public LeoNamespace getNamespace(LeoObject namespace)
LeoNamespace
associated with the supplied name.namespace
- LeoNamespace
associated with the supplied name,
or null if not bound.Copyright © 2010–2015. All rights reserved.