de.interactive_instruments.ShapeChange
Class Options

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Options

public class Options
extends Object


Field Summary
 String appSchemaVersion
           
 boolean argoBugFixMissingDOCTYPE
           
static String[] assocStereotypes
           
static int ATTRIBUTECONCEPT
           
static int BASICTYPE
           
static String[] classStereotypes
          Well known stereotypes
protected  HashSet<Integer> classTypesToCreateConstraintsFor
          Set of class stereotypes for which constraints shall be created; null if constraints for all classes shall be created.
static int CODELIST
           
 String configFile
           
protected  boolean constraintCreationForProperties
          True, if constraints shall be created for properties, else false.
static String CRLF
          Carriage Return and Line Feed characters.
protected  ProcessConfiguration currentProcessConfig
           
static int DATATYPE
           
static String DC
           
static String DEF_NS
           
static String DEFAULT_TMP_DIR_PATH
           
protected  String definitionSeparator
          documentation separators
static String[] depStereotypes
           
protected  String descriptionSeparator
           
static String DGIWGSP_NS
           
static String DGIWGSP_NSABR
           
protected  Map<String,String> dialogParameters
           
static int EA7
           
 boolean eaBugFixPublicPackagesAreMarkedAsPrivate
           
 boolean eaBugFixWrongID
           
 boolean eaIncludeExtentsions
           
static String ELEMENT_NAME_KEY_FOR_DIAGRAM_MATCHING
           
static int ENUMERATION
           
protected  HashSet<String> fAllRules
          Hash table for schema requirements and conversion rules
protected  HashMap<String,MapEntry> fAttributeGroupMap
           
protected  HashMap<String,MapEntry> fAttributeMap
           
protected  HashMap<String,MapEntry> fBaseMap
          Key: type + "#" + xsdEncodingRule Value: MapEntry with: rule: ("direct") p1: xmlType (optionally) p2: xmlTypeType+"/"+xmlTypeContent
static int FEATURE
           
static int FEATURECONCEPT
           
protected  HashMap<String,MapEntry> fElementMap
           
protected  HashMap<String,String> fExtendsEncRule
          Hash table for encoding rule extensions
protected  HashMap<String,MapEntry> fNamespaces
          Hash table for external namespaces key: namespace abbreviation / prefix; value: MapEntry (arg1: namespace, arg2: location)
protected  HashMap<String,MapEntry> fPackages
          Hash table for packages
protected  HashMap<String,String> fParameters
          Hash table for additional parameters
protected  HashMap<String,String> fReplace
          Hash table for string replacements
protected  HashSet<String> fRulesInEncRule
           
protected  HashMap<String,String> fSchemaLocations
          Hash table for schema locations key: namespace, value: location
protected  HashMap<String,String> fStereotypeAliases
          Hash table for all stereotype aliases
protected  HashMap<String,String> fTargets
          Map of targets to generate from the input model.
protected  HashMap<String,HashMap<String,MapEntry>> fTargetTypeMap
          Map of type mapping tables for non-XMLSchema targets
protected  HashMap<String,MapEntry> fTypeMap
          Hash table for type and element mappings
static int GDB
           
static String GDBDOC_NS
           
static int GENERIC
           
static int GLOBAL
          Global vs local declarations.
 String GML_NS
          GML core namespaces
static String GMLEXR_NS
           
static int GMLOBJECT
           
 String gmlVersion
           
static int GSIP
           
static String GSIP_ENC
           
protected  boolean ignoreEncodingRuleTaggedValues
          True, if xxxEncodingRule tagged values shall be ignored (because the model is wrong and needs cleanup), else false.
static String IMAGE_INCLUSION_CLASS_REGEX
           
static String IMAGE_INCLUSION_PACKAGE_REGEX
           
protected  File imageTmpDir
           
protected  InputConfiguration inputConfig
           
static String INPUTELEMENTID
          Constants of the ShapeChangeConfiguration
protected  List<TargetConfiguration> inputTargetConfigs
           
protected  List<TransformerConfiguration> inputTransformerConfigs
           
static String ISO19136_2007
          XML Schema encoding rules
static String ISO19136_2007_INSPIRE
           
static String ISO19136_2007_NO_GML
           
