Java Doc for NodeModel.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » compiler » 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 » Ajax » Laszlo 4.0.10 » org.openlaszlo.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.compiler.NodeModel

NodeModel
public class NodeModel implements Cloneable(Code)
Models a runtime LzNode.

Inner Class :static class CompiledAttribute

Field Summary
final public static  StringFONTSTYLE_ATTRIBUTE
    
final public static  StringWHEN_ALWAYS
    
final public static  StringWHEN_IMMEDIATELY
    
final public static  StringWHEN_ONCE
    
final public static  StringWHEN_PATH
    
final public static  StringWHEN_STYLE
    
protected  ComparisonMapattrs
    
protected  Listchildren
    
protected  StringclassName
    
 PatternconstraintPat
    
protected  NodeModeldatapath
    
protected  ListdelegateList
    
protected  ComparisonMapdelegates
     A set {eventName: String -> True) of names of event handlers declared with .
final protected  Elementelement
    
final protected  CompilationEnvironmentenv
    
protected  ComparisonMapevents
    
protected  Stringid
    
protected  Stringinitstage
    
protected  ClassModelparentClassModel
    
protected  ComparisonMappaths
    
protected  ComparisonMapreferences
    
final public static  PropertiessFlash6Builtins
    
final public static  PropertiessFlash7Builtins
    
final protected  ViewSchemaschema
    
protected  ComparisonMapsetters
    
protected  ComparisonMapstyles
    
protected  inttotalSubnodes
    

Constructor Summary
 NodeModel(Element element, ViewSchema schema, CompilationEnvironment env)
    

Method Summary
 voidaddAttribute(CompiledAttribute cattr, String name, ComparisonMap attrs, ComparisonMap events, ComparisonMap references, ComparisonMap paths, ComparisonMap styles)
    
 voidaddAttributeElement(Element element)
    
 voidaddAttributes(CompilationEnvironment env)
    
 voidaddChildren(CompilationEnvironment env)
    
 voidaddEventElement(Element element)
    
 voidaddHandlerElement(Element element)
     Defines an event handler.
 voidaddHandlerFromAttribute(Element element, String event, String body)
    
 voidaddLiteralDataElement(Element element)
    
 voidaddMethodElement(Element element)
    
 voidaddPropertyElement(Element element)
    
 voidaddText()
    
public  StringasJavascript()
     Returns a script that creates a runtime representation of a model.
 MapasMap()
    
 voidcheckChildNameConflict(String parentName, Element child, CompilationEnvironment env)
     Warn if named child tag conflicts with a declared attribute in the parent class.
 intclassSubnodes()
    
public  Objectclone()
    
 CompiledAttributecompileAttribute(Element source, String name, String value, Schema.Type type, String when)
    
public static  NodeModelelementAsModel(Element elt, ViewSchema schema, CompilationEnvironment env)
    
public static  NodeModelelementOnlyAsModel(Element elt, ViewSchema schema, CompilationEnvironment env)
    
 NodeModelexpandClassDefinitions()
     Expand eligible instances by replacing the instance by the merge of its class definition with the instance content (attributes and children).
 ViewSchema.TypegetAttributeTypeInfoFromParent(Element elt, String attrname)
    
 ViewSchema.TypegetAttributeTypeInfoFromSuperclass(Element classDefElement, String attrname)
    
 StringgetAttributeValueDefault(String attribute, String name, String defaultValue)
    
 ListgetChildren()
    
 ClassModelgetClassModel()
    
static  StringgetDatasetContent(Element element, CompilationEnvironment env)
    
static  StringgetDatasetContent(Element element, CompilationEnvironment env, boolean trimwhitespace)
    
 StringgetMessageName()
     Returns a name that is used to report this element in warning messages.
 ClassModelgetParentClassModel()
     Gets the ClassModel for this element's parent class.
 booleanhasAttribute(String name)
    
 booleanisDatapathElement(Element child)
    
public static  booleanisPropertyElement(Element elt)
    
 voidremoveAttribute(String name)
    
static  voidremoveNamespaces(Element elt)
    
 voidsetAttribute(String name, Object value)
    
 voidsetClassName(String name)
    
public  StringtoString()
    
 booleantopLevelDeclaration()
    
 inttotalSubnodes()
    
static  voidtrimWhitespace(Content elt)
    
 voidupdateAttrs()
    
 voidupdateMembers(NodeModel source)
     Replace members of this with like-named members of source.

Field Detail
FONTSTYLE_ATTRIBUTE
final public static String FONTSTYLE_ATTRIBUTE(Code)



WHEN_ALWAYS
final public static String WHEN_ALWAYS(Code)



WHEN_IMMEDIATELY
final public static String WHEN_IMMEDIATELY(Code)



WHEN_ONCE
final public static String WHEN_ONCE(Code)



WHEN_PATH
final public static String WHEN_PATH(Code)



WHEN_STYLE
final public static String WHEN_STYLE(Code)



attrs
protected ComparisonMap attrs(Code)



children
protected List children(Code)



className
protected String className(Code)



constraintPat
Pattern constraintPat(Code)



datapath
protected NodeModel datapath(Code)



delegateList
protected List delegateList(Code)
[eventName: String, methodName: String, Function]



delegates
protected ComparisonMap delegates(Code)
A set {eventName: String -> True) of names of event handlers declared with .



element
final protected Element element(Code)



