Java Doc for ModelAssistant.java in  » UML » MetaBoss » com » metaboss » sdlctools » models » 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 » MetaBoss » com.metaboss.sdlctools.models 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.metaboss.sdlctools.models.ModelAssistant

All known Subclasses:   com.metaboss.sdlctools.models.modelassistant.metabossmodel.codeconstraints.ModelAssistantImpl,  com.metaboss.sdlctools.models.modelassistant.metabossmodel.SingleModelAssistantImplBase,
ModelAssistant
public interface ModelAssistant (Code)
Represents the interface for the model assistant component. Model assistant is a component which can be installed to look after certain aspects of the model. It can perform following tasks
  • Validate model and produce list of error mesages describing what is wrong with the model from the point of view of this particular assistant. Validation is expected to be implemented in body of the verifyConstraints() method. Note that each assistant should only verify "own" constraints and not general model ones. If due to general model errors assistant is unable to even check "own" constraints - verifyConstraints() method should just return quetly.
  • Attempt to correct the errors in the model. This is expected to be implemented in body of the rectifyModel() method.
  • Autocomplete creation, deletion or modification of model objects so the relationships this assitant is looking after remain valid. Autocompletion is expected to be implemented in bodies of the onModelElement.......() methods. These methods are invoked by ModelRepository at the time when change is taking place while repository is still in transaction. Therefore all autocompletion changes to the model will be a part of the same transaction and will be rolled back together with original changes if required.

Inner Class :public interface ModelActionsLogger

Field Summary
final public static  StringCOMPONENT_URL
    
final public static  StringOWNER_IDENTIFIER_PRREFIX
     The prefix assistants use to form an owner identifier name of the elements they own.


