public abstract class AbstractPnmlImportExport extends Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log
Logging system.
|
protected String |
newTypeFilePath
the extensions filetype file.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractPnmlImportExport(String loggername,
String filePath)
Generic constructor, sets the logging system.
|
Modifier and Type | Method and Description |
---|---|
void |
disableGrammarValidation()
Disables Grammar Validation.
|
void |
disableOclChecking()
Disables ocl checking (enabled by default).
|
void |
enableGrammarValidation()
Enables Grammar Validation.
|
void |
enableOclChecking()
Enables ocl checking (enabled by default).
|
boolean |
isCheckOclEnabled() |
boolean |
isGrammarValidationEnabled() |
protected void |
oclChecking(HLAPIClass rootclass)
Calls ocl checking one the given object.
|
protected void |
rngGrammarValidation(String schemafile,
InputSource pnmldocStream)
Validates the xml file to grammar.
|
protected final org.slf4j.Logger log
protected final String newTypeFilePath
protected final void oclChecking(HLAPIClass rootclass) throws OCLValidationFailed
rootclass
- the object to checkOCLValidationFailed
- if an error occur while checking ocl.protected final void rngGrammarValidation(String schemafile, InputSource pnmldocStream) throws ValidationFailedException
schemafile
- the url to rng file.pnmldocStream
- the stream of documentValidationFailedException
- if the validation test failedpublic final boolean isCheckOclEnabled()
public final void enableOclChecking()
public final void disableOclChecking()
public final boolean isGrammarValidationEnabled()
public final void enableGrammarValidation()
public final void disableGrammarValidation()
Copyright © 2009–2016 Univ. Paris Ouest, and Univ. Pierre et Marie Curie / CNRS UMR 7606 (LIP6). All rights reserved.