env
final protected CompilationEnvironment env(Code)



events
protected ComparisonMap events(Code)



id
protected String id(Code)



initstage
protected String initstage(Code)



parentClassModel
protected ClassModel parentClassModel(Code)



paths
protected ComparisonMap paths(Code)



references
protected ComparisonMap references(Code)



sFlash6Builtins
final public static Properties sFlash6Builtins(Code)



sFlash7Builtins
final public static Properties sFlash7Builtins(Code)



schema
final protected ViewSchema schema(Code)



setters
protected ComparisonMap setters(Code)



styles
protected ComparisonMap styles(Code)



totalSubnodes
protected int totalSubnodes(Code)




Constructor Detail
NodeModel
NodeModel(Element element, ViewSchema schema, CompilationEnvironment env)(Code)




Method Detail
addAttribute
void addAttribute(CompiledAttribute cattr, String name, ComparisonMap attrs, ComparisonMap events, ComparisonMap references, ComparisonMap paths, ComparisonMap styles)(Code)



addAttributeElement
void addAttributeElement(Element element)(Code)



addAttributes
void addAttributes(CompilationEnvironment env)(Code)



addChildren
void addChildren(CompilationEnvironment env)(Code)



addEventElement
void addEventElement(Element element)(Code)



addHandlerElement
void addHandlerElement(Element element)(Code)
Defines an event handler. [function body] This can do a compile time check to see if eventname is declared or if there is an attribute FOO such that name="onFOO".



addHandlerFromAttribute
void addHandlerFromAttribute(Element element, String event, String body)(Code)



addLiteralDataElement
void addLiteralDataElement(Element element)(Code)



addMethodElement
void addMethodElement(Element element)(Code)



addPropertyElement
void addPropertyElement(Element element)(Code)



addText
void addText()(Code)



asJavascript
public String asJavascript()(Code)
Returns a script that creates a runtime representation of a model. The format of this representation is specified here.



asMap
Map asMap()(Code)



checkChildNameConflict
void checkChildNameConflict(String parentName, Element child, CompilationEnvironment env)(Code)
Warn if named child tag conflicts with a declared attribute in the parent class.



classSubnodes
int classSubnodes()(Code)



clone
public Object clone()(Code)



compileAttribute
CompiledAttribute compileAttribute(Element source, String name, String value, Schema.Type type, String when)(Code)



elementAsModel
public static NodeModel elementAsModel(Element elt, ViewSchema schema, CompilationEnvironment env)(Code)
Returns a NodeModel that represents an Element, including the element's children
Parameters:
  elt - an element
Parameters:
  schema - a schema, used to encode attribute values
Parameters:
  env - the CompilationEnvironment



elementOnlyAsModel
public static NodeModel elementOnlyAsModel(Element elt, ViewSchema schema, CompilationEnvironment env)(Code)
Returns a NodeModel that represents an Element, excluding the element's children
Parameters:
  elt - an element
Parameters:
  schema - a schema, used to encode attribute values
Parameters:
  env - the CompilationEnvironment



expandClassDefinitions
NodeModel expandClassDefinitions()(Code)
Expand eligible instances by replacing the instance by the merge of its class definition with the instance content (attributes and children). An eligible instance is an instance of a compile-time class, that doesn't contain any merge stoppers. If the class and the instance contain a member with the same name, this is a merge stopper. In the future, this restriction may be relaxed, but will probably always include the case where a class and instance have a member with the same name and the instance name calls a superclass method.



getAttributeTypeInfoFromParent
ViewSchema.Type getAttributeTypeInfoFromParent(Element elt, String attrname) throws UnknownAttributeException(Code)



getAttributeTypeInfoFromSuperclass
ViewSchema.Type getAttributeTypeInfoFromSuperclass(Element classDefElement, String attrname) throws UnknownAttributeException(Code)



getAttributeValueDefault
String getAttributeValueDefault(String attribute, String name, String defaultValue)(Code)



getChildren
List getChildren()(Code)



getClassModel
ClassModel getClassModel()(Code)



getDatasetContent
static String getDatasetContent(Element element, CompilationEnvironment env)(Code)



getDatasetContent
static String getDatasetContent(Element element, CompilationEnvironment env, boolean trimwhitespace)(Code)



getMessageName
String getMessageName()(Code)
Returns a name that is used to report this element in warning messages.



getParentClassModel
ClassModel getParentClassModel()(Code)
Gets the ClassModel for this element's parent class. If this element is a definition, the superclass; otherwise the class of the tag of this element.



hasAttribute
boolean hasAttribute(String name)(Code)



isDatapathElement
boolean isDatapathElement(Element child)(Code)



isPropertyElement
public static boolean isPropertyElement(Element elt)(Code)



removeAttribute
void removeAttribute(String name)(Code)



removeNamespaces
static void removeNamespaces(Element elt)(Code)



setAttribute
void setAttribute(String name, Object value)(Code)



setClassName
void setClassName(String name)(Code)



toString
public String toString()(Code)



topLevelDeclaration
boolean topLevelDeclaration()(Code)
Is this element a direct child of the canvas?



totalSubnodes
int totalSubnodes()(Code)



trimWhitespace
static void trimWhitespace(Content elt)(Code)



updateAttrs
void updateAttrs()(Code)



updateMembers
void updateMembers(NodeModel source)(Code)
Replace members of this with like-named members of source.



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.