Method Summary
public  voidassignToModel(String pModelName)
     Assign this Assistant to look after a particular model. Each assistant can only look after one model at a time, but any number of instances of assistants of the same type may be created as needed (e.g.
public  voiddismissFromModel(String pModelName)
    
public  voidonModelElementAttributeBeingUpdated(String pModelName, RefObject pModelElementBeingUpdated, String pAttributeName, Object pOldAttributeValue, Object pNewAttributeValue)
     This method is called when attribute of the ModelElement has been modified. Model is in transaction at the time and any change performed here may be rolled back if transaction is not committed
Parameters:
  pModelName - - the name of the model where action is taking place
Parameters:
  pModelElementBeingUpdated - the element being updated
Parameters:
  pAttributeName - the name of the attribute being updated
Parameters:
  pOldAttributeValue - - the old value of the attribute.
public  voidonModelElementBeingDeleted(String pModelName, RefObject pModelElementToBeDeleted)
     This method is called when ModelElement is being deleted.
public  voidonModelElementJustCreated(String pModelName, RefObject pModelElementJustCreated)
     This method is called when ModelElement is being created.
public  voidonModelElementReferenceBeingUpdated(String pModelName, RefObject pModelElementBeingUpdated, String pReferenceName, RefObject pReferencedModelElementToRemove, RefObject pReferencedModelElementToAdd)
     This method is called when reference of the ModelElement has been modified.
public  voidrectifyModel(String pModelName)
     This method attempts to rectify the model.
public  voidsetActionsLogger(String pModelName, ModelActionsLogger pModelActionsLogger)
     Assign the actions loger to this assistantis Assistant to look after a particular model.
Parameters:
  pModelName - - the name of the model this logger is assigned to
Parameters:
  pModelActionsLogger - - the logger to use.
public  CollectionverifyConstraints(String pModelName)
     This method verifies model constraints and returns collection of exceptions.

Field Detail
COMPONENT_URL
final public static String COMPONENT_URL(Code)
Naming URL of the component



OWNER_IDENTIFIER_PRREFIX
final public static String OWNER_IDENTIFIER_PRREFIX(Code)
The prefix assistants use to form an owner identifier name of the elements they own. Normally model element owner identifier will consist of <thisprefix><assistant package namegt;





Method Detail
assignToModel
public void assignToModel(String pModelName) throws ModelRepositoryException(Code)
Assign this Assistant to look after a particular model. Each assistant can only look after one model at a time, but any number of instances of assistants of the same type may be created as needed (e.g. in case number of instances of the same model have been loaded)
Parameters:
  pModelName - - the name of the model this assistant needs to look after



dismissFromModel
public void dismissFromModel(String pModelName) throws ModelRepositoryException(Code)
Relieve this Assistant from looking after the model
Parameters:
  pModelName - - the name of the model this assistant needs to stop looking after



onModelElementAttributeBeingUpdated
public void onModelElementAttributeBeingUpdated(String pModelName, RefObject pModelElementBeingUpdated, String pAttributeName, Object pOldAttributeValue, Object pNewAttributeValue) throws ModelRepositoryException(Code)
This method is called when attribute of the ModelElement has been modified. Model is in transaction at the time and any change performed here may be rolled back if transaction is not committed
Parameters:
  pModelName - - the name of the model where action is taking place
Parameters:
  pModelElementBeingUpdated - the element being updated
Parameters:
  pAttributeName - the name of the attribute being updated
Parameters:
  pOldAttributeValue - - the old value of the attribute. May be null if attribute had no value before
Parameters:
  pNewAttributeValue - - the new value of the attribute. May be null if attribute is being cleared



onModelElementBeingDeleted
public void onModelElementBeingDeleted(String pModelName, RefObject pModelElementToBeDeleted) throws ModelRepositoryException(Code)
This method is called when ModelElement is being deleted. Model is in transaction at the time and any change performed here may be rolled back if transaction is not committed
Parameters:
  pModelName - - the name of the model where action is taking place
Parameters:
  pModelElementToBeDeleted - the element being deleted



onModelElementJustCreated
public void onModelElementJustCreated(String pModelName, RefObject pModelElementJustCreated) throws ModelRepositoryException(Code)
This method is called when ModelElement is being created. Model is in transaction at the time and any change performed here may be rolled back if transaction is not committed
Parameters:
  pModelName - - the name of the model where action is taking place
Parameters:
  pModelElementJustCreated - the element being created



onModelElementReferenceBeingUpdated
public void onModelElementReferenceBeingUpdated(String pModelName, RefObject pModelElementBeingUpdated, String pReferenceName, RefObject pReferencedModelElementToRemove, RefObject pReferencedModelElementToAdd) throws ModelRepositoryException(Code)
This method is called when reference of the ModelElement has been modified. Model is in transaction at the time and any change performed here may be rolled back if transaction is not committed
Parameters:
  pModelName - - the name of the model where action is taking place
Parameters:
  pModelElementBeingUpdated - the element being updated
Parameters:
  pReferenceName - the name of the reference being updated
Parameters:
  pReferencedModelElementToRemove - - the old referenced element to be removed. May be null if nothing is being removed
Parameters:
  pReferencedModelElementToAdd - - the new referenced element to be added. May be null if nothing is being added



rectifyModel
public void rectifyModel(String pModelName) throws ModelRepositoryException(Code)
This method attempts to rectify the model. It is only supposed to rectify features "owned" by this assistant. In case if model is not good enough for this assistant to fix its own stuff - assistant should quietly exit. Subsequent model validation will pick up errors
Parameters:
  pModelName - - the name of the model to rectify



setActionsLogger
public void setActionsLogger(String pModelName, ModelActionsLogger pModelActionsLogger) throws ModelRepositoryException(Code)
Assign the actions loger to this assistantis Assistant to look after a particular model.
Parameters:
  pModelName - - the name of the model this logger is assigned to
Parameters:
  pModelActionsLogger - - the logger to use. null passed here will switch logging off



verifyConstraints
public Collection verifyConstraints(String pModelName) throws ModelRepositoryException(Code)
This method verifies model constraints and returns collection of exceptions. It is only supposed to verify constraints "owned" by this assistant
Parameters:
  pModelName - - the name of the model to verify constraints on



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