public abstract class ModelImpl extends Object implements Model
Modifier and Type | Field and Description |
---|---|
protected HashSet<String> |
allowedTags |
protected static String[] |
arcgisTags |
protected static String[] |
gmlTags |
protected static String[] |
iso19109Tags |
protected static String[] |
jsonTags |
protected boolean |
postprocessed |
protected static String[] |
shapeChangeTags |
Constructor and Description |
---|
ModelImpl() |
Modifier and Type | Method and Description |
---|---|
SortedSet<PackageInfo> |
allPackagesFromSelectedSchemas()
WARNING: This method is intended to be "final", but not actually declared
as such.
|
ClassInfo |
classByIdOrName(Type typeInfo) |
void |
initialise(ShapeChangeResult r,
Options o,
String repositoryFileNameOrConnectionString,
String user,
String pwd) |
boolean |
isInSelectedSchemas(ClassInfo ci)
WARNING: This method is intended to be "final", but not actually declared
as such.
|
void |
loadInformationFromExternalSources()
Load additional model information from external sources, such as
constraints.
|
String |
normalizeTaggedValue(String tag)
Tagged values normalization.
|
SortedSet<PackageInfo> |
packages(PackageInfo pkg)
WARNING: This method is intended to be "final", but not actually declared
as such.
|
void |
postprocessAfterLoadingAndValidate()
Execute postprocessing and validation checks after the model has been
loaded.
|
PackageInfo |
schemaPackage(ClassInfo ci)
Identifies the nearest schema or application schema package in which the
class is a child.
|
SortedSet<PackageInfo> |
schemas(String name)
Collect and return all PackageInfo objects tagged as being a schema.
|
SortedSet<? extends ClassInfo> |
selectedSchemaClasses() |
SortedSet<? extends PackageInfo> |
selectedSchemas()
Return all schemas that are selected using the relevant parameters:
appSchemaName, appSchemaNameRegex, appSchemaNamespaceRegex
NOTE: Transformations may change the set of selected schemas
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characterEncoding, classById, classByName, classes, initialise, options, packageById, packages, result, shutdown
protected boolean postprocessed
protected static String[] iso19109Tags
protected static String[] gmlTags
protected static String[] jsonTags
protected static String[] arcgisTags
protected static String[] shapeChangeTags
public void postprocessAfterLoadingAndValidate()
Model
postprocessAfterLoadingAndValidate
in interface Model
public void loadInformationFromExternalSources()
Model
loadInformationFromExternalSources
in interface Model
public SortedSet<? extends PackageInfo> selectedSchemas()
Model
NOTE: Transformations may change the set of selected schemas
selectedSchemas
in interface Model
PackageInfo.isSchema()
public SortedSet<? extends ClassInfo> selectedSchemaClasses()
selectedSchemaClasses
in interface Model
null
.public SortedSet<PackageInfo> allPackagesFromSelectedSchemas()
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
allPackagesFromSelectedSchemas
in interface Model
null
public String normalizeTaggedValue(String tag)
Model
normalizeTaggedValue
in interface Model
public void initialise(ShapeChangeResult r, Options o, String repositoryFileNameOrConnectionString, String user, String pwd) throws ShapeChangeAbortException
initialise
in interface Model
ShapeChangeAbortException
public boolean isInSelectedSchemas(ClassInfo ci)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
isInSelectedSchemas
in interface Model
ci
- Class to checktrue
if the given ClassInfo belongs to one of the
selected schemas, otherwise false
public PackageInfo schemaPackage(ClassInfo ci)
PackageInfo.isSchema()
, while an application schema is identified
using PackageInfo.isAppSchema()
.
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
schemaPackage
in interface Model
ci
- Class to checknull
.public SortedSet<PackageInfo> packages(PackageInfo pkg)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public SortedSet<PackageInfo> schemas(String name)
WARNING: This method is intended to be "final", but not actually declared as such. A depending project can thus extend the method, if absolutely necessary.
public ClassInfo classByIdOrName(Type typeInfo)
classByIdOrName
in interface Model
null
if such a class was not foundCopyright © 2018. All rights reserved.