Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.chiba.xml.xforms
Class PreProcessor  view PreProcessor download PreProcessor.java

java.lang.Object
  extended byorg.chiba.xml.xforms.PreProcessor

public class PreProcessor
extends java.lang.Object

Note: currently without use - may be re-activated later The PreProceesor handles all pre-initialization tasks as such:
[1] validating the XForm Container to ensure structural and syntactical correctness of the input-form (not yet implemented)
[2] check for correctness of references in form. These include:
- existence of bind-elements (Chiba works only for documents with explicit bind elements)
- correctness of binding link
- correctness of nodeset reference

Version:
$Id: PreProcessor.java,v 1.8 2003/10/01 21:57:47 joernt Exp $

Field Summary
private static org.apache.log4j.Category cat
           
private  org.w3c.dom.Document doc
           
(package private)  NamespaceCtx ns
           
 
Constructor Summary
PreProcessor(org.w3c.dom.Document aInput, NamespaceCtx aNS)
           
 
Method Summary
private  org.w3c.dom.Document adjustAttributeNamespace()
           
 void canonicalize()
          responsible for transforming the input document into an canonicalized version.
private  void conditionXFormAttributes(org.w3c.dom.Element node)
           
 org.w3c.dom.Document getResult()
           
private  void importChibaNamespace()
           
 void process()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.w3c.dom.Document doc

ns

NamespaceCtx ns

cat

private static org.apache.log4j.Category cat
Constructor Detail

PreProcessor

public PreProcessor(org.w3c.dom.Document aInput,
                    NamespaceCtx aNS)
Method Detail

process

public void process()

getResult

public org.w3c.dom.Document getResult()

canonicalize

public void canonicalize()
responsible for transforming the input document into an canonicalized version. public for testing


importChibaNamespace

private void importChibaNamespace()

adjustAttributeNamespace

private org.w3c.dom.Document adjustAttributeNamespace()

conditionXFormAttributes

private void conditionXFormAttributes(org.w3c.dom.Element node)