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. Will ease XSLT transformations in later processes by providing ID/IDREF solved mechanism.

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
 boolean canReorganize()
          Is the document reorganizable
 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 SDExcept
Generic form of the reorganize class

Parameters:
docNode - Node to reorganize
rootDocFileName - File name of the document
sdm - message handler
_param - SDOneConfigParams
Throws:
SDExcept - standard exception management

ReorganizeDoc

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

Parameters:
docNode - schemaDoc article schemaDocInitialDoc node
interfaceLanguage - Description of Parameter
_param - SDOneConfigParams
Throws:
SDExcept - standard exception management
Method Detail

getDbPrefix

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

getIdm

public final IdentificationManagement getIdm()
Returns:
Returns the idm.

getMessage

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

getNsMap

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

getParam

public final SDOneConfigParams getParam()
Returns:
Returns the param.

getRootDocElement

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

getSdm

public final Messages getSdm()
Returns:
Returns the sdm.

getSdPrefix

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

getXp

public final XPATHSelection getXp()
Returns:
Returns the xp.

getXsPrefix

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

internalLogging

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

isDocUseNamespace

public final boolean isDocUseNamespace()
Returns:
Returns the docUseNamespace.

runReorganization

public java.lang.String runReorganization()
                                   throws SDExcept
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:
SDExcept - Standard Exception

canReorganize

public boolean canReorganize()
Is the document reorganizable

Returns:
boolean assertion

simpleReorganize

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

Returns:
all messages accumulated during the process
Throws:
SDExcept - standard exception management Standard Exception