org.ocleditor.internal.core.nature_builder
Class OclFileDeltaVisitor

java.lang.Object
  extended byorg.ocleditor.internal.core.nature_builder.OclFileDeltaVisitor
All Implemented Interfaces:
org.eclipse.core.resources.IResourceDeltaVisitor

public class OclFileDeltaVisitor
extends java.lang.Object
implements org.eclipse.core.resources.IResourceDeltaVisitor

Processes an IResourceDelta to find .ocl files and parses them. Designed to be invoked as a part of builder.

See Also:
IResourceDelta, IResourceDeltaVisitor

Constructor Summary
OclFileDeltaVisitor()
           
 
Method Summary
 void parseOclFile(org.eclipse.core.resources.IResource resource)
          Parses the specified .ocl file and sets error markers.
 void processOclFile(org.eclipse.core.resources.IResource resource, org.eclipse.core.resources.IContainer container)
          Implements processing for a given .ocl resource.
 boolean visit(org.eclipse.core.resources.IResourceDelta delta)
          Required implementation of the visit method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OclFileDeltaVisitor

public OclFileDeltaVisitor()
Method Detail

visit

public boolean visit(org.eclipse.core.resources.IResourceDelta delta)
              throws org.eclipse.core.runtime.CoreException
Required implementation of the visit method. The IResourceDelta is processed by providing it a visitor using the accept() method and using this method in the visitor to process any events of interest. Processing continues as long as this method returns true or when the end of the IResourceDelta has been reached.

Specified by:
visit in interface org.eclipse.core.resources.IResourceDeltaVisitor
Throws:
org.eclipse.core.runtime.CoreException

processOclFile

public void processOclFile(org.eclipse.core.resources.IResource resource,
                           org.eclipse.core.resources.IContainer container)
Implements processing for a given .ocl resource. This includes parsing of the .ocl resource.


parseOclFile

public void parseOclFile(org.eclipse.core.resources.IResource resource)
Parses the specified .ocl file and sets error markers.

Parameters:
resource -