org.eclipse.xtext.resource.impl
Class DefaultResourceDescriptionDelta
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultResourceDescriptionDelta
public DefaultResourceDescriptionDelta(IResourceDescription old,
IResourceDescription _new)
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