public class TargetOwlConfiguration extends TargetConfiguration
Constructor and Description |
---|
TargetOwlConfiguration(String className,
ProcessMode processMode,
Map<String,String> parameters,
Map<String,ProcessRuleSet> ruleSets,
Set<String> inputIds,
List<Namespace> namespaces,
Element advancedProcessConfigurations,
Map<String,List<RdfTypeMapEntry>> rdfTypeMapEntries,
Map<String,List<RdfPropertyMapEntry>> rdfPropertyMapEntries,
SortedMap<String,List<StereotypeConversionParameter>> stereotypeConversionParameters,
Map<String,List<TypeConversionParameter>> typeConversionParameters,
Map<String,List<PropertyConversionParameter>> propertyConversionParameters,
List<DescriptorTarget> descriptorTargets,
Map<ConstraintMapping.ConstraintType,ConstraintMapping> constraintMappings)
Creates a TargetOwlConfiguration.
|
Modifier and Type | Method and Description |
---|---|
ConstraintMapping |
getConstraintMapping(ConstraintMapping.ConstraintType type) |
List<DescriptorTarget> |
getDescriptorTargets() |
PropertyConversionParameter |
getPropertyConversionParameter(PropertyInfo pi) |
PropertyConversionParameter |
getPropertyConversionParameter(String propertyNameScopedToClass,
String schemaName)
Look up the conversion parameter for a property, given a combination of
the name of the class it belongs to and its name (example:
Feature1::att4), as well as the name of the schema the class belongs to.
|
RdfPropertyMapEntry |
getPropertyMapEntry(PropertyInfo pi) |
RdfPropertyMapEntry |
getPropertyMapEntry(String propertyNameScopedToClass,
String schemaName)
Look up the map entry for a property, given a combination of the name of
the class it belongs to and its name (example: Feature1::att4), as well
as the name of the schema the class belongs to.
|
SortedMap<String,List<StereotypeConversionParameter>> |
getStereotypeConversionParameters() |
TypeConversionParameter |
getTypeConversionParameter(ClassInfo ci) |
TypeConversionParameter |
getTypeConversionParameter(String typeName,
String schemaName)
Look up the conversion parameter for a type, given its name and name of
the schema it belongs to.
|
RdfTypeMapEntry |
getTypeMapEntry(ClassInfo ci) |
RdfTypeMapEntry |
getTypeMapEntry(String typeName) |
RdfTypeMapEntry |
getTypeMapEntry(String typeName,
String schemaName)
Look up the map entry for a type, given its name and name of the schema
it belongs to.
|
RdfTypeMapEntry |
getTypeMapEntryByTypeInfo(PropertyInfo pi) |
boolean |
hasConstraintMapping(ConstraintMapping.ConstraintType type) |
fullNamespace, getInputIds, getNamespaces, hasNamespaceWithAbbreviation, locationOfNamespace, nsabrForNamespace, toString
addTarget, addTransformer, getAdvancedProcessConfigurations, getAllRules, getClassName, getGmlVersion, getListParameterValue, getMapEntries, getMapEntry, getParameters, getParameterValue, getProcessMode, getRuleSets, getTargets, getTransformers, hasParameter, parameterAsBoolean, parameterAsString, parameterAsStringList, parameterAsStringList, setTargets, setTransformers
public TargetOwlConfiguration(String className, ProcessMode processMode, Map<String,String> parameters, Map<String,ProcessRuleSet> ruleSets, Set<String> inputIds, List<Namespace> namespaces, Element advancedProcessConfigurations, Map<String,List<RdfTypeMapEntry>> rdfTypeMapEntries, Map<String,List<RdfPropertyMapEntry>> rdfPropertyMapEntries, SortedMap<String,List<StereotypeConversionParameter>> stereotypeConversionParameters, Map<String,List<TypeConversionParameter>> typeConversionParameters, Map<String,List<PropertyConversionParameter>> propertyConversionParameters, List<DescriptorTarget> descriptorTargets, Map<ConstraintMapping.ConstraintType,ConstraintMapping> constraintMappings)
className
- The fully qualified name of the class implementing the target.processMode
- The execution mode of the target.parameters
- The target parameters. null
if no parameters were
declared in the configuration.ruleSets
- The encoding rule sets declared for the target.
null
if no rule sets were declared in the
configuration.inputIds
- Set of identifiers referencing either the input model or a
transformer.namespaces
- List of namespaces for the target. null
if no
namespaces were declared in the configuration.advancedProcessConfigurations
- the 'advancedProcessConfigurations' element from the
configuration of the process; null
if it is not
set thererdfTypeMapEntries
- rdfPropertyMapEntries
- stereotypeConversionParameters
- typeConversionParameters
- propertyConversionParameters
- descriptorTargets
- constraintMappings
- public RdfTypeMapEntry getTypeMapEntry(ClassInfo ci)
ci
- null
if
none is applicablepublic RdfTypeMapEntry getTypeMapEntry(String typeName)
public RdfTypeMapEntry getTypeMapEntryByTypeInfo(PropertyInfo pi)
pi
- null
if none is applicablepublic RdfTypeMapEntry getTypeMapEntry(String typeName, String schemaName)
typeName
- schemaName
- name of the schema to which the type belongs, may be
null
to only look for generic mappingsnull
if
none is applicablepublic RdfPropertyMapEntry getPropertyMapEntry(PropertyInfo pi)
public RdfPropertyMapEntry getPropertyMapEntry(String propertyNameScopedToClass, String schemaName)
propertyNameScopedToClass
- name of the property to look up an applicable map entry; the
name has a class name as prefix, separated by "::" (example:
Feature1::att4), may NOT be null
or emptyschemaName
- name of the schema to which the property belongs, may NOT be
null
or emptynull
if
none is applicablepublic TypeConversionParameter getTypeConversionParameter(ClassInfo ci)
public TypeConversionParameter getTypeConversionParameter(String typeName, String schemaName)
typeName
- schemaName
- name of the schema to which the type belongs, may be
null
to only look for generic conversion
parametersnull
if none is applicablepublic PropertyConversionParameter getPropertyConversionParameter(PropertyInfo pi)
public PropertyConversionParameter getPropertyConversionParameter(String propertyNameScopedToClass, String schemaName)
propertyNameScopedToClass
- name of the property to look up an applicable conversion
parameter; the name has a class name as prefix, separated by
"::" (example: Feature1::att4), may NOT be null
or emptyschemaName
- name of the schema to which the property belongs, may NOT be
null
or emptynull
if none is applicablepublic SortedMap<String,List<StereotypeConversionParameter>> getStereotypeConversionParameters()
null
), with key:
identifier of wellknown stereotype, and value: list of conversion
parameters with that identifier as 'wellknown' (the list can be
empty but not null
)public List<DescriptorTarget> getDescriptorTargets()
null
)public ConstraintMapping getConstraintMapping(ConstraintMapping.ConstraintType type)
null
public boolean hasConstraintMapping(ConstraintMapping.ConstraintType type)
type
- true
if the configuration contains a mapping for the
given constraint type, else false
Copyright © 2017. All rights reserved.