public class GenericPackageInfo extends PackageInfoImpl implements MessageSource
Modifier and Type | Field and Description |
---|---|
protected SortedSet<GenericPackageInfo> |
childPi |
protected SortedSet<GenericClassInfo> |
classes |
protected String |
id |
protected boolean |
isSchema |
protected GenericModel |
model |
protected String |
name |
protected Options |
options |
protected GenericPackageInfo |
owner |
protected ShapeChangeResult |
result |
protected SortedSet<String> |
supplierIds |
protected String |
targetNamespace |
protected String |
version |
protected String |
xmlns |
protected String |
xsdDocument |
diagrams
descriptors, stereotypesCache, taggedValuesCache
Constructor and Description |
---|
GenericPackageInfo() |
Modifier and Type | Method and Description |
---|---|
void |
addClass(GenericClassInfo ci) |
void |
addPrefixToModelElementIDs(String prefix)
Adds the prefix to the 'id' of this package as well as the 'schemaId' (if
not
null ) and the 'supplierIds' (if not null ). |
SortedSet<PackageInfo> |
containedPackages() |
Set<GenericPackageInfo> |
getAllPackages(Set<GenericPackageInfo> set)
Provides the set of all packages in the package tree where this package
is the head.
|
SortedSet<GenericClassInfo> |
getClasses() |
void |
getEmptyPackages(Set<PackageInfo> containerForEmptyPackages) |
String |
id()
Return unique id of model element (unique within the model).
|
boolean |
isSchema()
Note: Additional support for deprecated tag "xmlNamespace".
|
String |
message(int mnr)
Return a message for a message number.
|
Model |
model() |
String |
name()
Obtain the name of the model element.
|
Options |
options() |
PackageInfo |
owner() |
ShapeChangeResult |
result() |
void |
setClasses(SortedSet<GenericClassInfo> genericClassInfos) |
void |
setContainedPackages(SortedSet<GenericPackageInfo> childPi) |
void |
setId(String id) |
void |
setIsSchema(boolean isSchema) |
void |
setModel(GenericModel model) |
void |
setName(String name) |
void |
setOptions(Options options) |
void |
setOwner(GenericPackageInfo owner) |
void |
setResult(ShapeChangeResult result) |
void |
setStereotype(String stereotype) |
void |
setStereotypes(Stereotypes stereotypeSet) |
void |
setSupplierIds(SortedSet<String> supplierIds) |
void |
setTaggedValues(TaggedValues taggedValues,
boolean updateFields) |
void |
setTargetNamespace(String targetNamespace)
Explicitly sets the target namespace for this package and all child
packages that are not application schema.
|
void |
setVersion(String version) |
void |
setXmlns(String xmlns) |
void |
setXsdDocument(String xsdDocument) |
SortedSet<String> |
supplierIds() |
String |
targetNamespace()
Determine the targetNamespace of the GML applications schema to be
generated.
|
String |
toString(String indent) |
void |
validateStereotypesCache()
Save the (normalized) stereotypes in the cache.
|
void |
validateTaggedValuesCache()
Create cache of stereotypes and tagged values
|
String |
version()
Determine the version attribute to be applied to the 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.
|
containedClasses, containedPackagesInSameTargetNamespace, encodingRule, fullName, fullNameInSchema, getDiagrams, gmlProfileSchema, isAppSchema, language, mapPackageNameToFilename, postprocessAfterLoadingAndValidate, rootPackage, schemaId, setDiagrams
aliasName, compareTo, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, descriptorSource, descriptorValues, documentation, examples, globalIdentifier, legalBasis, matches, primaryCode, removeTaggedValue, setDescriptors, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aliasName, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, documentation, examples, globalIdentifier, legalBasis, matches, primaryCode, removeTaggedValue, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
compareTo
protected Options options
protected ShapeChangeResult result
protected GenericModel model
protected String id
protected String name
protected String targetNamespace
protected String xmlns
protected String xsdDocument
protected String version
protected GenericPackageInfo owner
protected boolean isSchema
protected SortedSet<GenericPackageInfo> childPi
protected SortedSet<GenericClassInfo> classes
public SortedSet<PackageInfo> containedPackages()
containedPackages
in interface PackageInfo
()
public Set<GenericPackageInfo> getAllPackages(Set<GenericPackageInfo> set)
set
- public SortedSet<GenericClassInfo> getClasses()
public String id()
Info
public boolean isSchema()
PackageInfoImpl
isSchema
in interface PackageInfo
isSchema
in class PackageInfoImpl
PackageInfoImpl.isSchema()
public Model model()
model
in interface Info
Info.model()
public String name()
Info
name
in interface Info
Info.name()
public Options options()
options
in interface Info
Info.options()
public PackageInfo owner()
owner
in interface PackageInfo
PackageInfo.owner()
public ShapeChangeResult result()
result
in interface Info
Info.result()
public void setClasses(SortedSet<GenericClassInfo> genericClassInfos)
public void setContainedPackages(SortedSet<GenericPackageInfo> childPi)
childPi
- public void setId(String id)
id
- public void setIsSchema(boolean isSchema)
isSchema
- public void setModel(GenericModel model)
model
- public void setName(String name)
name
- public void setOptions(Options options)
options
- public void setOwner(GenericPackageInfo owner)
owner
- public void setResult(ShapeChangeResult result)
result
- public void validateStereotypesCache()
validateStereotypesCache
in interface Info
public void setStereotypes(Stereotypes stereotypeSet)
stereotypeSet
- public void setStereotype(String stereotype)
stereotype
- public void validateTaggedValuesCache()
Info
validateTaggedValuesCache
in interface Info
public void setTaggedValues(TaggedValues taggedValues, boolean updateFields)
taggedValues
- updateFields
- true if class fields should be updated based upon information
from given tagged values, else falsepublic void setTargetNamespace(String targetNamespace)
targetNamespace
- public void setVersion(String version)
version
- public void setXmlns(String xmlns)
xmlns
- public void setXsdDocument(String xsdDocument)
xsdDocument
- public SortedSet<String> supplierIds()
supplierIds
in interface PackageInfo
null
PackageInfo.supplierIds()
public void getEmptyPackages(Set<PackageInfo> containerForEmptyPackages)
public String targetNamespace()
PackageInfo
targetNamespace
in interface PackageInfo
targetNamespace
in class PackageInfoImpl
null
if
no target namespace is defined for the package or one of its
ancestorsPackageInfoImpl.targetNamespace()
public String version()
PackageInfo
version
in interface PackageInfo
version
in class PackageInfoImpl
null
if no version
information is availablePackageInfoImpl.version()
public String xmlns()
PackageInfo
xmlns
in interface PackageInfo
xmlns
in class PackageInfoImpl
null
if no such abbreviation is
definedPackageInfoImpl.xmlns()
public String xsdDocument()
PackageInfo
xsdDocument
in interface PackageInfo
xsdDocument
in class PackageInfoImpl
PackageInfoImpl.xsdDocument()
public void addClass(GenericClassInfo ci)
public void addPrefixToModelElementIDs(String prefix)
null
) and the 'supplierIds' (if not null
).
NOTE: this method is used by the FeatureCatalogue target to ensure that
IDs used in a reference model are unique to that model and do not get
mixed up with the IDs of the input model.prefix
- public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.