Method Summary |
|
public void | addNamespace(Namespace namespace) Adds a namespace to this collection of namespaces. |
public void | addNamespaces(Namespace[] namespaces) Adds all namespaces to this instance. |
public void | addRegistry(NamespaceRegistry registry) Adds a namespace registry to this instance. |
public void | clear() Clears out the current namespaces. |
public Namespace | getNamespace(String namespaceName) Gets the Namespace with the corresponding namespaceName . |
public Collection | getNamespaceRegistries() Gets all available namespace registries (these are namespaces
which have been discovered but are not necessarily configured). |
public Collection | getNamespaces() Gets the namespaces registered in this namespaces instance. |
public Property | getProperty(String namespaceName, String propertyName) Retrieves a property from the Namespace with the namespaceName. |
public Property | getProperty(String namespaceName, String propertyName, boolean showWarning) Retrieves a property from the Namespace with the namespaceName. |
public PropertyDefinition[] | getPropertyDefinitions(String namespaceName) Retrieves all property definitions for the given namespace.
Parameters: namespaceName - the name of the namespace. |
public String | getPropertyValue(String namespace, String name) Attempts to get the value of a property from the given
namespace with the given name by first attempting
to retrieve it from the namespace and if no property is defined
in the namespace we retrieve the default value (if one is defined).
Parameters: namespace - the namespace for which to retreive the value. Parameters: name - the name of the value to retrieve. |
public NamespaceRegistry | getRegistry(String namespace) Retrieves the namespace registry for the given namespace, or returns null
if it doesn't exist.
Parameters: namespace - the namespace name. |
public URL[] | getResourceRoots(String namespace) Attempts to retrieve the resource root of the namespace. |
public static Namespaces | instance() |
public boolean | isComponentPresent(String namespace, String component) Indicates whether or not the component is present within the given
namespace
Parameters: namespace - the name of the namespace. Parameters: component - the name of the component type. |
public boolean | isShared(String namespace) Indicates if the given namespace is
shared or not.
Parameters: namespace - the namespace to check. |
public boolean | namespacePresent(String namespaceName) Indicates if the namespace is present within this instance.
Parameters: namespaceName - the name of the namespace. |