public class CDB extends Object implements SingleTarget, MessageSource
Modifier and Type | Field and Description |
---|---|
protected static boolean |
atLeastOneSchemaIsEncoded |
protected static SortedSet<ClassInfo> |
featureTypes |
protected static boolean |
initialised |
static String |
MAPENTRY_PARAM_NUMERIC_FORMAT |
static String |
MAPENTRY_PARAM_NUMERIC_FORMAT_FLOATINGPOINT |
static String |
MAPENTRY_PARAM_NUMERIC_FORMAT_INTEGER |
protected static MapEntryParamInfos |
mapEntryParamInfos |
static String |
NS_AD |
static String |
NS_FDD |
static String |
NSABR |
static String |
PARAM_UNITS_TO_IGNORE |
static String |
PARAM_VERSION |
static String |
RULE_TGT_CDB_ALL_NOTENCODED |
static String |
RULE_TGT_CDB_ALL_VALUETYPETEXT_FOR_UNION_REPRESENTING_FEATURESET |
protected static SortedSet<String> |
schemaVersions |
protected static Map<String,CDBUnit> |
unitDefsFromConfigByName |
protected static Set<String> |
unitsToIgnore |
Constructor and Description |
---|
CDB() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(Element e,
String name,
String value)
Add attribute to an element
|
protected Element |
addElement(String namespace,
String elementName,
Element parent) |
protected Element |
addElement(String namespace,
String elementName,
Element parent,
String textValue) |
String |
getTargetName() |
void |
initialise(PackageInfo p,
Model m,
Options o,
ShapeChangeResult r,
boolean diagOnly)
Allows a target to perform the necessary initialization routines before
processing.
|
static boolean |
isEncoded(Info i) |
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 |
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 result)
Instructs the target to output the processing results.
|
public static final String NS_FDD
public static final String NS_AD
public static final String NSABR
public static final String MAPENTRY_PARAM_NUMERIC_FORMAT
public static final String MAPENTRY_PARAM_NUMERIC_FORMAT_FLOATINGPOINT
public static final String MAPENTRY_PARAM_NUMERIC_FORMAT_INTEGER
public static final String PARAM_VERSION
public static final String PARAM_UNITS_TO_IGNORE
public static final String RULE_TGT_CDB_ALL_NOTENCODED
public static final String RULE_TGT_CDB_ALL_VALUETYPETEXT_FOR_UNION_REPRESENTING_FEATURESET
protected static boolean initialised
protected static boolean atLeastOneSchemaIsEncoded
protected static MapEntryParamInfos mapEntryParamInfos
public void initialise(PackageInfo p, 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
p
- a schema from the model selected via the configuration (see
Model.selectedSchemas()
) - not necessarily always an
application schemaShapeChangeAbortException
Model.selectedSchemas()
,
PackageInfo.isSchema()
public String getTargetName()
getTargetName
in interface Target
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(Element e, String name, String value)
public static boolean isEncoded(Info i)
public void writeAll(ShapeChangeResult result)
SingleTarget
Will be called by the Converter
after initialization and
processing for all of the selected schema has been performed.
writeAll
in interface SingleTarget
Model.selectedSchemas()
protected Element addElement(String namespace, String elementName, Element parent, String textValue)
public void reset()
SingleTarget
The Converter
will reset SingleTargets whenever it processes a
target configuration.
reset
in interface SingleTarget
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.