|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.namespace.NamespaceRegistry
public class NamespaceRegistry
Represents a namespace registry. This is where all components within a namespace are registered.
| Constructor Summary | |
|---|---|
NamespaceRegistry()
|
|
| Method Summary | |
|---|---|
void |
addPropertyDefinition(PropertyDefinition propertyDefinition)
Adds a property definition to the group of defintions. |
void |
addPropertyDefinitions(PropertyDefinition[] propertyDefinitions)
Adds all property definitions to the current property definitions. |
(package private) void |
addResourceRoot(URL resourceRoot)
Adds a resource root to this namespace (since a namespace can consist of multiple locations) |
(package private) void |
copy(NamespaceRegistry registry)
Copies all contents from the registry
to this instance. |
String |
getName()
Gets the name of the namespace registry. |
String[] |
getPaths(String name)
Gets the initialization paths for the given component name. |
PropertyDefinition |
getPropertyDefinition(String name)
Attempts to retrieve the property definition for the given name. |
PropertyDefinition[] |
getPropertyDefinitions()
Gets all property definitions belonging to this registry. |
String[] |
getRegisteredComponents()
Gets the names registered components. |
URL[] |
getResourceRoots()
Gets the resource root of this namespace. |
boolean |
isShared()
Gets whether or not the namespace defined by this registry is shared. |
void |
registerComponent(Component component)
Registers the component with the give name in this registry. |
void |
setName(String name)
SEts the name of the namespace registry. |
void |
setShared(boolean shared)
Sets whether or not the namespace defined by this registry is shared. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceRegistry()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The name to set.public boolean isShared()
public void setShared(boolean shared)
shared - The shared to set.public void registerComponent(Component component)
component - the component of the registry.public String[] getRegisteredComponents()
public String[] getPaths(String name)
name - the name of the component.
public PropertyDefinition getPropertyDefinition(String name)
name.
name -
public void addPropertyDefinitions(PropertyDefinition[] propertyDefinitions)
propertyDefinitions - the collection of property definitions.final void copy(NamespaceRegistry registry)
registry
to this instance.
registry - the registry to copy.public PropertyDefinition[] getPropertyDefinitions()
public void addPropertyDefinition(PropertyDefinition propertyDefinition)
propertyDefinition - the property definition.public URL[] getResourceRoots()
final void addResourceRoot(URL resourceRoot)
resourceRoot - The resource root to set.public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||