public class Options extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AIXMEXTENSION |
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_FOR_PROHIBIT_LOADING_CLASSES_WITH_STATUS_TV |
static String |
DEFAULT_TMP_DIR_PATH |
protected String |
definitionSeparator |
static String[] |
depStereotypes |
static String |
DERIVED_DOCUMENTATION_DEFAULT_NOVALUE |
static String |
DERIVED_DOCUMENTATION_DEFAULT_TEMPLATE |
static String |
DERIVED_DOCUMENTATION_INSPIRE_TEMPLATE |
protected String |
descriptionSeparator |
static String |
DGIWGSP_NS |
static String |
DGIWGSP_NSABR |
protected Map<String,String> |
dialogParameters |
protected boolean |
dontConstructAssociationNames |
boolean |
eaBugFixPublicPackagesAreMarkedAsPrivate |
boolean |
eaBugFixWrongID |
boolean |
eaIncludeExtentsions |
static String |
ELEMENT_NAME_KEY_FOR_DIAGRAM_MATCHING |
static int |
ENUMERATION |
protected String |
extractSeparator
documentation separators
|
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
p2: xmlTypeType+"/"+xmlTypeContent
|
protected HashMap<String,String> |
fDescriptorSources
Hash table for all descriptor sources
|
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
key: package name
value: MapEntry with: rule: namespace URL of the schema (value of XML attribute 'ns' of PackageInfo configuration element) p1: namespace abbreviation (value of XML attribute 'nsabr' of PackageInfo configuration element) p2: desired filename of the output XML Schema document (value of XML attribute 'xsdDocument' of PackageInfo configuration element) p3: version of the schema (value of XML attribute 'version' of PackageInfo configuration element) |
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 and tag aliases
|
protected HashMap<String,String> |
fTagAliases |
protected HashMap<String,ProcessMode> |
fTargets
Map of targets to generate from the input model.
|
protected HashMap<String,MapEntry> |
fTypeMap
Hash table for type and element mappings
|
static int |
GDB |
static String |
GDBDOC_NS |
static int |
GLOBAL
Global vs local declarations.
|
String |
GML_NS
GML core namespaces
|
static String |
GMLEXR_NS |
static int |
GMLOBJECT |
static String |
GMLSF_NS |
static String |
GMLSF_NSABR |
String |
gmlVersion |
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 |
protected String |
language |
static String |
LF |
protected File |
linkedDocTmpDir |
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_CONSTRAINT_EXCEL_FILE
Defines the name of the input parameter that provides the location of an
excel file with constraints (currently only SBVR rules are supported)
that shall be loaded before postprocessing the input model.
|
static String |
PARAM_DONT_CONSTRUCT_ASSOCIATION_NAMES |
static String |
PARAM_IGNORE_ENCODING_RULE_TVS |
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 String |
PARAM_LANGUAGE |
static String |
PARAM_LOAD_CONSTRAINT_FOR_SEL_SCHEMAS_ONLY
Set this input parameter to
true if constraints shall only
be loaded for classes and properties from the schemas selected for
processing (and ignoring all constraints from other packages). |
static String |
PARAM_ONLY_DEFERRABLE_OUTPUT_WRITE |
static String |
PARAM_PROHIBIT_LOADING_CLASSES_WITH_STATUS_TV
Alias: none
Required / Optional: optional
Type: String (comma separated list of values)
Default Value: notValid, retired, superseded
Explanation: Comma separated list of values that, if one of them is being
set as the 'status' tagged value of a class, will lead to the class not
being loaded.
|
static String |
PARAM_SKIP_SEMANTIC_VALIDATION_OF_CONFIG
If 'true', semantic validation of the ShapeChange configuration will not
be performed.
|
static String |
PARAM_TAGGED_VALUE_IMPL
If set to “array”, ShapeChange will use a memory optimized implementation
of tagged values when processing the model.Use this option when
processing very large models.
|
static String |
PARAM_USE_STRING_INTERNING |
static int |
POSTGIS |
protected Set<String> |
prohibitedStatusValuesWhenLoadingClasses |
static String[] |
propertyStereotypes |
static int |
ROLECONCEPT |
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 |
TargetApplicationSchemaMetadata |
static String |
TargetArcGISWorkspaceClass |
static String |
TargetCDB |
static String |
TargetFeatureCatalogueClass |
static String |
TargetFOL2SchematronClass |
static String |
TargetJsonSchemaClass |
protected Map<String,ProcessMapEntry> |
targetMapEntryByTypeRuleKey
Map entries for a non-XML Schema target
key: {type attribute value}#{rule attribute value}
value: map entry with this combination of type and rule
NOTE: separation by class is not necessary, since the map is reset when
the converter is about to process a target (which also leads to loading
the specific configuration of that target)
|
static String |
TargetModelExport |
static String |
TargetOWLISO19150Class |
static String |
TargetProfileTransferEA |
static String |
TargetRDFClass |
static String |
TargetReplicationSchemaClass |
static String |
TargetSQLClass |
static String |
TargetXmlSchemaClass |
static String |
TMP_DIR_PATH_PARAM |
protected File |
tmpDir |
static int |
UNION |
static int |
UNKNOWN
Class categories.
|
protected boolean |
useStringInterning |
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 |
String |
xmlNamespaceAbbreviationDefault |
String |
xmlNamespaceDefault |
static String |
XTRASERVER_NS |
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
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,
String s3)
Adds a new MapEntry to fBaseMap.
|
protected void |
addDescriptorSource(String descriptor,
String source)
Adds a descriptor-source mapping.
|
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 alias,
String wellknown)
Adds a stereotype alias mapping.
|
protected void |
addTagAlias(String alias,
String wellknown)
Adds a tag alias mapping.
|
protected void |
addTarget(String k1,
ProcessMode k2) |
void |
addTargetTypeMapEntry(ProcessMapEntry pme) |
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.
|
MapEntry |
baseMapEntry(String k1,
String k2,
String xmlTypeType,
String xmlTypeContent)
Tries to find a MapEntry that defines the mapping of a type to its
xmlType, with given xmlTypeType and xmlTypeContent, based upon the given
encoding rule or any rules it extends.
|
String |
definitionSeparator() |
String |
descriptionSeparator() |
String |
descriptorSource(String descriptor)
Retrieves the wellknown stereotype to which the given alias maps, or
null if no such mapping exists. |
boolean |
dontConstructAssociationNames() |
MapEntry |
elementMapEntry(String k1,
String k2) |
boolean |
encRuleExists(String encRule) |
protected String |
extendsEncRule(String rule1) |
String |
extractSeparator() |
String |
fullNamespace(String k1) |
Map<String,AIXMSchemaInfos.AIXMSchemaInfo> |
getAIXMSchemaInfos()
Retrieve AIXM schema infos that have been stored previously.
|
ProcessConfiguration |
getCurrentProcessConfig() |
boolean |
getDescriptorsFromDepedency() |
boolean |
getDescriptorsFromSupertypes() |
Set<String> |
getExcludedPackages() |
InputConfiguration |
getInputConfig() |
String |
getInputId() |
List<TargetConfiguration> |
getInputTargetConfigs() |
List<TransformerConfiguration> |
getInputTransformerConfigs() |
List<TargetConfiguration> |
getTargetConfigurations() |
File |
getTmpDir() |
Map<String,TransformerConfiguration> |
getTransformerConfigs() |
boolean |
hasParameter(String className,
String parameterName) |
boolean |
hasRule(String rule) |
boolean |
hasRule(String rule,
String encRule) |
boolean |
ignoreEncodingRuleTaggedValues() |
File |
imageTmpDir() |
String |
internalize(String string)
Depending upon whether or not string interning shall be used during
processing, this method interns the given string.
|
String[] |
internalize(String[] array)
Depending upon whether or not string interning shall be used during
processing, this method interns the given string array or an internized
copy.
|
boolean |
isAIXM()
Determines if AIXM schema are being processed, which require special
treatment (due to the AIXM extension mechanism and because AIXM feature
types are dynamic features).
|
boolean |
isClassTypeToCreateConstraintsFor(int classCategory) |
boolean |
isConstraintCreationForProperties() |
boolean |
isLoadConstraintsForSelectedSchemasOnly() |
boolean |
isOnlyDeferrableOutputWrite()
Determines if only deferrable output writing shall be executed.
|
String |
language() |
File |
linkedDocumentsTmpDir() |
void |
loadConfiguration() |
boolean |
matchesEncRule(String encRule,
String baseRule) |
String |
nameSeparator() |
protected MapEntry |
namespace(String k1) |
String |
normalizeStereotype(String stereotype)
Normalize a stereotype fetched from the model.
|
String |
normalizeTag(String tag)
Normalize a tag 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 packageName) |
String |
nsOfPackage(String k1) |
String |
parameter(String k1) |
String |
parameter(String t,
String k1) |
boolean |
parameterAsBoolean(String className,
String parameterName,
boolean defaultValue) |
int |
parameterAsInteger(String className,
String parameterName,
int defaultValue) |
String |
parameterAsString(String className,
String parameterName,
String defaultValue,
boolean allowNonEmptyTrimmedStringValue,
boolean trimValue) |
List<String> |
parameterAsStringList(String className,
String parameterName,
String[] defaultValues,
boolean omitEmptyStrings,
boolean trimResults) |
String[] |
parameterNamesByRegex(String t,
String regex)
This returns the names of all parms whose names match a regex pattern
|
Set<String> |
prohibitedStatusValuesWhenLoadingClasses() |
String |
replaceValue(String k1) |
void |
resetFields() |
String |
schemaLocationOfNamespace(String k1) |
void |
setAIXMSchemaInfos(Map<String,AIXMSchemaInfos.AIXMSchemaInfo> schemaInfos)
Store AIXM schema infos for global use.
|
void |
setCurrentProcessConfig(ProcessConfiguration currentProcessConfig) |
void |
setParameter(String k1,
String s1) |
void |
setParameter(String t,
String k1,
String s1) |
void |
setReplaceValue(String k1,
String s1) |
ProcessMode |
setTargetMode(String tn,
ProcessMode mode) |
boolean |
skipSchema(Target target,
PackageInfo pi) |
String |
stereotypeAlias(String alias)
Retrieves the wellknown stereotype to which the given alias maps, or
null if no such mapping exists. |
Stereotypes |
stereotypesFactory() |
Stereotypes |
stereotypesFactory(Stereotypes stereotypes) |
String |
tagAlias(String alias)
Retrieves the wellknown tag to which the given alias maps, or
null if no such mapping exists. |
TaggedValues |
taggedValueFactory() |
TaggedValues |
taggedValueFactory(int size) |
TaggedValues |
taggedValueFactory(TaggedValues original) |
TaggedValues |
taggedValueFactory(TaggedValues original,
String tagList) |
String |
targetClassName(String rule) |
ProcessMapEntry |
targetMapEntry(String type,
String rule) |
ProcessMode |
targetMode(String targetClassName) |
Vector<String> |
targets() |
MapEntry |
typeMapEntry(String k1,
String k2) |
boolean |
useStringInterning() |
String |
versionOfPackage(String k1) |
String |
xsdOfPackage(String k1) |
public static final String JAXP_SCHEMA_LANGUAGE
public static final String JAXP_SCHEMA_SOURCE
public static final String W3C_XML_SCHEMA
public static final String W3C_RDF
public static final String W3C_RDFS
public static final String W3C_OWL
public static final String W3C_OWL2XML
public static final String DC
public static final String OGC_GEOSPARQL
public static final String W3C_SKOS
public static final String SCRS_NS
public static final String SCAI_NS
public static final String SCHEMATRON_NS
public static final String DGIWGSP_NSABR
public static final String DGIWGSP_NS
public static final String GMLSF_NSABR
public static final String GMLSF_NS
public static final String DEF_NS
public static final String XTRASERVER_NS
public static final String GDBDOC_NS
public static final String TargetXmlSchemaClass
public static final String TargetFOL2SchematronClass
public static final String TargetJsonSchemaClass
public static final String TargetFeatureCatalogueClass
public static final String TargetOWLISO19150Class
public static final String TargetRDFClass
public static final String TargetSQLClass
public static final String TargetArcGISWorkspaceClass
public static final String TargetReplicationSchemaClass
public static final String TargetApplicationSchemaMetadata
public static final String TargetModelExport
public static final String TargetProfileTransferEA
public static final String TargetCDB
public static final String ISO19136_2007
public static final String ISO19139_2007
public static final String ISO19136_2007_SHAPECHANGE_1_0
public static final String ISO19136_2007_INSPIRE
public static final String ISO19136_2007_NO_GML
public static final String ISO19150_2014
public static final String SQL
public static final String SWECOMMON2
public static final String NOT_ENCODED
public static final String GSIP_ENC
public static final String[] classStereotypes
public static final String[] assocStereotypes
public static final String[] propertyStereotypes
public static final String[] packageStereotypes
public static final String[] depStereotypes
public static final String CRLF
public static final int NONE
public static final int ORACLE10
public static final int POSTGIS
public static final int GDB
public static final int GLOBAL
public static final int LOCAL
public static final int UNKNOWN
public static final int FEATURE
public static final int CODELIST
public static final int ENUMERATION
public static final int MIXIN
public static final int DATATYPE
public static final int OBJECT
public static final int GMLOBJECT
public static final int BASICTYPE
public static final int UNION
public static final int OKSTRAKEY
public static final int OKSTRAFID
public static final int FEATURECONCEPT
public static final int ATTRIBUTECONCEPT
public static final int VALUECONCEPT
public static final int AIXMEXTENSION
public static final int ROLECONCEPT
public static final String ELEMENT_NAME_KEY_FOR_DIAGRAM_MATCHING
public static final String IMAGE_INCLUSION_CLASS_REGEX
public static final String IMAGE_INCLUSION_PACKAGE_REGEX
public static final String INPUTELEMENTID
public static final String PARAM_INPUT_EXCLUDED_PACKAGES
public static final String PARAM_CONSTRAINT_EXCEL_FILE
public static final String PARAM_IGNORE_ENCODING_RULE_TVS
public static final String PARAM_ONLY_DEFERRABLE_OUTPUT_WRITE
public static final String PARAM_USE_STRING_INTERNING
public static final String PARAM_LANGUAGE
public static final String PARAM_PROHIBIT_LOADING_CLASSES_WITH_STATUS_TV
Required / Optional: optional
Type: String (comma separated list of values)
Default Value: notValid, retired, superseded
Explanation: Comma separated list of values that, if one of them is being set as the 'status' tagged value of a class, will lead to the class not being loaded.
Applies to Rule(s): none – default behavior
public static final String[] DEFAULT_FOR_PROHIBIT_LOADING_CLASSES_WITH_STATUS_TV
protected Set<String> prohibitedStatusValuesWhenLoadingClasses
public static final String PARAM_SKIP_SEMANTIC_VALIDATION_OF_CONFIG
public static final String PARAM_TAGGED_VALUE_IMPL
public static final String PARAM_DONT_CONSTRUCT_ASSOCIATION_NAMES
public static final String PARAM_LOAD_CONSTRAINT_FOR_SEL_SCHEMAS_ONLY
true
if constraints shall only
be loaded for classes and properties from the schemas selected for
processing (and ignoring all constraints from other packages).
Don't make use of this parameter if one of the classes from the selected schema packages extends another class from an external package (e.g. an ISO package) and needs to inherit constraints from that class!
This parameter is primarily a convenience mechanism to avoid loading and parsing constraints from external packages (especially ISO packages) that are irrelevant for processing. So on the one hand this can speed up model loading. On the other hand, it can prevent messages about constraints that were parsed from the elements of an external package from appearing in the log.
public String xmlNamespaceDefault
public String xmlNamespaceAbbreviationDefault
public String appSchemaVersion
public String configFile
public String GML_NS
public static String GMLEXR_NS
public String gmlVersion
public boolean sortedSchemaOutput
public boolean roseBugFixDuplicateGlobalDataTypes
public boolean eaBugFixWrongID
public boolean eaBugFixPublicPackagesAreMarkedAsPrivate
public boolean eaIncludeExtentsions
public boolean argoBugFixMissingDOCTYPE
public static final String DEFAULT_TMP_DIR_PATH
public static final String TMP_DIR_PATH_PARAM
protected File tmpDir
protected HashMap<String,ProcessMode> fTargets
ProcessMode
protected HashMap<String,String> fReplace
protected HashMap<String,MapEntry> fBaseMap
Value: MapEntry with:
protected Map<String,ProcessMapEntry> targetMapEntryByTypeRuleKey
protected HashMap<String,String> fStereotypeAliases
protected HashMap<String,String> fDescriptorSources
public static final String DERIVED_DOCUMENTATION_DEFAULT_TEMPLATE
public static final String DERIVED_DOCUMENTATION_DEFAULT_NOVALUE
public static final String LF
public static final String DERIVED_DOCUMENTATION_INSPIRE_TEMPLATE
protected HashMap<String,MapEntry> fNamespaces
key: namespace abbreviation / prefix; value: MapEntry (arg1: namespace, arg2: location)
protected HashMap<String,MapEntry> fPackages
key: package name
value: MapEntry with:
protected HashMap<String,String> fSchemaLocations
key: namespace, value: location
protected HashSet<String> fAllRules
protected HashMap<String,String> fExtendsEncRule
protected String extractSeparator
protected String definitionSeparator
protected String descriptionSeparator
protected String nameSeparator
protected boolean constraintCreationForProperties
protected boolean ignoreEncodingRuleTaggedValues
protected boolean useStringInterning
protected boolean dontConstructAssociationNames
protected String language
protected HashSet<Integer> classTypesToCreateConstraintsFor
protected InputConfiguration inputConfig
protected ProcessConfiguration currentProcessConfig
protected List<TargetConfiguration> inputTargetConfigs
protected List<TransformerConfiguration> inputTransformerConfigs
protected File imageTmpDir
protected File linkedDocTmpDir
public String extractSeparator()
public String definitionSeparator()
public String descriptionSeparator()
public String nameSeparator()
public boolean getDescriptorsFromSupertypes()
public boolean getDescriptorsFromDepedency()
public boolean isConstraintCreationForProperties()
public boolean isAIXM()
true
if the input configuration element has
parameter 'isAIXM' with value 'true' (ignoring case), else
false
.public boolean isLoadConstraintsForSelectedSchemasOnly()
public boolean isOnlyDeferrableOutputWrite()
true
if the input configuration element has
parameter "onlyDeferrableOutputWrite" with value
'true' (ignoring case), else false
.public boolean ignoreEncodingRuleTaggedValues()
public boolean isClassTypeToCreateConstraintsFor(int classCategory)
protected void addTypeMapEntry(String k1, String k2, String s1, String s2)
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)
public void addTargetTypeMapEntry(ProcessMapEntry pme)
public ProcessMapEntry targetMapEntry(String type, String rule)
protected void addBaseMapEntry(String k1, String k2, String s1, String s2, String s3)
The key is k1 + "#" + k2.
The value is a MapEntry with:
k1
- typek2
- xsdEncodingRules1
- ("direct")s2
- xmlTypes3
- xmlTypeType+"/"+xmlTypeContentpublic MapEntry baseMapEntry(String k1, String k2)
k1
- type namek2
- encoding rule namepublic MapEntry baseMapEntry(String k1, String k2, String xmlTypeType, String xmlTypeContent)
k1
- type namek2
- encoding rule namexmlTypeType
- Identifies, if the xmlType is “simple” or “complex”.xmlTypeContent
- Identifies, if the content of the xmlType is “simple” or
“complex”.protected void addElementMapEntry(String k1, String k2, String s1, String s2, String s3)
protected void addTarget(String k1, ProcessMode k2)
public ProcessMode targetMode(String targetClassName)
public ProcessMode setTargetMode(String tn, ProcessMode mode)
public String parameter(String k1)
k1
- null
if the parameter does not existpublic String parameter(String t, String k1)
t
- class name; can be null
to search for an input
parameterk1
- parameter namenull
if no value was foundpublic boolean hasParameter(String className, String parameterName)
className
- Fully qualified name of the target class for which the
existence of the parameter with given name shall be
determined; can be null
to check the existence of
an input parameterparameterName
- name of the parameter to checktrue
if the parameter exists (i.e., is set in the
configuration), else false
public String parameterAsString(String className, String parameterName, String defaultValue, boolean allowNonEmptyTrimmedStringValue, boolean trimValue)
className
- Fully qualified name of the target class for which the values
of the parameter with given name shall be searched; can be
null
to search for an input parameterparameterName
- name of the parameter to retrieve the value fromdefaultValue
- value that will be returned if no valid value was found; NOTE:
null
is NOT convertedallowNonEmptyTrimmedStringValue
- true
if the parameter value may be empty if it
was trimmed, else false
trimValue
- true
if leading and trailing whitespace shall be
removed from the parameter valuenull
public List<String> parameterAsStringList(String className, String parameterName, String[] defaultValues, boolean omitEmptyStrings, boolean trimResults)
className
- Fully qualified name of the target class for which the values
of the parameter with given name shall be searched; can be
null
to search for an input parameterparameterName
- name of the parameter to retrieve the comma separated values
fromdefaultValues
- values that will be returned if no values were found;
null
is converted to an empty list of stringsomitEmptyStrings
- true
if values may NOT be empty if they were
trimmed, else false
trimResults
- true
if leading and trailing whitespace shall be
removed from a valuenull
public int parameterAsInteger(String className, String parameterName, int defaultValue)
className
- Fully qualified name of the target class for which the value
of the parameter with given name shall be searched; can be
null
to search for an input parameterparameterName
- name of the parameter to retrieve the value fromdefaultValue
- value that will be returned if no valid value was found (i.e.,
if the parameter value could not be parsed to an int)public boolean parameterAsBoolean(String className, String parameterName, boolean defaultValue)
className
- Fully qualified name of the target class for which the boolean
value of the parameter with given name shall be searched; can
be null
to search for an input parameterparameterName
- name of the parameter to retrieve the boolean value fromdefaultValue
- value that will be returned if no valid value was found (i.e.,
if the parameter value could not be parsed to a boolean)true
if the
parameter was set and is equal, ignoring case, to the string
"true"), or the default value if the parameter was not set or did
not contain a valid value.public String[] parameterNamesByRegex(String t, String regex)
protected void addStereotypeAlias(String alias, String wellknown)
alias
- - the stereotype alias (in lower case)wellknown
- - the wellknown stereotype (in lower case) to which the alias
mapspublic String stereotypeAlias(String alias)
null
if no such mapping exists. The alias will automatically
be converte to lower case to look up the mapping (the according key
values in the stereotype map have also been converted to lower case).alias
- stereotype for which a mapping to a wellknown stereotype is
being looked upnull
if no such mapping existsprotected void addTagAlias(String alias, String wellknown)
alias
- - the tag alias (will be converted to lower case)wellknown
- - the tag to which the alias mapspublic String tagAlias(String alias)
null
if no such mapping exists. The alias will automatically
be converted to lower case to look up the mapping.alias
- tag for which a mapping to a wellknown tag is being looked upnull
if no such mapping existsprotected void addDescriptorSource(String descriptor, String source)
descriptor
- - the descriptor (in lower case)source
- - the source (in lower case)public String descriptorSource(String descriptor)
null
if no such mapping exists. The alias will automatically
be converte to lower case to look up the mapping (the according key
values in the stereotype map have also been converted to lower case).descriptor
- - the descriptor (in lower case)null
if no such mapping existsprotected void addNamespace(String k1, String s1, String s2)
k1
- namespace abbreviation / prefixs1
- namespaces2
- locationprotected void addRule(String rule)
public boolean hasRule(String rule)
public boolean encRuleExists(String encRule)
public void addSchemaLocation(String k1, String s1)
k1
- namespaces1
- locationprotected MapEntry namespace(String k1)
k1
- nsabr (namespace abbreviation / prefix)null
if the nsabr is unknownpublic String nsabrForNamespace(String ns)
null
if the configuration
does not contain information about the namespace.ns
- public String fullNamespace(String k1)
k1
- nsabr (namespace abbreviation / prefix)public String nsabrOfPackage(String packageName)
packageName
- name of a packagenull
if
no such entry existspublic String schemaLocationOfNamespace(String k1)
k1
- - namespacenull
public void loadConfiguration() throws ShapeChangeAbortException
ShapeChangeAbortException
public void resetFields()
public String normalizeStereotype(String stereotype)
public String normalizeTag(String tag)
public boolean skipSchema(Target target, PackageInfo pi)
public List<TargetConfiguration> getInputTargetConfigs()
public List<TransformerConfiguration> getInputTransformerConfigs()
public void setCurrentProcessConfig(ProcessConfiguration currentProcessConfig)
currentProcessConfig
- the currentProcessConfig to setpublic ProcessConfiguration getCurrentProcessConfig()
public List<TargetConfiguration> getTargetConfigurations()
public Map<String,TransformerConfiguration> getTransformerConfigs()
public String getInputId()
INPUTELEMENTID
field), if the attribute was not set in
the configuration.public File getTmpDir()
public File imageTmpDir()
public File linkedDocumentsTmpDir()
public Set<String> getExcludedPackages()
null
).public void setAIXMSchemaInfos(Map<String,AIXMSchemaInfos.AIXMSchemaInfo> schemaInfos)
schemaInfos
- public Map<String,AIXMSchemaInfos.AIXMSchemaInfo> getAIXMSchemaInfos()
public String language()
public boolean useStringInterning()
public boolean dontConstructAssociationNames()
public String internalize(String string)
null
is
simply returned.string
- public String[] internalize(String[] array)
array
- public TaggedValues taggedValueFactory()
public TaggedValues taggedValueFactory(int size)
public TaggedValues taggedValueFactory(TaggedValues original, String tagList)
original
- tagList
- null
public TaggedValues taggedValueFactory(TaggedValues original)
original
- null
public Stereotypes stereotypesFactory()
public Stereotypes stereotypesFactory(Stereotypes stereotypes)
public Set<String> prohibitedStatusValuesWhenLoadingClasses()
null
public InputConfiguration getInputConfig()
Copyright © 2018. All rights reserved.