public class ModelProfileValidator extends Object implements MessageSource
Constructor and Description |
---|
ModelProfileValidator(Model model,
ShapeChangeResult result) |
Modifier and Type | Method and Description |
---|---|
String |
message(int mnr)
Return a message for a message number.
|
void |
validateModelConsistency(boolean isExplicitProfileSettings,
boolean warnIfSupertypeProfilesDoNotContainSubtypeProfiles,
boolean onlyProcessSelectedSchemas)
Checks that the 'profiles' information within the model is consistent.
|
public ModelProfileValidator(Model model, ShapeChangeResult result)
public void validateModelConsistency(boolean isExplicitProfileSettings, boolean warnIfSupertypeProfilesDoNotContainSubtypeProfiles, boolean onlyProcessSelectedSchemas)
true
, classes and properties without
profile information belong to no profile. If it is false
then classes belong to all profiles and properties inherit the profile
set from their owner.
Checks that:
isExplicitProfileSettings
- true
if the profile definitions in the model are
explicit, else false
warnIfSupertypeProfilesDoNotContainSubtypeProfiles
- onlyProcessSelectedSchemas
- true
if checks shall only be performed on classes
and properties from selected schemas (thereby ignoring all
other related classes, when used as super- or subtype or
property type), else false
(then the validation
will be performed for the whole model).public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2018. All rights reserved.