Java Doc for XfaForm.java in  » PDF » pdf-itext » com » lowagie » text » pdf » 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 » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.XfaForm

XfaForm
public class XfaForm (Code)
Processes XFA forms.
author:
   Paulo Soares (psoares@consiste.pt)

Inner Class :public static class InverseStore
Inner Class :public static class Stack2 extends ArrayList
Inner Class :public static class Xml2Som
Inner Class :public static class Xml2SomDatasets extends Xml2Som
Inner Class :public static class AcroFieldsSearch extends Xml2Som
Inner Class :public static class Xml2SomTemplate extends Xml2Som

Field Summary
final public static  StringXFA_DATA_SCHEMA
    

Constructor Summary
public  XfaForm()
     An empty constructor to build on.
public  XfaForm(PdfReader reader)
     A constructor from a PdfReader.

Method Summary
public  StringfindDatasetsName(String name)
     Finds the complete SOM name contained in the datasets section from a possibly partial name.
public  NodefindDatasetsNode(String name)
     Finds the Node contained in the datasets section from a possibly partial name.
public  StringfindFieldName(String name, AcroFields af)
     Finds the complete field name contained in the "classic" forms from a partial name.
public  AcroFieldsSearchgetAcroFieldsSom()
     Gets the class that contains the "classic" fields processing.
public  NodegetDatasetsNode()
     Gets the Node that corresponds to the datasets part.
public  Xml2SomDatasetsgetDatasetsSom()
     Gets the class that contains the datasets processing section of the XFA.
public  org.w3c.dom.DocumentgetDomDocument()
     Gets the top level DOM document.
public static  StringgetNodeText(Node n)
     Gets all the text contained in the child nodes of this node.
public  PdfReadergetReader()
     Gets the PdfReader used by this instance.
public  Xml2SomTemplategetTemplateSom()
     Gets the class that contains the template processing section of the XFA.
public  booleanisChanged()
     Checks if this XFA form was changed.
public  booleanisXfaPresent()
     Returns true if it is a XFA form.
public static  byte[]serializeDoc(Node n)
     Serializes a XML document to a byte array.
public  voidsetAcroFieldsSom(AcroFieldsSearch acroFieldsSom)
     Sets the class that contains the "classic" fields processing.
public  voidsetChanged(boolean changed)
     Sets the changed status of this XFA instance.
public  voidsetDatasetsSom(Xml2SomDatasets datasetsSom)
     Sets the class that contains the datasets processing section of the XFA.
public  voidsetDomDocument(org.w3c.dom.Document domDocument)
     Sets the top DOM document.
public  voidsetNodeText(Node n, String text)
     Sets the text of this node.
public  voidsetReader(PdfReader reader)
     Sets the PdfReader to be used by this instance.
public  voidsetTemplateSom(Xml2SomTemplate templateSom)
    
public static  voidsetXfa(byte[] xfaData, PdfReader reader, PdfWriter writer)
     Sets the XFA key from a byte array.
public  voidsetXfa(PdfWriter writer)
     Sets the XFA key from the instance data.
public  voidsetXfaPresent(boolean xfaPresent)
     Sets the XFA form flag signaling that this is a valid XFA form.

Field Detail
XFA_DATA_SCHEMA
final public static String XFA_DATA_SCHEMA(Code)




Constructor Detail
XfaForm
public XfaForm()(Code)
An empty constructor to build on.



XfaForm
public XfaForm(PdfReader reader) throws IOException, ParserConfigurationException, SAXException(Code)
A constructor from a PdfReader. It basically does everything from finding the XFA stream to the XML parsing.
Parameters:
  reader - the reader
throws:
  java.io.IOException - on error
throws:
  javax.xml.parsers.ParserConfigurationException - on error
throws:
  org.xml.sax.SAXException - on error




Method Detail
findDatasetsName
public String findDatasetsName(String name)(Code)
Finds the complete SOM name contained in the datasets section from a possibly partial name.
Parameters:
  name - the complete or partial name the complete name or null if not found



