Java Doc for ModelSet.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.insync 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.insync.ModelSet

All known Subclasses:   org.netbeans.modules.visualweb.insync.models.FacesModelSet,
ModelSet
abstract public class ModelSet implements FileChangeListener(Code)
A ModelSet is a collection of Models that are organized together in a single project. The ModelSet serves to coordinate the Models with each other and with the containing project.

The Models are divided into two groups: regular or source Models with many instances, and specific configuration Models with one instance per type.

There is always exactly one ModelSet per project.


author:
   cquinn


Inner Class :protected static class OpenProjectsListener implements PropertyChangeListener
Inner Class :class ClassPathListener implements PropertyChangeListener
Inner Class :class ModelCreateVisitor extends FileObjectVisitor

Field Summary
final static  StringWriteLock_PREFIX
    
final static  StringWriteLock_SUFFIX
    
protected  URLClassLoaderclassLoader
    
protected  ClassPathclassPath
    
protected  ClassPathListenerclassPathListener
    
protected  ModelconfigModel
    
protected  FileSystemfileSystem
    
final protected  IdentityHashMapmodelSetListeners
    
protected static  ArrayListmodelSetsListeners
    
final protected  IdentityHashMapmodels
    
final protected  ClassLoaderparentClassLoader
    
final protected  Projectproject
    
protected static  IdentityHashMapsets
    

Constructor Summary
protected  ModelSet(Project project)
     Construct a ModelSet for a given project.

Method Summary
protected  voidaddModel(FileObject file, Model m)
     Add a new file/model pair to the correct map.
public  voidaddModelSetListener(ModelSetListener listener)
    
public static  voidaddModelSetsListener(ModelSetsListener listener)
    
 voidaddToModelsToSync(Model model)
    
public  voidclassPathChanged()
     Respond to changes in the project class path by updating the models.
public  voiddestroy()
     Destroy this ModelSet and all its contained Models and release their resources.
protected  CollectionevalOrderModels(Collection modelsToOrder)
     Provide models in such a way as to cause higher scoped models to be ordered first.
public  voidfileAttributeChanged(FileAttributeEvent fe)
    
public  voidfileChanged(FileEvent fe)
    
public  voidfileDataCreated(FileEvent fe)
    
public  voidfileDeleted(FileEvent event)
    
public  voidfileFolderCreated(FileEvent fe)
    
public  voidfileRenamed(FileRenameEvent event)
    
protected  voidfireModelAdded(Model model)
    
protected  voidfireModelChanged(Model model)
    
protected  voidfireModelProjectChanged()
    
protected  voidfireModelRemoved(Model model)
    
protected static  voidfireModelSetAdded(ModelSet modelSet)
    
protected static  voidfireModelSetRemoved(ModelSet modelSet)
    
protected  voidflushAll()
     Flush all source and config models to their underlying buffers.
public  ModelgetConfigModel()
    
protected static  java.util.CollectiongetFactories()
    
protected static  ModelSetgetInstance(FileObject file, Class ofType)
    
protected static synchronized  ModelSetgetInstance(Project project, Class ofType)
     Helper method for sub-classes to be able to get access to a ModelSet of their own specific type.
protected  FileObjectgetLocalFileObject(FileObject fileObject)
    
public  ModelgetModel(FileObject file)
     Get the corresponding source model for a NB file object.
protected static  ModelSetgetModelSet(FileObject file)
    
protected static  ModelSetgetModelSet(Project project)
    
public  Model[]getModels()
     Get an array of all of the source Models in this set.
protected  MapgetModelsMap()
    
public  ProjectgetProject()
     Get the project that this ModelSet is associated with.
public  URLClassLoadergetProjectClassLoader()
     Get the per-project class loader for this ModelSet.
protected  ListgetSourceRoots()
    
public static  booleanhasActiveLockFileSigns(FileObject fileObject)
    
public  booleanisInitialized()
    
public  voidprocessFileDataCreated(FileObject fileObject)
    
protected  voidreleaseProjectClassLoader()
    
public  voidremoveFromModelsToSync(Model model)
    
public  voidremoveModel(Model model)
    
public  voidremoveModelSetListener(ModelSetListener listener)
    
public static  voidremoveModelSetsListener(ModelSetsListener listener)
    
protected  voidsaveAll()
     Save all source and config models to their underlying buffers.
public  voidsetConfigModel(Model configModel)
    
public  voidsetInitialized()
    
protected  voidshowSyncErrors(ArrayList errors, boolean printPreface)
    
protected static  ModelSetstartModeling(Project project, Class ofType)
    
protected  voidsyncAll()
     Synchronize all source and config models with their underlying buffers.

Field Detail
WriteLock_PREFIX
final static String WriteLock_PREFIX(Code)



WriteLock_SUFFIX
final static String WriteLock_SUFFIX(Code)



classLoader
protected URLClassLoader classLoader(Code)



classPath
protected ClassPath classPath(Code)



classPathListener
protected ClassPathListener classPathListener(Code)



configModel
protected Model configModel(Code)



fileSystem
protected FileSystem fileSystem(Code)



modelSetListeners
final protected IdentityHashMap modelSetListeners(Code)



modelSetsListeners
protected static ArrayList modelSetsListeners(Code)