static String ISO19136_2007_SHAPECHANGE_1_0
           
static String ISO19139_2007
           
static String ISO19150_2014
           
static String JAXP_SCHEMA_LANGUAGE
          Parser feature ids.
static String JAXP_SCHEMA_SOURCE
           
static int LOCAL
           
protected  Map<String,String> logParameters
           
static int MIXIN
           
protected  String nameSeparator
           
static int NONE
          SQL targets.
static String NOT_ENCODED
           
static int OBJECT
           
static String OGC_GEOSPARQL
           
static int OKSTRAFID
           
static int OKSTRAKEY
           
static int ORACLE10
           
static String[] packageStereotypes
           
static String PARAM_INPUT_EXCLUDED_PACKAGES
          Defines the name of the configuration parameter via which a comma-separated list of package names to exclude from the model loading can be provided.
static int POSTGIS
           
static String[] propertyStereotypes
           
 boolean roseBugFixDuplicateGlobalDataTypes
           
static String SCAI_NS
           
static String SCHEMATRON_NS
           
static String SCRS_NS
           
 boolean sortedSchemaOutput
          If set to true, schemas (from the model) will be processed in some stable (not random) order.
static String SQL
           
static String SWECOMMON2
           
static String TargetArcGISWorkspaceClass
           
static String TargetFeatureCatalogueClass
           
static String TargetJsonSchemaClass
           
static String TargetOWLISO19150Class
           
static String TargetRDFClass
           
static String TargetSQLClass
           
static String TargetXmlSchemaClass
          Target Java Classes
static String TMP_DIR_PATH_PARAM
           
protected  File tmpDir
           
static int UNION
           
static int UNKNOWN
          Class categories.
static int VALUECONCEPT
           
static String W3C_OWL
           
static String W3C_OWL2XML
           
static String W3C_RDF
           
static String W3C_RDFS
           
static String W3C_SKOS
           
static String W3C_XML_SCHEMA
           
static int XMI10
          Model types.
 String xmlNamespaceAbbreviationDefault
           
 String xmlNamespaceDefault
           
static String XTRASERVER_NS
           
 
Constructor Summary
Options()
           
 
Method Summary
protected  void addAttributeGroupMapEntry(String k1, String k2, String s1)
           
protected  void addAttributeMapEntry(String k1, String k2, String s1)
           
protected  void addBaseMapEntry(String k1, String k2, String s1, String s2)
           
protected  void addBaseMapEntry(String k1, String k2, String s1, String s2, String s3)
          Adds a new MapEntry to fBaseMap.
protected  void addElementMapEntry(String k1, String k2, String s1, String s2)
           
protected  void addElementMapEntry(String k1, String k2, String s1, String s2, String s3)
           
protected  void addExtendsEncRule(String rule1, String rule2)
           
protected  void addNamespace(String k1, String s1, String s2)
           
protected  void addPackage(String k1, String s1, String s2, String s3, String s4)
           
protected  void addRule(String rule)
           
protected  void addRule(String rule, String encRule)
           
 void addSchemaLocation(String k1, String s1)
           
protected  void addStereotypeAlias(String k1, String s1)
           
protected  void addTarget(String k1, String k2)
           
 void addTargetTypeMapEntry(String cls, String type, String rule, String ttype, String param)
           
protected  void addTypeMapEntry(String k1, String k2, String s1, String s2)
          A map entry.
protected  void addTypeMapEntry(String k1, String k2, String s1, String s2, String s3)
           
protected  void addTypeMapEntry(String k1, String k2, String s1, String s2, String s3, String s4)
           
 MapEntry attributeGroupMapEntry(String k1, String k2)
           
 MapEntry attributeMapEntry(String k1, String k2)
           
 MapEntry baseMapEntry(String k1, String k2)
          Tries to find a MapEntry that defines the mapping of a type to its xmlType, based upon the given encoding rule or any rules it extends.
 String definitionSeparator()
           
 String descriptionSeparator()
           
 MapEntry elementMapEntry(String k1, String k2)
           
