Constructor and Description |
---|
XmlSchema() |
Modifier and Type | Method and Description |
---|---|
static boolean |
classCanBeReferenced(ClassInfo ci)
Find out whether the given class is can carry an id and can hence be
referenced by means of xlink:href.
|
static boolean |
classHasObjectElement(ClassInfo ci)
Find out whether the given class is represented by means of an XML
element construct.
|
protected boolean |
createXSDs(PackageInfo pi,
XsdDocument xsdcurr)
Create XML Schema documents
|
String |
getTargetName() |
static boolean |
implementedAsXmlAttribute(PropertyInfo pi) |
void |
initialise(PackageInfo p,
Model m,
Options o,
ShapeChangeResult r,
boolean diagOnly)
Allows a target to perform the necessary initialization routines before
processing.
|
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 |
processDependecies(PackageInfo pi)
Process dependency relationships with other packages
|
void |
write() |
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()
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!
protected boolean createXSDs(PackageInfo pi, XsdDocument xsdcurr) throws ShapeChangeAbortException
ShapeChangeAbortException
protected void processDependecies(PackageInfo pi) throws ShapeChangeAbortException
ShapeChangeAbortException
public String getTargetName()
getTargetName
in interface Target
public static boolean classHasObjectElement(ClassInfo ci)
ci
- ClassInfo of class to be inquiredpublic static boolean implementedAsXmlAttribute(PropertyInfo pi)
public static boolean classCanBeReferenced(ClassInfo ci)
ci
- ClassInfo of class to be inquiredCopyright © 2017. All rights reserved.