public interface Model
Modifier and Type | Method and Description |
---|---|
SortedSet<PackageInfo> |
allPackagesFromSelectedSchemas() |
String |
characterEncoding() |
ClassInfo |
classById(String id) |
ClassInfo |
classByIdOrName(Type typeInfo) |
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.
|
void |
initialise(ShapeChangeResult r,
Options o,
String repositoryFileNameOrConnectionString) |
void |
initialise(ShapeChangeResult r,
Options o,
String repositoryFileNameOrConnectionString,
String username,
String password) |
boolean |
isInSelectedSchemas(ClassInfo ci) |
void |
loadInformationFromExternalSources()
Load additional model information from external sources, such as
constraints.
|
String |
normalizeTaggedValue(String tag)
Tagged values normalization.
|
Options |
options() |
PackageInfo |
packageById(String id) |
SortedSet<PackageInfo> |
packages() |
SortedSet<PackageInfo> |
packages(PackageInfo pkg) |
void |
postprocessAfterLoadingAndValidate()
Execute postprocessing and validation checks after the model has been
loaded.
|
ShapeChangeResult |
result() |
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
|
void |
shutdown() |
Options options()
ShapeChangeResult result()
void initialise(ShapeChangeResult r, Options o, String repositoryFileNameOrConnectionString) throws ShapeChangeAbortException
ShapeChangeAbortException
void initialise(ShapeChangeResult r, Options o, String repositoryFileNameOrConnectionString, String username, String password) throws ShapeChangeAbortException
ShapeChangeAbortException
SortedSet<PackageInfo> schemas(String name)
name
- to restrict the search; can be null
null
SortedSet<? extends PackageInfo> selectedSchemas()
NOTE: Transformations may change the set of selected schemas
PackageInfo.isSchema()
SortedSet<? extends ClassInfo> selectedSchemaClasses()
null
.SortedSet<ClassInfo> classes(PackageInfo pi)
null
String normalizeTaggedValue(String tag)
tag
- void postprocessAfterLoadingAndValidate()
PackageInfo packageById(String id)
null
if
such a class was not foundClassInfo classById(String id)
null
if
such a class was not foundClassInfo classByName(String nam)
null
if
such a class was not foundClassInfo classByIdOrName(Type typeInfo)
null
if such a class was not foundString characterEncoding()
void shutdown()
SortedSet<PackageInfo> packages()
PackageInfo
objects contained in the model; can be
empty but not null
.SortedSet<PackageInfo> packages(PackageInfo pkg)
schema
- null
.void loadInformationFromExternalSources()
boolean isInSelectedSchemas(ClassInfo ci)
ci
- Class to checktrue
if the given ClassInfo belongs to one of the
selected schemas, otherwise false
PackageInfo schemaPackage(ClassInfo ci)
PackageInfo.isSchema()
, while an application schema is identified
using PackageInfo.isAppSchema()
.ci
- Class to checknull
.SortedSet<PackageInfo> allPackagesFromSelectedSchemas()
null
Copyright © 2018. All rights reserved.