|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Target.JSON.JsonSchema
public class JsonSchema
Field Summary | |
---|---|
static int |
TARGET_JSONSCHEMA
|
Constructor Summary | |
---|---|
JsonSchema()
|
Method Summary | |
---|---|
int |
getTargetID()
|
void |
initialise(PackageInfo p,
Model m,
Options o,
ShapeChangeResult r,
boolean diagOnly)
Initialize target generation for the JSON Schema output. |
String |
message(int mnr)
This method returns messages belonging to the JSON Schema target by their message number. |
protected String |
messageText(int mnr)
This is the message text provision proper. |
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) ). |
void |
write()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TARGET_JSONSCHEMA
Constructor Detail |
---|
public JsonSchema()
Method Detail |
---|
public void initialise(PackageInfo p, Model m, Options o, ShapeChangeResult r, boolean diagOnly) throws ShapeChangeAbortException
Initialize target generation for the JSON Schema output.
initialise
in interface Target
pi
- UML Package represented by PackageInfo interfacem
- Model represented by Model interfacer
- Result class for diagnostics outputdiagOnly
- Flag requesting to suppress any output
ShapeChangeAbortException
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!
process
in interface Target
public void write()
write
in interface Target
public String message(int mnr)
This method returns messages belonging to the JSON Schema target by their message number. The organization corresponds to the logic in module ShapeChangeResult. All functions in that class, which require an message number can be redirected to the function at hand.
message
in interface MessageSource
mnr
- Message number
protected String messageText(int mnr)
mnr
- Message number
public int getTargetID()
getTargetID
in interface Target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |