Java Doc for Prototype.java in  » Web-Framework » helma » helma » framework » core » 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 » Web Framework » helma » helma.framework.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   helma.framework.core.Prototype

Prototype
final public class Prototype (Code)
The Prototype class represents Script prototypes/type defined in a Helma application. This class manages a prototypes templates, functions and actions as well as optional information about the mapping of this type to a relational database table.

Inner Class :class ScriptableSkinMap extends WrappedMap
Inner Class :class SkinMap extends HashMap

Field Summary
 Applicationapp
    
 TreeSetcode
    
 DbMappingdbmap
    
 longlastChecksum
    
volatile  longlastCodeUpdate
    
 StringlowerCaseName
    
 Stringname
    
 ResourcePropertiesprops
    
 TreeSetrepositories
    
 Resource[]resources
    
 SkinMapskinMap
    
 TreeSetskins
    
 HashMaptrackers
    

Constructor Summary
public  Prototype(String name, Repository repository, Application app)
     Creates a new Prototype object.

Method Summary
public  voidaddRepository(Repository repository, boolean update)
    
public synchronized  voidcheckForUpdates()
     Check a prototype for new or updated resources.
public  ApplicationgetApplication()
    
public synchronized  IteratorgetCodeResources()
     Return an iterator over this prototype's code resoruces.
public  DbMappinggetDbMapping()
    
public  StringgetLowerCaseName()
    
public  StringgetName()
    
public  PrototypegetParentPrototype()
     Get the parent prototype from which we inherit, or null if we are top of the line.
public  Repository[]getRepositories()
     Returns an array of repositories containing code for this prototype.
 longgetRepositoryChecksum()
     Get a checksum over this prototype's repositories.
public  Resource[]getResources()
     Returns the list of resources in this prototype's repositories.
public  MapgetScriptableSkinMap()
    
public  MapgetScriptableSkinMap(Object[] skinpath)
     Get a map containing this prototype's skins as strings, overloaded by the skins found in the given skinpath.
public  SkingetSkin(String skinName, String parentName, String subName)
     Get a skin for this prototype.
public  IteratorgetSkinResources()
     Return an iterator over this prototype's skin resoruces.
public  ResourcePropertiesgetTypeProperties()
    
final public  booleanisInstanceOf(String pname)
     Check if the given prototype is within this prototype's parent chain.
public  longlastCodeUpdate()
     Get the last time any script has been re-read for this prototype.
public  voidmarkUpdated()
     Signal that some script in this prototype has been re-read from disk and needs to be re-compiled by the evaluators.
final public  voidregisterParents(Map handlers, Object obj)
     Register an object as handler for all our parent prototypes, but only if a handler by that prototype name isn't registered yet.
public  voidsetParentPrototype(Prototype parent)
     Set the parent prototype of this prototype, i.e.
public  StringtoString()
     Return a string representing this prototype.

Field Detail
app
Application app(Code)



code
TreeSet code(Code)



dbmap
DbMapping dbmap(Code)



lastChecksum
long lastChecksum(Code)



lastCodeUpdate
volatile long lastCodeUpdate(Code)



lowerCaseName
String lowerCaseName(Code)



name
String name(Code)



props
ResourceProperties props(Code)



repositories
TreeSet repositories(Code)



resources
Resource[] resources(Code)



skinMap
SkinMap skinMap(Code)



skins
TreeSet skins(Code)



trackers
HashMap trackers(Code)




Constructor Detail
Prototype
public Prototype(String name, Repository repository, Application app)(Code)
Creates a new Prototype object.
Parameters:
  name - the prototype's name
Parameters:
  repository - the first prototype's repository
Parameters:
  app - the application this prototype is a part of




Method Detail
addRepository
public void addRepository(Repository repository, boolean update) throws IOException(Code)
Adds an repository to the list of repositories
Parameters:
  repository - repository to add
Parameters:
  update - indicates whether to immediately update the prototype with the new code
throws:
  IOException - if reading/updating from the repository fails



checkForUpdates
public synchronized void checkForUpdates()(Code)
Check a prototype for new or updated resources. After this has been called the code and skins collections of this prototype should be up-to-date and the lastCodeUpdate be set if there has been any changes.



getApplication
public Application getApplication()(Code)
Return the application this prototype is a part of



getCodeResources
public synchronized Iterator getCodeResources()(Code)
Return an iterator over this prototype's code resoruces. Synchronized to not return a collection in a transient state where it is just being updated by the type manager. an iterator of this prototype's code resources



getDbMapping
public DbMapping getDbMapping()(Code)
Get the DbMapping associated with this prototype



getLowerCaseName
public String getLowerCaseName()(Code)
Return this prototype's name in lower case letters ...



getName
public String getName()(Code)
Return this prototype's name ...



getParentPrototype
public Prototype getParentPrototype()(Code)
Get the parent prototype from which we inherit, or null if we are top of the line.



getRepositories
public Repository[] getRepositories()(Code)
Returns an array of repositories containing code for this prototype.



getRepositoryChecksum
long getRepositoryChecksum()(Code)
Get a checksum over this prototype's repositories. This tells us if any resources were added or removed.



getResources
public Resource[] getResources()(Code)
Returns the list of resources in this prototype's repositories. Used by checkForUpdates() to see whether there is anything new.



getScriptableSkinMap
public Map getScriptableSkinMap()(Code)
Get a map containing this prototype's skins as strings a scriptable skin map



getScriptableSkinMap
public Map getScriptableSkinMap(Object[] skinpath)(Code)
Get a map containing this prototype's skins as strings, overloaded by the skins found in the given skinpath. a scriptable skin map



getSkin
public Skin getSkin(String skinName, String parentName, String subName) throws IOException(Code)
Get a skin for this prototype. This only works for skins residing in the prototype directory, not for skins files in other locations or database stored skins. If parentName and subName are defined, the skin may be a subskin of another skin.



getSkinResources
public Iterator getSkinResources()(Code)
Return an iterator over this prototype's skin resoruces. Synchronized to not return a collection in a transient state where it is just being updated by the type manager. an iterator over this prototype's skin resources



getTypeProperties
public ResourceProperties getTypeProperties()(Code)
Get the prototype's aggregated type.properties type.properties



isInstanceOf
final public boolean isInstanceOf(String pname)(Code)
Check if the given prototype is within this prototype's parent chain.



lastCodeUpdate
public long lastCodeUpdate()(Code)
Get the last time any script has been re-read for this prototype.



markUpdated
public void markUpdated()(Code)
Signal that some script in this prototype has been re-read from disk and needs to be re-compiled by the evaluators.



registerParents
final public void registerParents(Map handlers, Object obj)(Code)
Register an object as handler for all our parent prototypes, but only if a handler by that prototype name isn't registered yet. This is used to implement direct over indirect prototype precedence and child over parent precedence.



setParentPrototype
public void setParentPrototype(Prototype parent)(Code)
Set the parent prototype of this prototype, i.e. the prototype this prototype inherits from.



toString
public String toString()(Code)
Return a string representing this prototype.



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.