findDatasetsNode
public Node findDatasetsNode(String name)(Code)
Finds the Node contained in the datasets section from a possibly partial name.
Parameters:
  name - the complete or partial name the Node or null if not found



findFieldName
public String findFieldName(String name, AcroFields af)(Code)
Finds the complete field name contained in the "classic" forms from a partial name.
Parameters:
  name - the complete or partial name
Parameters:
  af - the fields the complete name or null if not found



getAcroFieldsSom
public AcroFieldsSearch getAcroFieldsSom()(Code)
Gets the class that contains the "classic" fields processing. the class that contains the "classic" fields processing



getDatasetsNode
public Node getDatasetsNode()(Code)
Gets the Node that corresponds to the datasets part. the Node that corresponds to the datasets part



getDatasetsSom
public Xml2SomDatasets getDatasetsSom()(Code)
Gets the class that contains the datasets processing section of the XFA. the class that contains the datasets processing section of the XFA



getDomDocument
public org.w3c.dom.Document getDomDocument()(Code)
Gets the top level DOM document. the top level DOM document



getNodeText
public static String getNodeText(Node n)(Code)
Gets all the text contained in the child nodes of this node.
Parameters:
  n - the Node the text found or "" if no text was found



getReader
public PdfReader getReader()(Code)
Gets the PdfReader used by this instance. the PdfReader used by this instance



getTemplateSom
public Xml2SomTemplate getTemplateSom()(Code)
Gets the class that contains the template processing section of the XFA. the class that contains the template processing section of the XFA



isChanged
public boolean isChanged()(Code)
Checks if this XFA form was changed. true if this XFA form was changed



isXfaPresent
public boolean isXfaPresent()(Code)
Returns true if it is a XFA form. true if it is a XFA form



serializeDoc
public static byte[] serializeDoc(Node n) throws IOException(Code)
Serializes a XML document to a byte array.
Parameters:
  n - the XML document
throws:
  java.io.IOException - on error the serialized XML document



setAcroFieldsSom
public void setAcroFieldsSom(AcroFieldsSearch acroFieldsSom)(Code)
Sets the class that contains the "classic" fields processing.
Parameters:
  acroFieldsSom - the class that contains the "classic" fields processing



setChanged
public void setChanged(boolean changed)(Code)
Sets the changed status of this XFA instance.
Parameters:
  changed - the changed status of this XFA instance



setDatasetsSom
public void setDatasetsSom(Xml2SomDatasets datasetsSom)(Code)
Sets the class that contains the datasets processing section of the XFA.
Parameters:
  datasetsSom - the class that contains the datasets processing section of the XFA



setDomDocument
public void setDomDocument(org.w3c.dom.Document domDocument)(Code)
Sets the top DOM document.
Parameters:
  domDocument - the top DOM document



setNodeText
public void setNodeText(Node n, String text)(Code)
Sets the text of this node. All the child's node are deleted and a new child text node is created.
Parameters:
  n - the Node to add the text to
Parameters:
  text - the text to add



setReader
public void setReader(PdfReader reader)(Code)
Sets the PdfReader to be used by this instance.
Parameters:
  reader - the PdfReader to be used by this instance



setTemplateSom
public void setTemplateSom(Xml2SomTemplate templateSom)(Code)
Sets the class that contains the template processing section of the XFA
Parameters:
  templateSom - the class that contains the template processing section of the XFA



setXfa
public static void setXfa(byte[] xfaData, PdfReader reader, PdfWriter writer) throws IOException(Code)
Sets the XFA key from a byte array. The old XFA is erased.
Parameters:
  xfaData - the data
Parameters:
  reader - the reader
Parameters:
  writer - the writer
throws:
  java.io.IOException - on error



setXfa
public void setXfa(PdfWriter writer) throws IOException(Code)
Sets the XFA key from the instance data. The old XFA is erased.
Parameters:
  writer - the writer
throws:
  java.io.IOException - on error



setXfaPresent
public void setXfaPresent(boolean xfaPresent)(Code)
Sets the XFA form flag signaling that this is a valid XFA form.
Parameters:
  xfaPresent - the XFA form flag signaling that this is a valid XFA form



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.