protected  String extendsEncRule(String rule1)
           
 String fullNamespace(String k1)
           
 ProcessConfiguration getCurrentProcessConfig()
           
 Set<String> getExcludedPackages()
           
 String getInputId()
           
 List<TargetConfiguration> getInputTargetConfigs()
           
 List<TransformerConfiguration> getInputTransformerConfigs()
           
 List<TargetConfiguration> getTargetConfigurations()
           
 File getTmpDir()
           
 boolean hasRule(String rule)
           
 boolean hasRule(String rule, String encRule)
           
 boolean ignoreEncodingRuleTaggedValues()
           
 File imageTmpDir()
           
 boolean isClassTypeToCreateConstraintsFor(int classCategory)
           
 boolean isConstraintCreationForProperties()
           
 void loadConfiguration()
           
 boolean matchesEncRule(String encRule, String baseRule)
           
 String nameOfTarget(int targetId)
           
 String nameSeparator()
           
protected  MapEntry namespace(String k1)
           
 String normalizeStereotype(String stereotype)
          Normalize a stereotype fetched from the model.
 String nsabrForNamespace(String ns)
          Gets the namespace abbreviation / prefix for a given namespace as declared via the configuration, or null if the configuration does not contain information about the namespace.
 String nsabrOfPackage(String k1)
           
 String nsOfPackage(String k1)
           
 String parameter(String k1)
           
 String parameter(String t, String k1)
           
 String[] parameterNamesByRegex(String t, String regex)
          This returns the names of all parms whose names match a regex pattern
 String replaceValue(String k1)
           
 void resetFields()
           
 String schemaLocationOfNamespace(String k1)
           
 void setCurrentProcessConfig(ProcessConfiguration currentProcessConfig)
           
 void setParameter(String k1, String s1)
           
 void setParameter(String t, String k1, String s1)
           
 void setReplaceValue(String k1, String s1)
           
 String setTargetMode(String tn, String mode)
           
 boolean skipSchema(Target target, PackageInfo pi)
           
 String stereotypeAlias(String k1)
           
 String targetClassName(String rule)
           
 String targetMode(String tn)
           
 Vector<String> targets()
           
 MapEntry targetTypeMapEntry(String cls, String type, String rule)
           
 MapEntry typeMapEntry(String k1, String k2)
           
 String versionOfPackage(String k1)
           
 String xsdOfPackage(String k1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXP_SCHEMA_LANGUAGE

public static final String JAXP_SCHEMA_LANGUAGE
Parser feature ids.

See Also:
Constant Field Values

JAXP_SCHEMA_SOURCE

public static final String JAXP_SCHEMA_SOURCE
See Also:
Constant Field Values

W3C_XML_SCHEMA

public static final String W3C_XML_SCHEMA
See Also:
Constant Field Values

W3C_RDF

public static final String W3C_RDF
See Also:
Constant Field Values

W3C_RDFS

public static final String W3C_RDFS
See Also:
Constant Field Values

W3C_OWL

public static final String W3C_OWL
See Also:
Constant Field Values

W3C_OWL2XML

public static final String W3C_OWL2XML
See Also:
Constant Field Values

DC

public static final String DC
See Also:
Constant Field Values

OGC_GEOSPARQL

public static final String OGC_GEOSPARQL
See Also:
Constant Field Values

W3C_SKOS

public static final String W3C_SKOS
See Also:
Constant Field Values

SCRS_NS

public static final String SCRS_NS
See Also:
Constant Field Values

SCAI_NS

public static final String SCAI_NS
See Also:
Constant Field Values

SCHEMATRON_NS

public static final String SCHEMATRON_NS
See Also:
Constant Field Values

DGIWGSP_NSABR

public static final String DGIWGSP_NSABR
See Also:
Constant Field Values

DGIWGSP_NS

public static final String DGIWGSP_NS
See Also:
Constant Field Values

DEF_NS

public static final String DEF_NS
See Also:
Constant Field Values

XTRASERVER_NS

public static final String XTRASERVER_NS
See Also:
Constant Field Values

GDBDOC_NS

public static final String GDBDOC_NS
See Also:
Constant Field Values

TargetXmlSchemaClass

public static final String TargetXmlSchemaClass
Target Java Classes

See Also:
Constant Field Values

TargetJsonSchemaClass

public static final String TargetJsonSchemaClass
See Also:
Constant Field Values

TargetFeatureCatalogueClass

public static final String TargetFeatureCatalogueClass
See Also:
Constant Field Values

TargetOWLISO19150Class

public static final String TargetOWLISO19150Class
See Also:
Constant Field Values

TargetRDFClass

public static final String TargetRDFClass
See Also:
Constant Field Values

TargetSQLClass

public static final String TargetSQLClass
See Also:
Constant Field Values

TargetArcGISWorkspaceClass

public static final String TargetArcGISWorkspaceClass
See Also:
Constant Field Values

ISO19136_2007

public static final String ISO19136_2007
XML Schema encoding rules


ISO19139_2007

public static final String ISO19139_2007

ISO19136_2007_SHAPECHANGE_1_0

public static final String ISO19136_2007_SHAPECHANGE_1_0

ISO19136_2007_INSPIRE

public static final String ISO19136_2007_INSPIRE

ISO19136_2007_NO_GML

public static final String ISO19136_2007_NO_GML

ISO19150_2014

public static final String ISO19150_2014

SQL

public static final String SQL
See Also:
Constant Field Values

SWECOMMON2

public static final String SWECOMMON2

NOT_ENCODED

public static final String NOT_ENCODED

GSIP_ENC

public static final String GSIP_ENC

classStereotypes

public static final String[] classStereotypes
Well known stereotypes


assocStereotypes

public static final String[] assocStereotypes

propertyStereotypes

public static final String[] propertyStereotypes

packageStereotypes

public static final String[] packageStereotypes

depStereotypes

public static final String[] depStereotypes

CRLF

public static final String CRLF
Carriage Return and Line Feed characters.

See Also:
Constant Field Values

XMI10

public static final int XMI10
Model types.

See Also:
Constant Field Values

EA7

public static final int EA7
See Also:
Constant Field Values

GSIP

public static final int GSIP
See Also:
Constant Field Values

GENERIC

public static final int GENERIC
See Also:
Constant Field Values

NONE

public static final int NONE
SQL targets. TODO move the relevant targets

See Also:
Constant Field Values

ORACLE10

public static final int ORACLE10
See Also:
Constant Field Values

POSTGIS

public static final int POSTGIS
See Also:
Constant Field Values

GDB

public static final int GDB
See Also:
Constant Field Values

GLOBAL

public static final int GLOBAL
Global vs local declarations.

See Also:
Constant Field Values

LOCAL

public static final int LOCAL
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Class categories.

See Also:
Constant Field Values

FEATURE

public static final int FEATURE
See Also:
Constant Field Values

CODELIST

public static final int CODELIST
See Also:
Constant Field Values

ENUMERATION

public static final int ENUMERATION
See Also:
Constant Field Values

MIXIN

public static final int MIXIN
See Also:
Constant Field Values

DATATYPE

public static final int DATATYPE
See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

GMLOBJECT

public static final int GMLOBJECT
See Also:
Constant Field Values

BASICTYPE

public static final int BASICTYPE
See Also:
Constant Field Values

UNION

public static final int UNION
See Also:
Constant Field Values

OKSTRAKEY

public static final int OKSTRAKEY
See Also:
Constant Field Values

OKSTRAFID

public static final int OKSTRAFID
See Also:
Constant Field Values

FEATURECONCEPT

public static final int FEATURECONCEPT
See Also:
Constant Field Values

ATTRIBUTECONCEPT

public static final int ATTRIBUTECONCEPT
See Also:
Constant Field Values

VALUECONCEPT

public static final int VALUECONCEPT
See Also:
Constant Field Values

ELEMENT_NAME_KEY_FOR_DIAGRAM_MATCHING

public static final String ELEMENT_NAME_KEY_FOR_DIAGRAM_MATCHING
See Also:
Constant Field Values

IMAGE_INCLUSION_CLASS_REGEX

public static final String IMAGE_INCLUSION_CLASS_REGEX
See Also:
Constant Field Values

IMAGE_INCLUSION_PACKAGE_REGEX

public static final String IMAGE_INCLUSION_PACKAGE_REGEX
See Also:
Constant Field Values

INPUTELEMENTID

public static final String INPUTELEMENTID
Constants of the ShapeChangeConfiguration

See Also:
Constant Field Values

PARAM_INPUT_EXCLUDED_PACKAGES

public static final String PARAM_INPUT_EXCLUDED_PACKAGES
Defines the name of the configuration parameter via which a comma-separated list of package names to exclude from the model loading can be provided.

See Also:
Constant Field Values

xmlNamespaceDefault

public String xmlNamespaceDefault

xmlNamespaceAbbreviationDefault

public String xmlNamespaceAbbreviationDefault

appSchemaVersion

public String appSchemaVersion

configFile

public String configFile

GML_NS

public String GML_NS
GML core namespaces


GMLEXR_NS

public static String GMLEXR_NS

gmlVersion

public String gmlVersion

sortedSchemaOutput

public boolean sortedSchemaOutput
If set to true, schemas (from the model) will be processed in some stable (not random) order. To change the processing order of the classes in a specific Target use the targetParameter "sortedOutput" in the configuration file.


roseBugFixDuplicateGlobalDataTypes

public boolean roseBugFixDuplicateGlobalDataTypes

eaBugFixWrongID

public boolean eaBugFixWrongID

eaBugFixPublicPackagesAreMarkedAsPrivate

public boolean eaBugFixPublicPackagesAreMarkedAsPrivate

eaIncludeExtentsions

public boolean eaIncludeExtentsions

argoBugFixMissingDOCTYPE

public boolean argoBugFixMissingDOCTYPE

DEFAULT_TMP_DIR_PATH

public static final String DEFAULT_TMP_DIR_PATH
See Also:
Constant Field Values

TMP_DIR_PATH_PARAM

public static final String TMP_DIR_PATH_PARAM
See Also:
Constant Field Values

tmpDir

protected File tmpDir

fTargets

protected HashMap<String,String> fTargets
Map of targets to generate from the input model. Keys are the names of the Java classes which must implement the Target interface and values are the requested processing modes, one of "enabled", "disabled", "diagnostics-only".


fParameters

protected HashMap<String,String> fParameters
Hash table for additional parameters


fReplace

protected HashMap<String,String> fReplace
Hash table for string replacements


fTypeMap

protected HashMap<String,MapEntry> fTypeMap
Hash table for type and element mappings


fBaseMap

protected HashMap<String,MapEntry> fBaseMap
Key: type + "#" + xsdEncodingRule

Value: MapEntry with:


fElementMap

protected HashMap<String,MapEntry> fElementMap

fAttributeMap

protected HashMap<String,MapEntry> fAttributeMap

fAttributeGroupMap

protected HashMap<String,MapEntry> fAttributeGroupMap

fTargetTypeMap

protected HashMap<String,HashMap<String,MapEntry>> fTargetTypeMap
Map of type mapping tables for non-XMLSchema targets


fStereotypeAliases

protected HashMap<String,String> fStereotypeAliases
Hash table for all stereotype aliases


fNamespaces

protected HashMap<String,MapEntry> fNamespaces
Hash table for external namespaces

key: namespace abbreviation / prefix; value: MapEntry (arg1: namespace, arg2: location)


fPackages

protected HashMap<String,MapEntry> fPackages
Hash table for packages


fSchemaLocations

protected HashMap<String,String> fSchemaLocations
Hash table for schema locations

key: namespace, value: location


fAllRules

protected HashSet<String> fAllRules
Hash table for schema requirements and conversion rules


fRulesInEncRule

protected HashSet<String> fRulesInEncRule

fExtendsEncRule

protected HashMap<String,String> fExtendsEncRule
Hash table for encoding rule extensions


definitionSeparator

protected String definitionSeparator
documentation separators


descriptionSeparator

protected String descriptionSeparator

nameSeparator

protected String nameSeparator

constraintCreationForProperties

protected boolean constraintCreationForProperties
True, if constraints shall be created for properties, else false.


ignoreEncodingRuleTaggedValues

protected boolean ignoreEncodingRuleTaggedValues
True, if xxxEncodingRule tagged values shall be ignored (because the model is wrong and needs cleanup), else false.


classTypesToCreateConstraintsFor

protected HashSet<Integer> classTypesToCreateConstraintsFor
Set of class stereotypes for which constraints shall be created; null if constraints for all classes shall be created.


inputConfig

protected InputConfiguration inputConfig

dialogParameters

protected Map<String,String> dialogParameters

logParameters

protected Map<String,String> logParameters

currentProcessConfig

protected ProcessConfiguration currentProcessConfig

inputTargetConfigs

protected List<TargetConfiguration> inputTargetConfigs

inputTransformerConfigs

protected List<TransformerConfiguration> inputTransformerConfigs

imageTmpDir

protected File imageTmpDir
Constructor Detail

Options

public Options()
Method Detail

definitionSeparator

public String definitionSeparator()

descriptionSeparator

public String descriptionSeparator()

nameSeparator

public String nameSeparator()

isConstraintCreationForProperties

public boolean isConstraintCreationForProperties()
Returns:
True, if constraints shall be created for properties, else false.

ignoreEncodingRuleTaggedValues

public boolean ignoreEncodingRuleTaggedValues()
Returns:
True, if xxxEncodingRule tagged values shall be ignored (because the model is wrong and needs cleanup), else false.

isClassTypeToCreateConstraintsFor

public boolean isClassTypeToCreateConstraintsFor(int classCategory)

addTypeMapEntry

protected void addTypeMapEntry(String k1,
                               String k2,
                               String s1,
                               String s2)
A map entry.


addTypeMapEntry

protected void addTypeMapEntry(String k1,
                               String k2,
                               String s1,
                               String s2,
                               String s3)

addTypeMapEntry

protected void addTypeMapEntry(String k1,
                               String k2,
                               String s1,
                               String s2,
                               String s3,
                               String s4)

typeMapEntry

public MapEntry typeMapEntry(String k1,
                             String k2)

addTargetTypeMapEntry

public void addTargetTypeMapEntry(String cls,
                                  String type,
                                  String rule,
                                  String ttype,
                                  String param)

targetTypeMapEntry

public MapEntry targetTypeMapEntry(String cls,
                                   String type,
                                   String rule)

addBaseMapEntry

protected void addBaseMapEntry(String k1,
                               String k2,
                               String s1,
                               String s2)

addBaseMapEntry

protected void addBaseMapEntry(String k1,
                               String k2,
                               String s1,
                               String s2,
                               String s3)
Adds a new MapEntry to fBaseMap.

The key is k1 + "#" + k2.

The value is a MapEntry with:

Parameters:
k1 - type
k2 - xsdEncodingRule
s1 - ("direct")
s2 - xmlType
s3 - xmlTypeType+"/"+xmlTypeContent

baseMapEntry

public MapEntry baseMapEntry(String k1,
                             String k2)
Tries to find a MapEntry that defines the mapping of a type to its xmlType, based upon the given encoding rule or any rules it extends.

Parameters:
k1 - type name
k2 - encoding rule name
Returns:
MapEntry with rule=("direct"), p1=xmlType and (optionally, can be null) p2=xmlTypeType+"/"+xmlTypeContent

addElementMapEntry

protected void addElementMapEntry(String k1,
                                  String k2,
                                  String s1,
                                  String s2)

addElementMapEntry

protected void addElementMapEntry(String k1,
                                  String k2,
                                  String s1,
                                  String s2,
                                  String s3)

elementMapEntry

public MapEntry elementMapEntry(String k1,
                                String k2)

addAttributeMapEntry

protected void addAttributeMapEntry(String k1,
                                    String k2,
                                    String s1)

attributeMapEntry

public MapEntry attributeMapEntry(String k1,
                                  String k2)

addAttributeGroupMapEntry

protected void addAttributeGroupMapEntry(String k1,
                                         String k2,
                                         String s1)

attributeGroupMapEntry

public MapEntry attributeGroupMapEntry(String k1,
                                       String k2)

addTarget

protected void addTarget(String k1,
                         String k2)

targets

public Vector<String> targets()

targetMode

public String targetMode(String tn)

setTargetMode

public String setTargetMode(String tn,
                            String mode)

parameter

public String parameter(String k1)
Parameters:
k1 -
Returns:
the value of the parameter with the given name, or null if the parameter does not exist

parameter

public String parameter(String t,
                        String k1)

parameterNamesByRegex

public String[] parameterNamesByRegex(String t,
                                      String regex)
This returns the names of all parms whose names match a regex pattern


setParameter

public void setParameter(String k1,
                         String s1)

setParameter

public void setParameter(String t,
                         String k1,
                         String s1)

replaceValue

public String replaceValue(String k1)

setReplaceValue

public void setReplaceValue(String k1,
                            String s1)

addStereotypeAlias

protected void addStereotypeAlias(String k1,
                                  String s1)

stereotypeAlias

public String stereotypeAlias(String k1)

addNamespace

protected void addNamespace(String k1,
                            String s1,
                            String s2)
Parameters:
k1 - namespace abbreviation / prefix
s1 - namespace
s2 - location

addRule

protected void addRule(String rule)

hasRule

public boolean hasRule(String rule)

addRule

protected void addRule(String rule,
                       String encRule)

hasRule

public boolean hasRule(String rule,
                       String encRule)

matchesEncRule

public boolean matchesEncRule(String encRule,
                              String baseRule)

addExtendsEncRule

protected void addExtendsEncRule(String rule1,
                                 String rule2)

extendsEncRule

protected String extendsEncRule(String rule1)

addPackage

protected void addPackage(String k1,
                          String s1,
                          String s2,
                          String s3,
                          String s4)

addSchemaLocation

public void addSchemaLocation(String k1,
                              String s1)
Parameters:
k1 - namespace
s1 - location

namespace

protected MapEntry namespace(String k1)
Parameters:
k1 - nsabr (namespace abbreviation / prefix)
Returns:
the MapEntry belonging to the nsabr (with namespace as 'rule' and location as 'p1') - or null if the nsabr is unknown

nsabrForNamespace

public String nsabrForNamespace(String ns)
Gets the namespace abbreviation / prefix for a given namespace as declared via the configuration, or null if the configuration does not contain information about the namespace.

Parameters:
ns -
Returns:

fullNamespace

public String fullNamespace(String k1)
Parameters:
k1 - nsabr (namespace abbreviation / prefix)
Returns:
the full namespace

nsOfPackage

public String nsOfPackage(String k1)

nsabrOfPackage

public String nsabrOfPackage(String k1)

xsdOfPackage

public String xsdOfPackage(String k1)

versionOfPackage

public String versionOfPackage(String k1)

schemaLocationOfNamespace

public String schemaLocationOfNamespace(String k1)
Parameters:
k1 - - namespace
Returns:
schema location, if defined, else null

nameOfTarget

public String nameOfTarget(int targetId)

loadConfiguration

public void loadConfiguration()
                       throws ShapeChangeAbortException
Throws:
ShapeChangeAbortException

resetFields

public void resetFields()

normalizeStereotype

public String normalizeStereotype(String stereotype)
Normalize a stereotype fetched from the model.


skipSchema

public boolean skipSchema(Target target,
                          PackageInfo pi)

targetClassName

public String targetClassName(String rule)

getInputTargetConfigs

public List<TargetConfiguration> getInputTargetConfigs()
Returns:
the inputTargetConfigs

getInputTransformerConfigs

public List<TransformerConfiguration> getInputTransformerConfigs()
Returns:
the inputTransformerConfigs

setCurrentProcessConfig

public void setCurrentProcessConfig(ProcessConfiguration currentProcessConfig)
Parameters:
currentProcessConfig - the currentProcessConfig to set

getCurrentProcessConfig

public ProcessConfiguration getCurrentProcessConfig()
Returns:
the currentProcessConfig

getTargetConfigurations

public List<TargetConfiguration> getTargetConfigurations()

getInputId

public String getInputId()
Returns:
the value of the 'id' attribute of the 'input' configuration element (or the default value as defined by the INPUTELEMENTID field), if the attribute was not set in the configuration.

getTmpDir

public File getTmpDir()
Returns:
the temporary directory for the ShapeChange run; will be created if it does not already exist

imageTmpDir

public File imageTmpDir()
Returns:
the directory in which images (i.e. diagrams) from the input model can be stored; if it did not exist yet, it will be created

getExcludedPackages

public Set<String> getExcludedPackages()
Returns:
the excludedPackages for the model (may be empty but not null).


Copyright © 2015. All rights reserved.