org.eclipse.xtext.resource.impl
Class DefaultResourceDescriptionDelta

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.DefaultResourceDescriptionDelta
All Implemented Interfaces:
IResourceDescription.Delta
Direct Known Subclasses:
ChangedResourceDescriptionDelta

public class DefaultResourceDescriptionDelta
extends java.lang.Object
implements IResourceDescription.Delta

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
DefaultResourceDescriptionDelta(IResourceDescription old, IResourceDescription _new)
           
 
Method Summary
protected  boolean equals(IEObjectDescription next, IEObjectDescription next2)
           
 IResourceDescription getNew()
           
 IResourceDescription getOld()
           
 org.eclipse.emf.common.util.URI getUri()
           
 boolean haveEObjectDescriptionsChanged()
           
protected  boolean internalHasChanges()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultResourceDescriptionDelta

public DefaultResourceDescriptionDelta(IResourceDescription old,
                                       IResourceDescription _new)
Method Detail

getNew

public IResourceDescription getNew()
Specified by:
getNew in interface IResourceDescription.Delta
Returns:
the new resource description, or null if the change is a deletion

getOld

public IResourceDescription getOld()
Specified by:
getOld in interface IResourceDescription.Delta
Returns:
the old resource description, or null if the change is an addition

haveEObjectDescriptionsChanged

public boolean haveEObjectDescriptionsChanged()
Specified by:
haveEObjectDescriptionsChanged in interface IResourceDescription.Delta
Returns:
whether there are differences between the old and the new resource description.

internalHasChanges

protected boolean internalHasChanges()

equals

protected boolean equals(IEObjectDescription next,
                         IEObjectDescription next2)

getUri

public org.eclipse.emf.common.util.URI getUri()
Specified by:
getUri in interface IResourceDescription.Delta
Returns:
the uri for the resource description delta.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object