Java Doc for ViewSchema.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.xml.internal.Schema
      org.openlaszlo.compiler.ViewSchema

ViewSchema
public class ViewSchema extends Schema (Code)
A schema that describes a Laszlo XML file.

Inner Class :static class ColorFormatException extends RuntimeException

Field Summary
final public static  TypeBOOLEAN_TYPE
    
final public static  TypeCOLOR_TYPE
    
final public static  TypeCSS_TYPE
    
final public static  TypeEVENT_HANDLER_TYPE
     Type of event handler bodies.
final public static  TypeEXPRESSION_TYPE
     Type of script expressions.
final public static  TypeINHERITABLE_BOOLEAN_TYPE
    
final public static  TypeMETHOD_TYPE
    
final public static  TypeNUMBER_EXPRESSION_TYPE
    
final public static  TypeREFERENCE_TYPE
    
final public static  TypeSETTER_TYPE
    
final public static  TypeSIZE_EXPRESSION_TYPE
    
final public static  TypeTOKEN_TYPE
     Type of tokens.
final public static  TypeXML_LITERAL
    
public  booleanenforceValidIdentifier
     If true, requires class names to be valid javascript identifiers.
final public static  PropertiessAutoincludes
    
final static  HashMapsColorValues
    
final static  PatternsHex3Pattern
    
final static  PatternsHex6Pattern
    
final static  PatternMatchersMatcher
    
final static  PatternsRGBPattern
    


Method Summary
 voidaddAttributeDefs(Element sourceElement, String classname, List attributeDefs, CompilationEnvironment env)
     Add this list of attribute name/type info to the in-core model of the class definitions.
public  voidaddElement(Element elt, String className, String superclassName, List attributeDefs, CompilationEnvironment env)
     Add a new element to the attribute type map.
Parameters:
  elt - the element to add to the map
Parameters:
  superclassName - an element to inherit attribute to type info from.
public  booleancanContainElement(String parentTag, String childTag)
     Check if a child element can legally be contained in a parent element.
public  voidcheckInstanceMethodDeclaration(Element elt, String classname, String methodName, CompilationEnvironment env)
    
public  voidcheckMethodDeclaration(Element elt, String classname, String methodName, CompilationEnvironment env)
    
public  AttributeSpecfindSimilarAttribute(String className, String attributeName)
    
public  AttributeSpecgetAttributeSpec(String elt, String attrName)
     Finds the AttributeSpec definition of an attribute, on a class or by searching up it's parent class chain.
static  TypegetAttributeType(String attrName)
    
public  TypegetAttributeType(Element e, String attrName)
     Returns a value representing the type of an attribute within an XML element.
public  TypegetAttributeType(String elt, String attrName)
     Returns a value representing the type of an attribute within an XML element.
public  StringgetBaseClassname(String className)
    
 AttributeSpecgetClassAttribute(String classname, String attrName)
    
 ClassModelgetClassModel(String elementName)
    
public  StringgetSuperclassName(String className)
    
public  TypegetTypeForName(String name)
    
 booleanhasHTMLContent(Element e)
     true if this element's content is HTML.
 booleanhasTextContent(Element e)
    
static  booleanisDocElement(Element e)
    
static  booleanisHTMLElement(Element e)
     true if this element is an HTML element, that shouldbe included in the text content of an element that tests truewith hasHTMLContent.
 booleanisInputTextElement(Element e)
    
 booleanisMouseEventAttribute(String name)
    
public  voidloadSchema(CompilationEnvironment env)
    
public  booleanmethodOverrideAllowed(String classname, String methodName)
    
public static  intparseColor(String str)
    
public  voidsetAttributeType(Element elt, String classname, String attrName, AttributeSpec attrspec)
    
 booleansupportsTextAttribute(Element e)
    
public  StringtoLZX()
    
public  StringtoLZX(String indent)
    

Field Detail
BOOLEAN_TYPE
final public static Type BOOLEAN_TYPE(Code)
'boolean' is compiled the same as an expression type



COLOR_TYPE
final public static Type COLOR_TYPE(Code)



CSS_TYPE
final public static Type CSS_TYPE(Code)



EVENT_HANDLER_TYPE
final public static Type EVENT_HANDLER_TYPE(Code)
Type of event handler bodies.



EXPRESSION_TYPE
final public static Type EXPRESSION_TYPE(Code)
Type of script expressions.



INHERITABLE_BOOLEAN_TYPE
final public static Type INHERITABLE_BOOLEAN_TYPE(Code)



METHOD_TYPE
final public static Type METHOD_TYPE(Code)



NUMBER_EXPRESSION_TYPE
final public static Type NUMBER_EXPRESSION_TYPE(Code)



REFERENCE_TYPE
final public static Type REFERENCE_TYPE(Code)



SETTER_TYPE
final public static Type SETTER_TYPE(Code)
Type of attribute setter function



SIZE_EXPRESSION_TYPE
final public static Type SIZE_EXPRESSION_TYPE(Code)



TOKEN_TYPE
final public static Type TOKEN_TYPE(Code)
Type of tokens.



XML_LITERAL
final public static Type XML_LITERAL(Code)



enforceValidIdentifier
public boolean enforceValidIdentifier(Code)
If true, requires class names to be valid javascript identifiers. We disable this when defining LZX builtin tags such as "import" which are reserved javascript tokens.



sAutoincludes
final public static Properties sAutoincludes(Code)



sColorValues
final static HashMap sColorValues(Code)



sHex3Pattern
final static Pattern sHex3Pattern(Code)



sHex6Pattern
final static Pattern sHex6Pattern(Code)



sMatcher
final static PatternMatcher sMatcher(Code)



sRGBPattern
final static Pattern sRGBPattern(Code)





Method Detail
addAttributeDefs
void addAttributeDefs(Element sourceElement, String classname, List attributeDefs, CompilationEnvironment env)(Code)
Add this list of attribute name/type info to the in-core model of the class definitions.
Parameters:
  sourceElement - the user's LZX source file element that holds class LZX definition
Parameters:
  classname - the class we are defining
Parameters:
  attributeDefs - list of AttributeSpec attribute info to add to the Schema



addElement
public void addElement(Element elt, String className, String superclassName, List attributeDefs, CompilationEnvironment env)(Code)
Add a new element to the attribute type map.
Parameters:
  elt - the element to add to the map
Parameters:
  superclassName - an element to inherit attribute to type info from. May be null.
Parameters:
  attributeDefs - list of attribute name/type defs



canContainElement
public boolean canContainElement(String parentTag, String childTag)(Code)
Check if a child element can legally be contained in a parent element. This works with the class hierarchy as follows: + Look up the ClassModel corresponding to the parentTag + Check the containsElements table to see if child tag is in there + If not, look up the ClassModel of the child tag, and follow up the chain checking if that name is present in the table + If not, ascend up the parent classmodel, and call canContainElement recursively



checkInstanceMethodDeclaration
public void checkInstanceMethodDeclaration(Element elt, String classname, String methodName, CompilationEnvironment env)(Code)
Checks to do when declaring a method on an instance; Does the class exist? Does the superclass allow overriding of this method?



checkMethodDeclaration
public void checkMethodDeclaration(Element elt, String classname, String methodName, CompilationEnvironment env)(Code)
Checks to do when declaring a method on a class; Does the class exist? Is this a duplicate of another method declaration on this class? Does the superclass allow overriding of this method?



findSimilarAttribute
public AttributeSpec findSimilarAttribute(String className, String attributeName)(Code)



getAttributeSpec
public AttributeSpec getAttributeSpec(String elt, String attrName)(Code)
Finds the AttributeSpec definition of an attribute, on a class or by searching up it's parent class chain.
Parameters:
  elt - an Element name
Parameters:
  attrName - an attribute name the AttributeSpec or null



getAttributeType
static Type getAttributeType(String attrName)(Code)



getAttributeType
public Type getAttributeType(Element e, String attrName)(Code)
Returns a value representing the type of an attribute within an XML element. Unknown attributes have Expression type.
Parameters:
  e - an Element
Parameters:
  attrName - an attribute name a value represting the type of the attribute's



getAttributeType
public Type getAttributeType(String elt, String attrName) throws UnknownAttributeException(Code)
Returns a value representing the type of an attribute within an XML element. Unknown attributes have Expression type.
Parameters:
  elt - an Element name
Parameters:
  attrName - an attribute name a value represting the type of the attribute's



getBaseClassname
public String getBaseClassname(String className)(Code)
the base class of a user defined class



getClassAttribute
AttributeSpec getClassAttribute(String classname, String attrName)(Code)
Does this class or its ancestors have this attribute declared for it?



getClassModel
ClassModel getClassModel(String elementName)(Code)



getSuperclassName
public String getSuperclassName(String className)(Code)



getTypeForName
public Type getTypeForName(String name)(Code)



hasHTMLContent
boolean hasHTMLContent(Element e)(Code)
true if this element's content is HTML.



hasTextContent
boolean hasTextContent(Element e)(Code)
true if this element content is interpreted as text



isDocElement
static boolean isDocElement(Element e)(Code)



isHTMLElement
static boolean isHTMLElement(Element e)(Code)
true if this element is an HTML element, that shouldbe included in the text content of an element that tests truewith hasHTMLContent.



isInputTextElement
boolean isInputTextElement(Element e)(Code)
true if this element is an input text field



isMouseEventAttribute
boolean isMouseEventAttribute(String name)(Code)



loadSchema
public void loadSchema(CompilationEnvironment env) throws JDOMException, IOException(Code)



methodOverrideAllowed
public boolean methodOverrideAllowed(String classname, String methodName)(Code)
checks whether a method with a given method is allowed to be overridden
Parameters:
  elt - an Element name
Parameters:
  methodName - a method name boolean if the method exists on the class or superclass



parseColor
public static int parseColor(String str)(Code)
Parse according to http://www.w3.org/TR/2001/WD-css3-color-20010305, but also allow 0xXXXXXX



setAttributeType
public void setAttributeType(Element elt, String classname, String attrName, AttributeSpec attrspec)(Code)
Set the attribute to the given type, for a specific element



supportsTextAttribute
boolean supportsTextAttribute(Element e)(Code)



toLZX
public String toLZX()(Code)



toLZX
public String toLZX(String indent)(Code)



Fields inherited from org.openlaszlo.xml.internal.Schema
final public static Schema DEFAULT_SCHEMA(Code)(Java Doc)
final public static Type ID_TYPE(Code)(Java Doc)
final public static Type NUMBER_TYPE(Code)(Java Doc)
final public static Type STRING_TYPE(Code)(Java Doc)
final public static Type UNKNOWN_TYPE(Code)(Java Doc)

Methods inherited from org.openlaszlo.xml.internal.Schema
public static void addTypeAlias(String typeName, Type type)(Code)(Java Doc)
abstract public Type getAttributeType(Element element, String attributeName)(Code)(Java Doc)
public Type getTypeForName(String typeName)(Code)(Java Doc)
public static Type newType(String typeName)(Code)(Java Doc)

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.