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 booleanequals(IEObjectDescription oldObj, IEObjectDescription newObj)IResourceDescriptiongetNew()IResourceDescriptiongetOld()org.eclipse.emf.common.util.URIgetUri()booleanhaveEObjectDescriptionsChanged()protected booleaninternalHasChanges()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultResourceDescriptionDelta
public DefaultResourceDescriptionDelta(IResourceDescription old, IResourceDescription _new)
-
-
Method Detail
-
getNew
public IResourceDescription getNew()
- Specified by:
getNewin interfaceIResourceDescription.Delta- Returns:
- the new resource description, or null if the change is a deletion
-
getOld
public IResourceDescription getOld()
- Specified by:
getOldin interfaceIResourceDescription.Delta- Returns:
- the old resource description, or null if the change is an addition
-
haveEObjectDescriptionsChanged
public boolean haveEObjectDescriptionsChanged()
- Specified by:
haveEObjectDescriptionsChangedin 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:
getUriin interfaceIResourceDescription.Delta- Returns:
- the uri for the resource description delta.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-