|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Target.ArcGISWorkspace.ArcGISWorkspace
public class ArcGISWorkspace
Nested Class Summary | |
---|---|
static class |
ArcGISWorkspace.ArcGISGeometryType
|
Field Summary | |
---|---|
protected PackageInfo |
appSchemaPkg
|
protected org.sparx.Package |
assocClasses
Package where all association classes used to represent n:m relationships are stored. |
static Double |
DEFAULT_NUM_RANGE_MAX_UPPER_BOUNDARY
|
static Double |
DEFAULT_NUM_RANGE_MIN_LOWER_BOUNDARY
|
protected org.sparx.Package |
domains
Package where all code lists and enumerations are stored (in package itself or sub-packages according to package hierarchy in the application schema). |
protected Map<org.sparx.Package,Map<PackageInfo,org.sparx.Package>> |
eaPkgByModelPkg_byWorkspaceSubPkg
key: workspace sub package; value: {key: application schema package; value: corresponding EA package within the workspace sub package} |
protected org.sparx.Package |
features
<<FeatureDataset>> package where all feature types with supported ArcGIS geometry are stored (in package itself or sub-packages according to package hierarchy in the application schema). |
static String |
ILLEGAL_NAME_CHARACTERS_DETECTION_REGEX
|
protected Map<String,Integer> |
lengthByClassPropName
Contains information about the maximum length of a property value (usually of a textual type). |
protected Map<String,Integer> |
lengthMappingByTypeName
|
int |
lengthTaggedValueDefault
|
static int |
MAX_ALIAS_LENGTH
|
static int |
MAX_NAME_LENGTH
|
static double |
NUM_RANGE_DELTA
|
protected Map<ClassInfo,Map<String,NumericRangeConstraintMetadata>> |
numericRangeConstraintByPropNameByClassName
Contains information about the numeric ranges defined for specific class properties via OCL constraints. |
static String |
PARAM_LENGTH_TAGGED_VALUE_DEFAULT
Optional (defaults to 255) - Default length to set in the 'length' tagged value of < |
static String |
PARAM_OUTPUT_DIR
Optional (default is the current run directory) - The path to the folder in which the resulting ArcGIS workspace (UML) model will be created. |
static String |
PARAM_OUTPUT_FILENAME
Optional (defaults to "ArcGISWorkspace.eap") The name of the output file. |
static String |
PARAM_VALUE_RANGE_DELTA
Optional (defaults to 0.01) - Delta to add to / subtract from a range limit in case that the lower and/or upper boundary comparison operator is not inclusive. |
static String |
PARAM_WORKSPACE_TEMPLATE
Optional (defaults to "http://shapechange.net/resources/templates/ArcGISWorkspace_template.eap" ) - Path to the ArcGIS workspace UML model template file (can be local or an online resource). |
protected Map<String,Integer> |
precisionMappingByTypeName
|
protected Map<String,ProcessMapEntry> |
processMapEntries
TODO: value of 'rule' attribute is currently ignored key: 'type' attribute value of map entry defined for the target; value: according map entry |
static String |
RULE_ENUM_INITIAL_VALUE_BY_ALIAS
If this rule is enabled, the initial value for a < |
protected Map<String,Integer> |
scaleMappingByTypeName
|
static String |
STEREOTYPE_DOMAIN_CODED_VALUE
|
static String |
STEREOTYPE_RELATIONSHIP_CLASS
|
protected org.sparx.Package |
tables
Package where all feature types without geometry and object types are stored (in package itself or sub-packages according to package hierarchy in the application schema). |
static int |
TARGET_ArcGISWorkspace
|
static String |
TEMPLATE_PKG_ASSOCIATION_CLASSES_NAME
|
static String |
TEMPLATE_PKG_DOMAINS_NAME
|
static String |
TEMPLATE_PKG_FEATURES_NAME
|
static String |
TEMPLATE_PKG_TABLES_NAME
|
static String |
WORKSPACE_TEMPLATE_URL
|
protected org.sparx.Package |
workspacePkg
<<ArcGIS>> workspace package that represents the application schema package. |
Constructor Summary | |
---|---|
ArcGISWorkspace()
|
Method Summary | |
---|---|
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. |
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()
|
void |
write()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TARGET_ArcGISWorkspace
public static final String RULE_ENUM_INITIAL_VALUE_BY_ALIAS
public static final String PARAM_LENGTH_TAGGED_VALUE_DEFAULT
public static final String PARAM_VALUE_RANGE_DELTA
public static final String PARAM_OUTPUT_DIR
public static final String PARAM_OUTPUT_FILENAME
public static final String PARAM_WORKSPACE_TEMPLATE
public static final String WORKSPACE_TEMPLATE_URL
public static final String TEMPLATE_PKG_FEATURES_NAME
public static final String TEMPLATE_PKG_DOMAINS_NAME
public static final String TEMPLATE_PKG_TABLES_NAME
public static final String TEMPLATE_PKG_ASSOCIATION_CLASSES_NAME
public static final String STEREOTYPE_RELATIONSHIP_CLASS
public static final String STEREOTYPE_DOMAIN_CODED_VALUE
public static final int MAX_NAME_LENGTH
public static final int MAX_ALIAS_LENGTH
public static final double NUM_RANGE_DELTA
public static final Double DEFAULT_NUM_RANGE_MIN_LOWER_BOUNDARY
public static final Double DEFAULT_NUM_RANGE_MAX_UPPER_BOUNDARY
public int lengthTaggedValueDefault
public static final String ILLEGAL_NAME_CHARACTERS_DETECTION_REGEX
protected PackageInfo appSchemaPkg
protected org.sparx.Package workspacePkg
protected org.sparx.Package features
protected org.sparx.Package tables
protected org.sparx.Package assocClasses
protected org.sparx.Package domains
protected Map<org.sparx.Package,Map<PackageInfo,org.sparx.Package>> eaPkgByModelPkg_byWorkspaceSubPkg
protected Map<String,ProcessMapEntry> processMapEntries
protected Map<String,Integer> lengthMappingByTypeName
protected Map<String,Integer> precisionMappingByTypeName
protected Map<String,Integer> scaleMappingByTypeName
protected Map<String,Integer> lengthByClassPropName
protected Map<ClassInfo,Map<String,NumericRangeConstraintMetadata>> numericRangeConstraintByPropNameByClassName
Constructor Detail |
---|
public ArcGISWorkspace()
Method Detail |
---|
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 schema
ShapeChangeAbortException
Model.selectedSchemas()
,
PackageInfo.isSchema()
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!
process
in interface Target
public void write()
write
in interface Target
public int getTargetID()
getTargetID
in interface Target
public void reset()
public String message(int mnr)
MessageSource
message
in interface MessageSource
MessageSource.message(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |