Java Doc for ParserState.java in  » Portal » Open-Portal » com » sun » portal » wireless » htmlconversion » 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 » Portal » Open Portal » com.sun.portal.wireless.htmlconversion 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.wireless.htmlconversion.ParserState

ParserState
public class ParserState (Code)
Maintains state of input parsing, and output document.
author:
   ashwin.mathew@sun.com



Constructor Summary
public  ParserState(Document output, URLTranscoder encoder)
    

Method Summary
public  voidappendText(char[] data, int start, int length)
     Appends the supplied char[] to the text buffer.
public  voidclearText()
     Clears the text buffer.
public  voidendedAmlForm()
    
public  ElementgetCurrentOutputTag()
     Returns the current output element.
public  URLTranscodergetEncoder()
    
public  LayoutManagergetLayoutManager()
     Returns the LayoutManager.
public  ElementgetOutputContainerTag()
     Returns the current output container tag context.
public  DocumentgetOutputDocument()
     Returns the output Document object.
public  ObjectgetProcessorAttribute(String name)
     Returns the value of the named processor attribute.
public  StringgetTagProcessingResumeTag()
     Returns the HTML end tag on which normal tag processing should be resumed.
public  StringgetText()
     Returns the contents of the text buffer.
public  TextTaggetTextTagContext()
     Returns the current TextTag context.
public  booleanisBypassTagProcessing()
     Indicates whether or not tag processing is being bypassed.
public  booleanisInAmlForm()
     Indicates whether or not the current output contained within a form.
public  booleanisTextAvailable()
     Indicates whether or not there is text in the text buffer.
public  ElementnewElement(String name)
     Returns a new Element build using the contained output Document.
public  voidresumeTagProcessing()
     Resumes normal tag processing.
public  voidrollbackCurrentOutputTag()
     Rolls back the current output tag to the current output container tag context.
public  voidrollbackOutputContainerTag()
     Rolls back the output container tag context to the last tag context.
public  voidrollbackTextTagContext()
     Rolls back to the last TextTag context.
public  voidsetBypassTagProcessing(String resumeOnTag)
     Indicates that all subsequent tag processing should be bypassed until the HTML end tag specified by resumeOnTag is encountered.
public  voidsetCurrentOutputTag(Element nextOutputTag)
     Sets the current output element.
public  voidsetOutputContainerTag(Element tag)
     Switches the output container tag context to the specified element.
public  voidsetProcessorAttribute(String name, Object value)
     Sets the specified name/value pair as a processor attribute.
public  voidsetTextTagContext(TextTag context)
     Sets the new TextTag context.
public  voidstartedAmlForm()
     Called on start of an AmlForm.


Constructor Detail
ParserState
public ParserState(Document output, URLTranscoder encoder)(Code)




Method Detail
appendText
public void appendText(char[] data, int start, int length)(Code)
Appends the supplied char[] to the text buffer.
Parameters:
  data -



clearText
public void clearText()(Code)
Clears the text buffer.



endedAmlForm
public void endedAmlForm()(Code)
Called on end of an AmlForm



getCurrentOutputTag
public Element getCurrentOutputTag()(Code)
Returns the current output element.



getEncoder
public URLTranscoder getEncoder()(Code)



getLayoutManager
public LayoutManager getLayoutManager()(Code)
Returns the LayoutManager.



getOutputContainerTag
public Element getOutputContainerTag()(Code)
Returns the current output container tag context.



getOutputDocument
public Document getOutputDocument()(Code)
Returns the output Document object.



getProcessorAttribute
public Object getProcessorAttribute(String name)(Code)
Returns the value of the named processor attribute.
Parameters:
  name -



getTagProcessingResumeTag
public String getTagProcessingResumeTag()(Code)
Returns the HTML end tag on which normal tag processing should be resumed.



getText
public String getText()(Code)
Returns the contents of the text buffer.



getTextTagContext
public TextTag getTextTagContext()(Code)
Returns the current TextTag context.



isBypassTagProcessing
public boolean isBypassTagProcessing()(Code)
Indicates whether or not tag processing is being bypassed.



isInAmlForm
public boolean isInAmlForm()(Code)
Indicates whether or not the current output contained within a form.



isTextAvailable
public boolean isTextAvailable()(Code)
Indicates whether or not there is text in the text buffer.



newElement
public Element newElement(String name)(Code)
Returns a new Element build using the contained output Document. Required by tag processors.
Parameters:
  name - The tag name for the element. The required Element.



resumeTagProcessing
public void resumeTagProcessing()(Code)
Resumes normal tag processing.



rollbackCurrentOutputTag
public void rollbackCurrentOutputTag()(Code)
Rolls back the current output tag to the current output container tag context.



rollbackOutputContainerTag
public void rollbackOutputContainerTag()(Code)
Rolls back the output container tag context to the last tag context.



rollbackTextTagContext
public void rollbackTextTagContext()(Code)
Rolls back to the last TextTag context.



setBypassTagProcessing
public void setBypassTagProcessing(String resumeOnTag)(Code)
Indicates that all subsequent tag processing should be bypassed until the HTML end tag specified by resumeOnTag is encountered. This is typically the endTag for the tag processor that invokes this method.



setCurrentOutputTag
public void setCurrentOutputTag(Element nextOutputTag)(Code)
Sets the current output element. Note that this must be called *only* if a corresponding HTML end tag will cause a rollback to occur i.e., if an output tag is being created independent of the HTML tag stream, it must not be set using this method.



setOutputContainerTag
public void setOutputContainerTag(Element tag)(Code)
Switches the output container tag context to the specified element.
Parameters:
  tag -



setProcessorAttribute
public void setProcessorAttribute(String name, Object value)(Code)
Sets the specified name/value pair as a processor attribute.
Parameters:
  name -
Parameters:
  value -



setTextTagContext
public void setTextTagContext(TextTag context)(Code)
Sets the new TextTag context.
Parameters:
  context -



startedAmlForm
public void startedAmlForm()(Code)
Called on start of an AmlForm.



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.