public class CodelistDictionariesML extends Object implements Target
Modifier and Type | Field and Description |
---|---|
protected String |
defaultLang |
protected String |
dlma |
protected String |
dlme |
protected String |
GCO_NSABBR |
protected String |
GMD_NSABBR |
protected String |
GML_NSABBR |
protected String |
GMX_NSABBR |
protected String[] |
langs |
protected Options |
options |
protected ShapeChangeResult |
result |
protected String |
sLangs |
protected String |
XLINK_NSABBR |
Constructor and Description |
---|
CodelistDictionariesML()
Ctor
|
protected final String dlma
protected final String dlme
protected String defaultLang
protected final String GML_NSABBR
protected final String GMX_NSABBR
protected final String GMD_NSABBR
protected final String GCO_NSABBR
protected final String XLINK_NSABBR
protected String sLangs
protected String[] langs
protected ShapeChangeResult result
protected Options options
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 addAttribute(Document document, Element e, String name, String value)
protected Document createDocument()
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 void createDictionaryProperties(Element ec, ClassInfo ci, Document cDocument)
protected Element createMlDocumentNamespace(String gmlid, Document cDocument)
protected void addDocumentNamespaceAttributes(Element ec, Document cDocument)
protected void addDocumentSchemaLocAttribute(Element ec, Document cDocument)
protected Element createCodelistDescription(String lang, ClassInfo ci, Document cDocument)
protected Element createCodelistIdentifier(String lang, ClassInfo ci, Document cDocument)
protected Element createCodelistName(String lang, ClassInfo ci, Document cDocument)
protected Element createEntry(Document lDocument, ClassInfo ci, PropertyInfo propi, boolean local)
protected HashSet<Element> createEntryAlternLangCode(Document lDocument, ClassInfo ci, PropertyInfo propi)
lDocument
- ci
- propi
- protected Element createEntryDefinitionContent(Document lDocument, ClassInfo ci, PropertyInfo propi, HashSet<Element> eas)
protected Element createEntryDefinition(String lang, Document lDocument, ClassInfo ci, PropertyInfo propi, boolean altEntryLangsExist)
protected Element createEntryDescription(String lang, Document lDocument, ClassInfo ci, PropertyInfo propi)
protected Element createEntryIdentifier(String lang, Document lDocument, ClassInfo ci, PropertyInfo propi)
protected Element createEntryName(String lang, Document lDocument, ClassInfo ci, PropertyInfo propi)
protected String createCodesCodeSpaceContent(ClassInfo ci, PropertyInfo propi)
protected String createEntryIdentifier(String lang, ClassInfo ci, PropertyInfo propi)
public String getTargetName()
getTargetName
in interface Target
Copyright © 2017. All rights reserved.