Modifier and Type | Field and Description |
---|---|
Document |
document |
protected String |
dtd |
protected SortedMap<String,AssociationInfo> |
fAssociations
Hash table for associations
|
protected SortedMap<String,ClassInfo> |
fClasses
Hash table for all classes and classnames
|
protected SortedMap<String,Multiplicity> |
fClassesRoseHiddenCardinality |
SortedMap<String,String> |
fClassesRoseHiddenLabels |
protected SortedMap<String,ClassInfo> |
fClassnames |
protected SortedMap<String,PackageInfo> |
fPackages
Hash table for all relevant packages
|
protected SortedMap<String,Vector<PropertyInfo>> |
fRoles |
protected SortedMap<String,Element> |
fSchemas
Hash table for all root schema packages
|
protected SortedMap<String,Stereotypes> |
fStereotypes
Hash table for all relevant stereotypes
|
protected SortedMap<String,SortedSet<String>> |
fSubtypes
Hash table for all relevant subtypes of a pure abstract class
|
protected SortedMap<String,SortedSet<String>> |
fSupertypes
Hash table for all relevant supertypes of a feature or data type
|
protected SortedMap<String,TaggedValues> |
fTaggedValues
Hash table for all relevant tagged values
|
protected SortedMap<String,Element> |
fTypes
Hash table for all potential types
|
protected HashMap<String,UUID> |
fUUIDs
Hash table for all package uuids
|
Options |
options |
ShapeChangeResult |
result |
allowedTags, arcgisTags, gmlTags, iso19109Tags, jsonTags, postprocessed, shapeChangeTags
Constructor and Description |
---|
Xmi10Document() |
Modifier and Type | Method and Description |
---|---|
protected String |
attributeOfProperty(Element elmt,
String child,
String att)
Get value of attribute node.
|
protected Multiplicity |
cardinalityFromString(String multiplicityRanges) |
String |
characterEncoding() |
ClassInfo |
classById(String id) |
ClassInfo |
classByName(String nam) |
SortedSet<ClassInfo> |
classes(PackageInfo pi)
Return all ClassInfo objects contained in the given package and in sub-
packages, which belong to the same targetNamespace as the given package.
|
protected void |
cleanupDOM()
Delete parts of the DOM not relevant for the conversion, i.e. the
|
protected Element |
elementOfProperty(Element elmt,
String child)
Get element representing a property.
|
protected Element |
firstChildElement(Element elmt)
Get first child element.
|
protected Element |
getElementById(String id)
Get element representing a property.
|
protected Vector<String> |
getOwnerId(Element e)
Some applications use ownedElement to attach stereotypes
|
protected String |
getOwnerIdAsString(Element e)
Get the id of the containing package of a class
|
protected String |
idOfProperty(Element elmt,
String child)
Get id (or idref) of an element.
|
protected String |
idrefValue(Node n)
get value of idref reference
|
protected Vector<String> |
idsOfProperty(Element elmt,
String child)
Get ids (or idrefs) of an element.
|
protected void |
initAssociations()
Initialize map of asscoiations
|
protected void |
initClasses()
Process all classes and generate the XML Schema "code"
|
void |
initialise(ShapeChangeResult r,
Options o,
String xmifile)
Load the application schema(s).
|
protected void |
initPackages()
Process all packages in the application schema
|
protected void |
initStereotypesMap()
Initialize map of well-known stereotypes
|
protected void |
initSubSupertypesMap()
Initialize maps for supertypes of a feature or data type and subtypes of
a pure abstract class
|
protected void |
initTaggedValuesMap()
Initialize map for well-known tagged values
|
protected void |
initTypesMap()
Initialize map of types
|
protected boolean |
isOwnerOfEnumeration(Element elmt)
Needed for MagicDraw XMI 1.0 / UML 1.4 export
|
protected boolean |
notAReference(Element e)
Verify that an element is a model element and not just a reference to one.
|
void |
open(String xmlfile) |
Options |
options()
Return options and configuration object.
|
PackageInfo |
packageById(String id) |
SortedSet<PackageInfo> |
packages() |
ShapeChangeResult |
result()
Return result object for error reporting.
|
void |
shutdown() |
String |
taggedValue(String idref,
String tag)
Find tagged value for a node
|
TaggedValues |
taggedValues(String idref) |
protected String |
textOfProperty(Element e,
String property)
Get value of text node.
|
protected String |
textValue(Node n)
get value of text child node
|
protected void |
verify()
Verify XMI version
|
protected boolean |
visible(Element e)
Check visibility of an UML model element for the mapping.
|
allPackagesFromSelectedSchemas, classByIdOrName, initialise, isInSelectedSchemas, loadInformationFromExternalSources, normalizeTaggedValue, packages, postprocessAfterLoadingAndValidate, schemaPackage, schemas, selectedSchemaClasses, selectedSchemas
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allPackagesFromSelectedSchemas, classByIdOrName, initialise, isInSelectedSchemas, loadInformationFromExternalSources, normalizeTaggedValue, packages, postprocessAfterLoadingAndValidate, schemaPackage, schemas, selectedSchemaClasses, selectedSchemas
public Document document
protected String dtd
public ShapeChangeResult result
public Options options
protected SortedMap<String,TaggedValues> fTaggedValues
protected SortedMap<String,Stereotypes> fStereotypes
protected SortedMap<String,SortedSet<String>> fSupertypes
protected SortedMap<String,SortedSet<String>> fSubtypes
protected SortedMap<String,AssociationInfo> fAssociations
protected SortedMap<String,Vector<PropertyInfo>> fRoles
protected SortedMap<String,PackageInfo> fPackages
protected SortedMap<String,Multiplicity> fClassesRoseHiddenCardinality
public Options options()
public ShapeChangeResult result()
public void initialise(ShapeChangeResult r, Options o, String xmifile) throws ShapeChangeAbortException
initialise
in interface Model
ShapeChangeAbortException
public void open(String xmlfile) throws ShapeChangeAbortException
ShapeChangeAbortException
public String characterEncoding()
characterEncoding
in interface Model
protected void verify() throws ShapeChangeAbortException
ShapeChangeAbortException
protected void cleanupDOM()
protected String idOfProperty(Element elmt, String child)
protected Element elementOfProperty(Element elmt, String child)
protected Vector<String> idsOfProperty(Element elmt, String child)
protected String attributeOfProperty(Element elmt, String child, String att)
protected boolean visible(Element e)
public TaggedValues taggedValues(String idref)
idref
- identifies a model elementprotected Vector<String> getOwnerId(Element e)
protected String getOwnerIdAsString(Element e)
protected boolean notAReference(Element e)
protected boolean isOwnerOfEnumeration(Element elmt)
protected void initTaggedValuesMap()
protected void initStereotypesMap()
protected void initSubSupertypesMap()
protected void initTypesMap() throws ShapeChangeAbortException
ShapeChangeAbortException
protected void initAssociations() throws ShapeChangeAbortException
ShapeChangeAbortException
protected void initPackages() throws ShapeChangeAbortException
ShapeChangeAbortException
protected void initClasses() throws ShapeChangeAbortException
ShapeChangeAbortException
public PackageInfo packageById(String id)
packageById
in interface Model
null
if
such a class was not foundpublic ClassInfo classByName(String nam)
classByName
in interface Model
null
if
such a class was not foundpublic SortedSet<ClassInfo> classes(PackageInfo pi)
Model
protected Multiplicity cardinalityFromString(String multiplicityRanges)
public SortedSet<PackageInfo> packages()
packages
in interface Model
PackageInfo
objects contained in the model; can be
empty but not null
.Copyright © 2018. All rights reserved.