Java Doc for Unit.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) 


org.netbeans.modules.visualweb.insync.Unit

All known Subclasses:   org.netbeans.modules.visualweb.insync.SourceUnit,  org.netbeans.modules.visualweb.insync.live.LiveUnitWrapper,  org.netbeans.modules.visualweb.insync.beans.BeansUnit,  org.netbeans.modules.visualweb.insync.live.LiveUnit,
Unit
public interface Unit (Code)
An abstract representation of a logical compilation unit. The implementation may be directly associated with a source file/buffer, or may be an abstraction on top of one or more other units.
author:
   Carl Quinn

Inner Class :public static class State



Method Summary
abstract public  voiddestroy()
     Destroy this unit & cleanup any resources or registrations that this unit may have.
abstract public  voiddumpTo(PrintWriter w)
    
abstract public  ParserAnnotation[]getErrors()
     Return the list of errors if this unit does not compile.
abstract public  StategetState()
     Get the current state of this unit.
abstract public  booleanisWriteLocked()
    
abstract public  voidreadLock()
     Acquires a lock to begin reading some state from the unit.
abstract public  voidreadUnlock()
     Does a read unlock.
abstract public  booleansync()
     Sync this unit's contents to its document or underlying unit, reading changes as needed and updating flags.
abstract public  voidwriteLock(UndoEvent event)
     Acquires a lock to begin mutating the unit this lock protects.
abstract public  booleanwriteUnlock(UndoEvent event)
     Releases a write lock previously obtained via writeLock.



Method Detail
destroy
abstract public void destroy()(Code)
Destroy this unit & cleanup any resources or registrations that this unit may have.



dumpTo
abstract public void dumpTo(PrintWriter w)(Code)
Debug method to dump diagnostic info of this unit to a PrintWriter
Parameters:
  w - The PrintWriter to dump debug info to



getErrors
abstract public ParserAnnotation[] getErrors()(Code)
Return the list of errors if this unit does not compile. If there are no errors it returns an empty array - never null. An array of ParserAnnotations.



getState
abstract public State getState()(Code)
Get the current state of this unit. This unit's current state.



isWriteLocked
abstract public boolean isWriteLocked()(Code)
Return true if and only if the unit is currently locked by a write lock
See Also:   Unit.writeLock



readLock
abstract public void readLock()(Code)
Acquires a lock to begin reading some state from the unit. There can be multiple readers at the same time. Writing blocks the readers until notification of the change to the listeners has been completed. This method should be used very carefully to avoid unintended compromise of the unit. It should always be balanced with a readUnlock.
See Also:   Unit.readUnlock



readUnlock
abstract public void readUnlock()(Code)
Does a read unlock. This signals that one of the readers is done. If there are no more readers then writing can begin again. This should be balanced with a readLock, and should occur in a finally statement so that the balance is guaranteed. The following is an example.

 readLock();
 try {   // do something   }
 finally {  readUnlock();   }
 

See Also:   Unit.readLock



sync
abstract public boolean sync()(Code)
Sync this unit's contents to its document or underlying unit, reading changes as needed and updating flags.
See Also:   Unit.writeLock true iff the model was modified by the operation



writeLock
abstract public void writeLock(UndoEvent event)(Code)
Acquires a lock to begin mutating the unit this lock protects. There can be no writing, notification of changes, or reading going on in order to gain the lock. Additionally a thread is allowed to gain more than one writeLock, as long as it doesn't attempt to gain additional writeLock s from within unit notification. Attempting to gain a *writeLock from within a UnitListener notification will result in an IllegalStateException. The ability to obtain more than one writeLock per thread allows subclasses to gain a writeLock, perform a number of operations, then release the lock.

Calls to writeLock must be balanced with calls to writeUnlock, else the Unit will be left in a locked state so that no reading or writing can be done.
exception:
  IllegalStateException - thrown on illegal lock attempt. If the unit is implementedproperly, this can only happen if a unit listener attempts to mutate the unit.This situation violates the bean event model where order of delivery is notguaranteed and all listeners should be notified before further mutations areallowed.




writeUnlock
abstract public boolean writeUnlock(UndoEvent event)(Code)
Releases a write lock previously obtained via writeLock. After decrementing the lock count if there are no oustanding locks this will allow a new writer, or readers. true iff the last pending write lock was completely release.
See Also:   Unit.writeLock



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