org.eclipse.xtext.resource
Interface IResourceDescription.Delta

All Known Implementing Classes:
ChangedResourceDescriptionDelta, DefaultResourceDescriptionDelta
Enclosing interface:
IResourceDescription

public static interface IResourceDescription.Delta

A delta describing the differences between two versions of the same IResourceDescription. Instances have to follow the rule :

getNew()==null || getOld()==null || getOld().getURI().equals(getNew().getURI())

and

getNew()!=getOld()


Method Summary
 IResourceDescription getNew()
           
 IResourceDescription getOld()
           
 org.eclipse.emf.common.util.URI getUri()
           
 boolean haveEObjectDescriptionsChanged()
           
 

Method Detail

getUri

org.eclipse.emf.common.util.URI getUri()
Returns:
the uri for the resource description delta.

getOld

IResourceDescription getOld()
Returns:
the old resource description, or null if the change is an addition

getNew

IResourceDescription getNew()
Returns:
the new resource description, or null if the change is a deletion

haveEObjectDescriptionsChanged

boolean haveEObjectDescriptionsChanged()
Returns:
whether there are differences between the old and the new resource description.