public class AppConfiguration extends Object implements Target, MessageSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ID_COLUMN_NAME |
static int |
DEFAULT_SIZE |
static String |
NS |
static String |
PARAM_ID_COLUMN_NAME |
static String |
PARAM_SIZE |
static String |
PLATFORM |
static String |
REFERENCE_NAME |
Constructor and Description |
---|
AppConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(Document document,
Element e,
String name,
String value)
Add attribute to an element
|
protected Document |
createDocument() |
String |
getTargetName() |
void |
initialise(PackageInfo pi,
Model m,
Options o,
ShapeChangeResult r,
boolean diagOnly)
Allows a target to perform the necessary initialization routines before
processing.
|
String |
message(int mnr)
Return a message for a message number.
|
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 |
write() |
public static final String PLATFORM
public static final String NS
public static final String PARAM_ID_COLUMN_NAME
public static final String PARAM_SIZE
public static final String DEFAULT_ID_COLUMN_NAME
public static final int DEFAULT_SIZE
public static final String REFERENCE_NAME
public void initialise(PackageInfo pi, Model m, Options o, ShapeChangeResult r, boolean diagOnly) throws ShapeChangeAbortException
Target
Will be called by the Converter
for each selected schema (see
Model.selectedSchemas()
and PackageInfo.isSchema()
).
initialise
in interface Target
pi
- a schema from the model selected via the configuration (see
Model.selectedSchemas()
) - not necessarily always an
application schemaShapeChangeAbortException
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)
public void process(ClassInfo ci)
Target
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!
protected void addAttribute(Document document, Element e, String name, String value)
protected Document createDocument()
public void write()
write
in interface Target
Target.write()
public String getTargetName()
getTargetName
in interface Target
public String message(int mnr)
MessageSource
message
in interface MessageSource
MessageSource.message(int)
Copyright © 2017. All rights reserved.