Java Doc for Namespaces.java in  » UML » AndroMDA-3.2 » org » andromda » core » configuration » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » AndroMDA 3.2 » org.andromda.core.configuration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.andromda.core.configuration.Namespaces

Namespaces
public class Namespaces implements Serializable(Code)
Directory of configurable Namespace objects. Namespace objects are used for configuring AndroMDA namespaces.
author:
   Chad Brandon
See Also:   org.andromda.core.configuration.Namespace


Field Summary
final public static  StringDEFAULT
     This is passed as the cartridge name for the Namespaces.getProperty method if we wish to use a 'default' Namespace for Plugins.


Method Summary
public  voidaddNamespace(Namespace namespace)
     Adds a namespace to this collection of namespaces.
public  voidaddNamespaces(Namespace[] namespaces)
     Adds all namespaces to this instance.
public  voidaddRegistry(NamespaceRegistry registry)
     Adds a namespace registry to this instance.
public  voidclear()
     Clears out the current namespaces.
public  NamespacegetNamespace(String namespaceName)
     Gets the Namespace with the corresponding namespaceName.
public  CollectiongetNamespaceRegistries()
     Gets all available namespace registries (these are namespaces which have been discovered but are not necessarily configured).
public  CollectiongetNamespaces()
     Gets the namespaces registered in this namespaces instance.
public  PropertygetProperty(String namespaceName, String propertyName)
     Retrieves a property from the Namespace with the namespaceName.
public  PropertygetProperty(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  StringgetPropertyValue(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  NamespaceRegistrygetRegistry(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  Namespacesinstance()
    
public  booleanisComponentPresent(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  booleanisShared(String namespace)
     Indicates if the given namespace is shared or not.
Parameters:
  namespace - the namespace to check.
public  booleannamespacePresent(String namespaceName)
     Indicates if the namespace is present within this instance.
Parameters:
  namespaceName - the name of the namespace.

Field Detail
DEFAULT
final public static String DEFAULT(Code)
This is passed as the cartridge name for the Namespaces.getProperty method if we wish to use a 'default' Namespace for Plugins. This is so we don't need to define a specific mapping for each Plugin if we don't want. If a namespaceName exists with a specific Plugin name, then that will be used instead of the 'default'





Method Detail
addNamespace
public void addNamespace(Namespace namespace)(Code)
Adds a namespace to this collection of namespaces.
Parameters:
  namespace - the Namespace to add to this instance.



addNamespaces
public void addNamespaces(Namespace[] namespaces)(Code)
Adds all namespaces to this instance.
Parameters:
  namespaces - the array of namespaces to add.



addRegistry
public void addRegistry(NamespaceRegistry registry)(Code)
Adds a namespace registry to this instance. Namespace registries contain property definitions that are defined within a NamespaceRegistry descriptor (used to describe NamespaceComponent ) instances.
Parameters:
  registry - the NamespaceRegistry instance to add.



clear
public void clear()(Code)
Clears out the current namespaces.



getNamespace
public Namespace getNamespace(String namespaceName)(Code)
Gets the Namespace with the corresponding namespaceName.
Parameters:
  namespaceName - the found Namespace



getNamespaceRegistries
public Collection getNamespaceRegistries()(Code)
Gets all available namespace registries (these are namespaces which have been discovered but are not necessarily configured). the collection of namespace registries



getNamespaces
public Collection getNamespaces()(Code)
Gets the namespaces registered in this namespaces instance. all namespaces.



getProperty
public Property getProperty(String namespaceName, String propertyName)(Code)
Retrieves a property from the Namespace with the namespaceName. If the ignore attribute of the Property instance is set to true then lookup of the property will not be attempted and null will just be returned instead. If the propety is not found and ignore is not true a warning message is logged.
Parameters:
  namespaceName - name of the Plugin to which the namespace applies
Parameters:
  propertyName - name of the namespace property to find. String the namespace property value.



getProperty
public Property getProperty(String namespaceName, String propertyName, boolean showWarning)(Code)
Retrieves a property from the Namespace with the namespaceName. If the ignore attribute of the Property instance is set to true then lookup of the property will not be attempted and null will just be returned instead.
Parameters:
  namespaceName - name of the Plugin to which the namespace applies
Parameters:
  propertyName - name of the namespace property to find.
Parameters:
  showWarning - true/false if we'd like to display a warning if the property/namespace can not be found. String the namespace property value.



getPropertyDefinitions
public PropertyDefinition[] getPropertyDefinitions(String namespaceName)(Code)
Retrieves all property definitions for the given namespace.
Parameters:
  namespaceName - the name of the namespace. the list of properties contained in the namespace.



getPropertyValue
public String getPropertyValue(String namespace, String name)(Code)
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. the value (or null if one couldn't be retrieved).



getRegistry
public NamespaceRegistry getRegistry(String namespace)(Code)
Retrieves the namespace registry for the given namespace, or returns null if it doesn't exist.
Parameters:
  namespace - the namespace name. the registry, or null if not found.



getResourceRoots
public URL[] getResourceRoots(String namespace)(Code)
Attempts to retrieve the resource root of the namespace. The resource root is the directory or archive root which contains all namespace resources.
Parameters:
  namespace - the namespace of which to retrieve the resource. the resource or null if it could not be found.



instance
public static Namespaces instance()(Code)
Returns the singleton instance of this Namespaces instance.



isComponentPresent
public boolean isComponentPresent(String namespace, String component)(Code)
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. true/false



isShared
public boolean isShared(String namespace)(Code)
Indicates if the given namespace is shared or not.
Parameters:
  namespace - the namespace to check. true/false.



namespacePresent
public boolean namespacePresent(String namespaceName)(Code)
Indicates if the namespace is present within this instance.
Parameters:
  namespaceName - the name of the namespace. true/false



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.