public class ApplicationSchemaMetadata extends Object implements SingleTarget, MessageSource
Modifier and Type | Field and Description |
---|---|
protected static Document |
document |
protected static Map<String,ProcessMapEntry> |
mapEntryByType |
static String |
NS |
protected static Element |
root |
static String |
RULE_ALL_IDENTIFY_PROFILES
This rule identifies the names of all the profiles to which elements
(classes and properties) in selected schemas belong.
|
static int |
STATUS_RULE_ALL_IDENTIFY_PROFILES |
Constructor and Description |
---|
ApplicationSchemaMetadata() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(Element e,
String name,
String value)
Add attribute to an element
|
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.
|
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) ). |
protected void |
processMetadata(Element appSchemaElement) |
protected void |
processProfilesMetadata(Element appSchemaElement) |
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 r)
Instructs the target to output the processing results.
|
public static final String NS
public static int STATUS_RULE_ALL_IDENTIFY_PROFILES
public static final String RULE_ALL_IDENTIFY_PROFILES
protected static Document document
protected static Element root
protected static Map<String,ProcessMapEntry> mapEntryByType
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()
protected void processMetadata(Element appSchemaElement)
protected void processProfilesMetadata(Element appSchemaElement)
protected void addAttribute(Element e, String name, String value)
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!
public String getTargetName()
getTargetName
in interface Target
public String message(int mnr)
MessageSource
message
in interface MessageSource
public void writeAll(ShapeChangeResult r)
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()
public void reset()
SingleTarget
The Converter
will reset SingleTargets whenever it processes a
target configuration.
reset
in interface SingleTarget
Copyright © 2018. All rights reserved.