org.ocleditor.parser
Interface IOclParser

All Known Implementing Classes:
OclParserDresden

public interface IOclParser

Interface for the OCL parser.


Method Summary
 IOclModel getOclModel(org.eclipse.core.resources.IResource resource)
          Returns the OCL model for the given OCL file.
 IOclModel getOclModel(java.lang.String oclInput)
          Returns the OCL model for the given OCL input.
 IOclParserError[] syntaxCheck(org.eclipse.core.resources.IResource resource)
          Checks the OCL file if it is syntactically correct.
 IOclParserError[] typeCheck(org.eclipse.core.resources.IResource resource)
          Checks the OCL file if it is semantically correct; this means if it conforms to the Java modell.
 

Method Detail

syntaxCheck

public IOclParserError[] syntaxCheck(org.eclipse.core.resources.IResource resource)
Checks the OCL file if it is syntactically correct.

Parameters:
resource - OCL file resource.
Returns:
error list or null if no errors occured.

typeCheck

public IOclParserError[] typeCheck(org.eclipse.core.resources.IResource resource)
Checks the OCL file if it is semantically correct; this means if it conforms to the Java modell.

Parameters:
resource - OCL file resource.
Returns:
error list or null if no errors occured.

getOclModel

public IOclModel getOclModel(org.eclipse.core.resources.IResource resource)
Returns the OCL model for the given OCL file.

Parameters:
resource - OCL file resource.
Returns:
the OCL model or null in case of an error.

getOclModel

public IOclModel getOclModel(java.lang.String oclInput)
Returns the OCL model for the given OCL input.

Returns:
the OCL model or null in case of an error.