Java Doc for Mappings.java in  » UML » AndroMDA-3.2 » org » andromda » core » mapping » 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.mapping 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.andromda.core.mapping.Mappings

Mappings
public class Mappings (Code)

An object responsible for mapping multiple from values to single to. The public constructor should NOT be used to construct this instance. An instance of this object should be retrieved through the method getInstance(java.net.URL).

The mappings will change based upon the language, database, etc being used.


author:
   Chad Brandon
author:
   Wouter Zoons
See Also:   org.andromda.core.common.XmlObjectFactory




Method Summary
public static  voidaddLogicalMappings(URL mappingsUri)
     Adds a mapping to the globally available mappings, these are used by this class to instantiate mappings from logical names as opposed to physical names.
public  voidaddMapping(Mapping mapping)
     Adds a Mapping object to the set of current mappings.
public  voidaddMappings(Mappings mappings)
     Adds the mappings instance to this Mappings instance overriding any mappings with duplicate names.
public static  voidclearLogicalMappings()
     Clears the entries from the logical mappings cache.
public  booleancontainsFrom(String from)
     Returns true if the mapping contains the from value
Parameters:
  from - the value of the from mapping.
final  StringgetCompletePath(String relativePath)
     Constructs the complete path from the given relativePath and the resource of the parent Mappings.getResource as the root of the path.
public static  MappingsgetInstance(String mappingsUri)
     Returns a new configured instance of this Mappings configured from the mappings configuration URI string.
Parameters:
  mappingsUri - the URI to the XML type mappings configuration file.
public static  MappingsgetInstance(URL mappingsUri)
     Returns a new configured instance of this Mappings configured from the mappings configuration URI.
Parameters:
  mappingsUri - the URI to the XML type mappings configuration file.
public  MappinggetMapping(String from)
     Gets the mapping having the given from.
Parameters:
  from - the from mapping.
public  CollectiongetMappings()
     Gets all Mapping instances for for this Mappings instance.
public  StringgetName()
     Returns the name name (this is the name for which the type mappings are for).
public  URLgetResource()
     Returns the resource URI from which this Mappings object was loaded.
public  StringgetTo(String from)
     Returns the to mapping from a given from mapping.
Parameters:
  from - the from mapping, this is the type/identifierthat is in the model.
public static  voidinitializeLogicalMappings()
     This initializes all logical mappings that are contained with global Mapping set.
public  voidsetExtendsUri(String extendsUri)
     Sets the name of the mappings which this instance extends.
public  voidsetName(String name)
     Sets the name name.
public  StringtoString()
    



Method Detail
addLogicalMappings
public static void addLogicalMappings(URL mappingsUri)(Code)
Adds a mapping to the globally available mappings, these are used by this class to instantiate mappings from logical names as opposed to physical names.
Parameters:
  mappingsUri - the Mappings URI to add to the globally available Mappinginstances.



addMapping
public void addMapping(Mapping mapping)(Code)
Adds a Mapping object to the set of current mappings.
Parameters:
  mapping - the Mapping instance.



addMappings
public void addMappings(Mappings mappings)(Code)
Adds the mappings instance to this Mappings instance overriding any mappings with duplicate names.
Parameters:
  mappings - the Mappings instance to add this instance.



clearLogicalMappings
public static void clearLogicalMappings()(Code)
Clears the entries from the logical mappings cache.



containsFrom
public boolean containsFrom(String from)(Code)
Returns true if the mapping contains the from value
Parameters:
  from - the value of the from mapping. true if it contains from, false otherwise.



getCompletePath
final String getCompletePath(String relativePath)(Code)
Constructs the complete path from the given relativePath and the resource of the parent Mappings.getResource as the root of the path. the complete path.



getInstance
public static Mappings getInstance(String mappingsUri)(Code)
Returns a new configured instance of this Mappings configured from the mappings configuration URI string.
Parameters:
  mappingsUri - the URI to the XML type mappings configuration file. Mappings the configured Mappings instance.



getInstance
public static Mappings getInstance(URL mappingsUri)(Code)
Returns a new configured instance of this Mappings configured from the mappings configuration URI.
Parameters:
  mappingsUri - the URI to the XML type mappings configuration file. Mappings the configured Mappings instance.



getMapping
public Mapping getMapping(String from)(Code)
Gets the mapping having the given from.
Parameters:
  from - the from mapping. the Mapping instance (or null if it doesn't exist).



getMappings
public Collection getMappings()(Code)
Gets all Mapping instances for for this Mappings instance. a collection containing all Mapping instances.



getName
public String getName()(Code)
Returns the name name (this is the name for which the type mappings are for). String the name name



getResource
public URL getResource()(Code)
Returns the resource URI from which this Mappings object was loaded. URL of the resource.



getTo
public String getTo(String from)(Code)
Returns the to mapping from a given from mapping.
Parameters:
  from - the from mapping, this is the type/identifierthat is in the model. String to the to mapping (this is the mapping thatcan be retrieved if a corresponding 'from' is found).



initializeLogicalMappings
public static void initializeLogicalMappings()(Code)
This initializes all logical mappings that are contained with global Mapping set. This MUST be called after all logical mappings have been added through Mappings.addLogicalMappings(java.net.URL) otherwise inheritance between logical mappings will not work correctly.



setExtendsUri
public void setExtendsUri(String extendsUri)(Code)
Sets the name of the mappings which this instance extends.
Parameters:
  extendsUri - the URI of the mapping whichthis one extends.



setName
public void setName(String name)(Code)
Sets the name name.
Parameters:
  name -



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



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.