Acceleo Query Language Documentation

eResource(eObject: org.eclipse.emf.ecore.EObject) = Resource

Returns the Resource containing the given EObject. This service is equivalent to a direct call to EObject#eResource().


fileExtension(uri: org.eclipse.emf.common.util.URI) = String

Returns the extension of the file referred to by the given URI. This service is equivalent to a direct call to URI#fileExtension()


getContents(resource: org.eclipse.emf.ecore.resource.Resource, type: org.eclipse.emf.ecore.EClass) = List

Returns the EObjects of the given type from the direct content of the given Resource.


getContents(resource: org.eclipse.emf.ecore.resource.Resource) = List

Returns the direct content of the given Resource. This service is equivalent to a direct call to Resource#getContents()


getURI(resource: org.eclipse.emf.ecore.resource.Resource) = URI

Returns the URI of the given Resource. This service is equivalent to a direct call to Resource#getURI()


isPlatformPlugin(uri: org.eclipse.emf.common.util.URI) = Boolean

Returns "true" if the given URI is a platform plugin URI. This service is equivalent to a direct call to URI#isPlatformPlugin()


isPlatformResource(uri: org.eclipse.emf.common.util.URI) = Boolean

Returns "true" if the given URI is a platform resource URI. This service is equivalent to a direct call to URI#isPlatformResource()


lastSegment(uri: org.eclipse.emf.common.util.URI) = String

Returns the last segment of the given URI. This service is equivalent to a direct call to URI#lastSegment()