public class NamespaceRegistry extends Object
Constructor and Description |
---|
NamespaceRegistry() |
Modifier and Type | Method and Description |
---|---|
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() |
public NamespaceRegistry()
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 Object
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.