fr.tireme.schemadoc.reorganize
Class ReorganizeDoc

java.lang.Object
  extended by fr.tireme.schemadoc.reorganize.ReorganizeDoc

public class ReorganizeDoc
extends java.lang.Object

Reorganization of the input document in order to ease XSLT transformations in later processes.

Since:
16 novembre 2003
Author:
Pierre Attar ; pat@tireme.fr Copyright (c) Tireme 2002, 2003

Constructor Summary
ReorganizeDoc(org.w3c.dom.Node docNode, java.lang.String rootDocFileName, Messages sdm, SDOneConfigParams _param)
          Generic form of the reorganize class
ReorganizeDoc(org.w3c.dom.Node docNode, java.lang.String interfaceLanguage, SDOneConfigParams _param)
          Simple form of a reorganize
 
Method Summary
 java.lang.String getDbPrefix()
           
 IdentificationManagement getIdm()
           
 java.lang.StringBuffer getMessage()
           
 java.util.Map<java.lang.String,java.lang.String> getNsMap()
           
 SDOneConfigParams getParam()
           
 org.w3c.dom.Element getRootDocElement()
           
 Messages getSdm()
           
 java.lang.String getSdPrefix()
           
 XPATHSelection getXp()
           
 java.lang.String getXsPrefix()
           
 void internalLogging(java.lang.String txt)
           
 boolean isDocUseNamespace()
           
 java.lang.String runReorganization()
          Reorganization of the whole tree structure in order to prepare it to be processed for output generation needs.
 java.lang.String simpleReorganize()
          Simple reorganization not managing graphics.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReorganizeDoc

public ReorganizeDoc(org.w3c.dom.Node docNode,
                     java.lang.String rootDocFileName,
                     Messages sdm,
                     SDOneConfigParams _param)
              throws Xml2outputExcept
Generic form of the reorganize class

Parameters:
docNode - Node to reorganize
rootDocFileName - File name of the document
sdm - message handler
_param - SDOneConfigParams
Throws:
Xml2outputExcept

ReorganizeDoc

public ReorganizeDoc(org.w3c.dom.Node docNode,
                     java.lang.String interfaceLanguage,
                     SDOneConfigParams _param)
              throws Xml2outputExcept
Simple form of a reorganize

Parameters:
docNode - schemaDoc article schemaDocInitialDoc node
interfaceLanguage - Description of Parameter
_param - SDOneConfigParams
Throws:
Xml2outputExcept
Method Detail

getDbPrefix

public java.lang.String getDbPrefix()
Returns:
Returns the dbPrefix.

getIdm

public IdentificationManagement getIdm()
Returns:
Returns the idm.

getMessage

public java.lang.StringBuffer getMessage()
Returns:
Returns the message.

getNsMap

public java.util.Map<java.lang.String,java.lang.String> getNsMap()
Returns:
Returns the nsMap.

getParam

public SDOneConfigParams getParam()
Returns:
Returns the param.

getRootDocElement

public org.w3c.dom.Element getRootDocElement()
Returns:
Returns the rootDocElement.

getSdm

public Messages getSdm()
Returns:
Returns the sdm.

getSdPrefix

public java.lang.String getSdPrefix()
Returns:
Returns the sdPrefix.

getXp

public XPATHSelection getXp()
Returns:
Returns the xp.

getXsPrefix

public java.lang.String getXsPrefix()
Returns:
Returns the xsPrefix.

internalLogging

public void internalLogging(java.lang.String txt)
Parameters:
txt - String

isDocUseNamespace

public boolean isDocUseNamespace()
Returns:
Returns the docUseNamespace.

runReorganization

public java.lang.String runReorganization()
                                   throws Xml2outputExcept
Reorganization of the whole tree structure in order to prepare it to be processed for output generation needs. This reorganization merge information for graphics and ease the XSLT processes by solving all internal references. The basis of the process is to add new attributes when needed. All of them belong to a temporary temp namespace.

Returns:
Messages issued during the reorganization.
Throws:
Xml2outputExcept - Standard Exception

simpleReorganize

public java.lang.String simpleReorganize()
                                  throws Xml2outputExcept
Simple reorganization not managing graphics.

Returns:
all messages accumulated during the process
Throws:
Xml2outputExcept - Standard Exception