Package 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
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceDescriptionDelta(IResourceDescription old, IResourceDescription _new)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equals(IEObjectDescription oldObj, IEObjectDescription newObj)
IResourceDescription
getNew()
IResourceDescription
getOld()
org.eclipse.emf.common.util.URI
getUri()
boolean
haveEObjectDescriptionsChanged()
protected boolean
internalHasChanges()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultResourceDescriptionDelta
public DefaultResourceDescriptionDelta(IResourceDescription old, IResourceDescription _new)
-
-
Method Detail
-
getNew
public IResourceDescription getNew()
- Specified by:
getNew
in interfaceIResourceDescription.Delta
- Returns:
- the new resource description, or null if the change is a deletion
-
getOld
public IResourceDescription getOld()
- Specified by:
getOld
in interfaceIResourceDescription.Delta
- Returns:
- the old resource description, or null if the change is an addition
-
haveEObjectDescriptionsChanged
public boolean haveEObjectDescriptionsChanged()
- Specified by:
haveEObjectDescriptionsChanged
in interfaceIResourceDescription.Delta
- Returns:
- whether there are differences between the old and the new resource description.
-
internalHasChanges
protected boolean internalHasChanges()
-
equals
protected boolean equals(IEObjectDescription oldObj, IEObjectDescription newObj)
-
getUri
public org.eclipse.emf.common.util.URI getUri()
- Specified by:
getUri
in interfaceIResourceDescription.Delta
- Returns:
- the uri for the resource description delta.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-