models
final protected IdentityHashMap models(Code)



parentClassLoader
final protected ClassLoader parentClassLoader(Code)



project
final protected Project project(Code)



sets
protected static IdentityHashMap sets(Code)




Constructor Detail
ModelSet
protected ModelSet(Project project)(Code)
Construct a ModelSet for a given project.

This will throw a RuntimeException if a suitable Common ClassLoader Provider is not found.
Parameters:
  project - The project that this ModelSet is to be associated with,





Method Detail
addModel
protected void addModel(FileObject file, Model m)(Code)
Add a new file/model pair to the correct map.
Parameters:
  file - The source or config file object
Parameters:
  m - The source or config model



addModelSetListener
public void addModelSetListener(ModelSetListener listener)(Code)



addModelSetsListener
public static void addModelSetsListener(ModelSetsListener listener)(Code)



addToModelsToSync
void addToModelsToSync(Model model)(Code)



classPathChanged
public void classPathChanged()(Code)
Respond to changes in the project class path by updating the models.
See Also:   com.sun.rave.project.model.ProjectContentChangeListener.classPathChanged(com.sun.rave.project.model.ProjectContentChangeEvent)



destroy
public void destroy()(Code)
Destroy this ModelSet and all its contained Models and release their resources. This ModelSet and the contained Models must never be used after destroy is called.



evalOrderModels
protected Collection evalOrderModels(Collection modelsToOrder)(Code)
Provide models in such a way as to cause higher scoped models to be ordered first. This only works if we assume that lower scoped models references values from higher scoped models. If higher scoped models references lower ones, then this will not help much.
Parameters:
  modelsToOrder -



fileAttributeChanged
public void fileAttributeChanged(FileAttributeEvent fe)(Code)



fileChanged
public void fileChanged(FileEvent fe)(Code)



fileDataCreated
public void fileDataCreated(FileEvent fe)(Code)



fileDeleted
public void fileDeleted(FileEvent event)(Code)



fileFolderCreated
public void fileFolderCreated(FileEvent fe)(Code)



fileRenamed
public void fileRenamed(FileRenameEvent event)(Code)



fireModelAdded
protected void fireModelAdded(Model model)(Code)



fireModelChanged
protected void fireModelChanged(Model model)(Code)



fireModelProjectChanged
protected void fireModelProjectChanged()(Code)



fireModelRemoved
protected void fireModelRemoved(Model model)(Code)



fireModelSetAdded
protected static void fireModelSetAdded(ModelSet modelSet)(Code)



fireModelSetRemoved
protected static void fireModelSetRemoved(ModelSet modelSet)(Code)



flushAll
protected void flushAll()(Code)
Flush all source and config models to their underlying buffers.



getConfigModel
public Model getConfigModel()(Code)
Get the configuration model th configuration model.



getFactories
protected static java.util.Collection getFactories()(Code)



getInstance
protected static ModelSet getInstance(FileObject file, Class ofType)(Code)



getInstance
protected static synchronized ModelSet getInstance(Project project, Class ofType)(Code)
Helper method for sub-classes to be able to get access to a ModelSet of their own specific type.
Parameters:
  project -



getLocalFileObject
protected FileObject getLocalFileObject(FileObject fileObject)(Code)



getModel
public Model getModel(FileObject file)(Code)
Get the corresponding source model for a NB file object.
Parameters:
  file - The NB file object The corresponding model.



getModelSet
protected static ModelSet getModelSet(FileObject file)(Code)



getModelSet
protected static ModelSet getModelSet(Project project)(Code)



getModels
public Model[] getModels()(Code)
Get an array of all of the source Models in this set. An array of all of the source Models in this set.



getModelsMap
protected Map getModelsMap()(Code)



getProject
public Project getProject()(Code)
Get the project that this ModelSet is associated with. The project that this ModelSet is associated with.



getProjectClassLoader
public URLClassLoader getProjectClassLoader()(Code)
Get the per-project class loader for this ModelSet. The class loader may change as project settings and libraries are changed by the user. The class loader.



getSourceRoots
protected List getSourceRoots()(Code)



hasActiveLockFileSigns
public static boolean hasActiveLockFileSigns(FileObject fileObject)(Code)



isInitialized
public boolean isInitialized()(Code)



processFileDataCreated
public void processFileDataCreated(FileObject fileObject)(Code)



releaseProjectClassLoader
protected void releaseProjectClassLoader()(Code)



removeFromModelsToSync
public void removeFromModelsToSync(Model model)(Code)



removeModel
public void removeModel(Model model)(Code)



removeModelSetListener
public void removeModelSetListener(ModelSetListener listener)(Code)



removeModelSetsListener
public static void removeModelSetsListener(ModelSetsListener listener)(Code)



saveAll
protected void saveAll()(Code)
Save all source and config models to their underlying buffers.



setConfigModel
public void setConfigModel(Model configModel)(Code)
Set the configuration model The configuration model.



setInitialized
public void setInitialized()(Code)



showSyncErrors
protected void showSyncErrors(ArrayList errors, boolean printPreface)(Code)



startModeling
protected static ModelSet startModeling(Project project, Class ofType)(Code)



syncAll
protected void syncAll()(Code)
Synchronize all source and config models with their underlying buffers.



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.