de.interactive_instruments.ShapeChange.Model
Class PackageInfoImpl

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.InfoImpl
      extended by de.interactive_instruments.ShapeChange.Model.PackageInfoImpl
All Implemented Interfaces:
Info, PackageInfo
Direct Known Subclasses:
GenericPackageInfo, PackageInfoEA, PackageInfoGSIP, PackageInfoXmi10

public abstract class PackageInfoImpl
extends InfoImpl
implements PackageInfo


Field Summary
protected  List<ImageMetadata> diagrams
           
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation
 
Constructor Summary
PackageInfoImpl()
           
 
Method Summary
 String encodingRule(String platform)
          Return the encoding rule relevant on the package, given the platform
 String fullName()
          Fully qualified UML name.
 List<ImageMetadata> getDiagrams()
           
 String gmlProfileSchema()
          This is supposed to return the value of the tag "gmlProfileSchema", or null in case such a tag does not exist on the package.
 boolean isAppSchema()
          Determine whether the package represents an 'application schema'.
 boolean isSchema()
          Note: Additional support for deprecated tag "xmlNamespace".
protected  String mapPackageNameToFilename(String s)
          Derive a file name from the package name.
 void postprocessAfterLoadingAndValidate()
          1.
 String schemaId()
          Return the id of the rootPackage, "(null)" on failure.
 void setDiagrams(List<ImageMetadata> diagrams)
           
 String targetNamespace()
          Determine the targetNamespace of the GML applications schema to be generated.
 String version()
          Determine the version attribute to be applied to the GML application schema.
 String xmlns()
          Determine the namespace abbreviation of the GML applications schema to be generated.
 String xsdDocument()
          Determine the file name of the xsd document to be generated from the package.
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.InfoImpl
aliasName, definition, description, documentation, matches, stereotype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.PackageInfo
containedPackages, owner, rootPackage, supplierIds
 
Methods inherited from interface de.interactive_instruments.ShapeChange.Model.Info
aliasName, definition, description, documentation, id, matches, model, name, options, result, stereotype, stereotypes, taggedValue, taggedValues, taggedValues
 

Field Detail

diagrams

protected List<ImageMetadata> diagrams
Constructor Detail

PackageInfoImpl

public PackageInfoImpl()
Method Detail

encodingRule

public String encodingRule(String platform)
Return the encoding rule relevant on the package, given the platform

Specified by:
encodingRule in interface Info
Overrides:
encodingRule in class InfoImpl
Returns:
the encoding rule relevant on the element

targetNamespace

public String targetNamespace()
Description copied from interface: PackageInfo
Determine the targetNamespace of the GML applications schema to be generated. The item is used from the configuration or - if not present there - from the tagged value either on this package or one of its ancestors.

Specified by:
targetNamespace in interface PackageInfo
See Also:
PackageInfo.targetNamespace()

xmlns

public String xmlns()
Description copied from interface: PackageInfo
Determine the namespace abbreviation of the GML applications schema to be generated. The item is used from the configuration or - if not present there - from the tagged value either on this package or one of its ancestors.

Specified by:
xmlns in interface PackageInfo
See Also:
PackageInfo.xmlns()

mapPackageNameToFilename

protected String mapPackageNameToFilename(String s)
Derive a file name from the package name.


xsdDocument

public String xsdDocument()
Determine the file name of the xsd document to be generated from the package. This is either configured explicitly for the package or is otherwise obtained from the tagged value 'xsdDocument' on the package. If none of these are found and if the package is an application schema package, the file name is derived from the package name.

Specified by:
xsdDocument in interface PackageInfo

gmlProfileSchema

public String gmlProfileSchema()
This is supposed to return the value of the tag "gmlProfileSchema", or null in case such a tag does not exist on the package.

Specified by:
gmlProfileSchema in interface PackageInfo

version

public String version()
Description copied from interface: PackageInfo
Determine the version attribute to be applied to the GML application schema. It is taken either from the configuration or from a tagged value on this package or any of its ancestors.

Specified by:
version in interface PackageInfo
See Also:
PackageInfo.version()

isAppSchema

public boolean isAppSchema()
Description copied from interface: PackageInfo
Determine whether the package represents an 'application schema'. The package is regarded an 'application schema', if it carries a stereotype with normalized name "application schema".

Specified by:
isAppSchema in interface PackageInfo
See Also:
PackageInfo.isAppSchema()

isSchema

public boolean isSchema()
Note: Additional support for deprecated tag "xmlNamespace".

Specified by:
isSchema in interface PackageInfo
See Also:
PackageInfo.isSchema()

schemaId

public String schemaId()
Return the id of the rootPackage, "(null)" on failure.

Specified by:
schemaId in interface PackageInfo

fullName

public String fullName()
Description copied from interface: Info
Fully qualified UML name.

Specified by:
fullName in interface Info

postprocessAfterLoadingAndValidate

public void postprocessAfterLoadingAndValidate()
Description copied from class: InfoImpl
1. Postprocess the model element to execute any actions that require that the complete model has been loaded. 2. Validate the model element against all applicable requirements and recommendations. All rules applicable to all model elements are validated here, the more specific rules are all validated in the subclasses.

Specified by:
postprocessAfterLoadingAndValidate in interface Info
Overrides:
postprocessAfterLoadingAndValidate in class InfoImpl

getDiagrams

public List<ImageMetadata> getDiagrams()
Specified by:
getDiagrams in interface PackageInfo
Returns:
metadata about the diagrams relevant for this package, null if no diagrams are available

setDiagrams

public void setDiagrams(List<ImageMetadata> diagrams)
Specified by:
setDiagrams in interface PackageInfo
Parameters:
diagrams - metadata about the diagrams relevant for this class


Copyright © 2015. All rights reserved.