de.interactive_instruments.ShapeChange.Target.Codelists
Class CodelistRegister

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Target.Codelists.CodelistRegister
All Implemented Interfaces:
SingleTarget, Target

public class CodelistRegister
extends Object
implements SingleTarget


Field Summary
static int TARGET_CLREGISTER
           
 
Constructor Summary
CodelistRegister()
           
 
Method Summary
protected  void addAttribute(Document document, Element e, String name, String value)
          Add attribute to an element
protected  Document createDocument()
           
 int getTargetID()
           
 void initialise(PackageInfo p, Model m, Options o, ShapeChangeResult r, boolean diagOnly)
          Allows a target to perform the necessary initialization routines before processing.
 void process(ClassInfo ci)
          The converter will call this method for each class belonging to the package given during initialization (see Target.initialise(de.interactive_instruments.ShapeChange.Model.PackageInfo, de.interactive_instruments.ShapeChange.Model.Model, de.interactive_instruments.ShapeChange.Options, de.interactive_instruments.ShapeChange.ShapeChangeResult, boolean)).
 void reset()
          All relevant fields of the target will be reset, so that it is ready for processing selected schemas based upon a specific target configuration.
 void write()
           
 void writeAll(ShapeChangeResult r)
          Instructs the target to output the processing results.
 void xsltWrite(String outputDirectory, String xmlName, String xsltfileName, String outfileName, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TARGET_CLREGISTER

public static final int TARGET_CLREGISTER
See Also:
Constant Field Values
Constructor Detail

CodelistRegister

public CodelistRegister()
Method Detail

initialise

public void initialise(PackageInfo p,
                       Model m,
                       Options o,
                       ShapeChangeResult r,
                       boolean diagOnly)
                throws ShapeChangeAbortException
Description copied from interface: Target
Allows a target to perform the necessary initialization routines before processing.

Will be called by the Converter for each selected schema (see Model.selectedSchemas() and PackageInfo.isSchema()).

Specified by:
initialise in interface Target
Parameters:
p - a schema from the model selected via the configuration (see Model.selectedSchemas()) - not necessarily always an application schema
Throws:
ShapeChangeAbortException
See Also:
Model.selectedSchemas(), PackageInfo.isSchema()

addAttribute

protected void addAttribute(Document document,
                            Element e,
                            String name,
                            String value)
Add attribute to an element


createDocument

protected Document createDocument()

process

public void process(ClassInfo ci)
Description copied from interface: Target
The converter will call this method for each class belonging to the package given during initialization (see Target.initialise(de.interactive_instruments.ShapeChange.Model.PackageInfo, de.interactive_instruments.ShapeChange.Model.Model, de.interactive_instruments.ShapeChange.Options, de.interactive_instruments.ShapeChange.ShapeChangeResult, boolean)).

NOTE: will be called not only for the classes directly contained in the package, but also all sub-packages belonging to the same targetNamespace!

Specified by:
process in interface Target

write

public void write()
Specified by:
write in interface Target

writeAll

public void writeAll(ShapeChangeResult r)
Description copied from interface: SingleTarget
Instructs the target to output the processing results.

Will be called by the Converter after initialization and processing for all of the selected schema has been performed.

Specified by:
writeAll in interface SingleTarget
See Also:
Model.selectedSchemas()

getTargetID

public int getTargetID()
Specified by:
getTargetID in interface Target

reset

public void reset()
Description copied from interface: SingleTarget
All relevant fields of the target will be reset, so that it is ready for processing selected schemas based upon a specific target configuration.

The Converter will reset SingleTargets whenever it processes a target configuration.

Specified by:
reset in interface SingleTarget

xsltWrite

public void xsltWrite(String outputDirectory,
                      String xmlName,
                      String xsltfileName,
                      String outfileName,
                      int level)


Copyright © 2015. All rights reserved.