public class QvtProject extends QvtBaseElement implements IQvtProject
QVT_COMPILATION_UNIT, QVT_NAMESPACE, QVT_PROJECT
Constructor and Description |
---|
QvtProject(IProject project) |
Modifier and Type | Method and Description |
---|---|
IQvtCompilationUnit |
findCompilationUnit(String unitQualifiedName) |
IQvtElement |
findElement(IResource resource,
boolean exactMatchOnly)
Find QVT element related to the given resource.
|
IQvtNamespace |
findNamespace(String namespaceQualifiedName) |
IQvtNamespace |
findRootNamespace(String namespaceSimpleName) |
IQvtNamespace |
getDefaultNamespace() |
int |
getElementType() |
IProject |
getProject() |
IQvtProject |
getQvtProject() |
IPath |
getQvtSourceContainerPath() |
List<IQvtNamespace> |
getRootNamespaces() |
IContainer |
getSourceContainer() |
IResource |
getUnderlyingResource() |
getFullPath, getName, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullPath, getName
public QvtProject(IProject project)
public IProject getProject()
getProject
in interface IQvtProject
public IQvtProject getQvtProject()
getQvtProject
in interface IQvtElement
public IQvtNamespace getDefaultNamespace() throws QvtModelException
getDefaultNamespace
in interface IQvtProject
QvtModelException
public List<IQvtNamespace> getRootNamespaces() throws QvtModelException
getRootNamespaces
in interface IQvtProject
QvtModelException
public IPath getQvtSourceContainerPath() throws QvtModelException
getQvtSourceContainerPath
in interface IQvtProject
QvtModelException
public IContainer getSourceContainer() throws QvtModelException
QvtModelException
public int getElementType()
getElementType
in interface IQvtElement
public IResource getUnderlyingResource() throws QvtModelException
getUnderlyingResource
in interface IQvtElement
getUnderlyingResource
in class QvtBaseElement
QvtModelException
public IQvtNamespace findRootNamespace(String namespaceSimpleName) throws QvtModelException
QvtModelException
public IQvtCompilationUnit findCompilationUnit(String unitQualifiedName) throws QvtModelException
findCompilationUnit
in interface IQvtProject
QvtModelException
public IQvtNamespace findNamespace(String namespaceQualifiedName) throws QvtModelException
findNamespace
in interface IQvtProject
QvtModelException
public IQvtElement findElement(IResource resource, boolean exactMatchOnly) throws QvtModelException
IQvtProject
findElement
in interface IQvtProject
resource
- the context within a QVT projectexactMatchOnly
- If true
, returned element exactly matches the
given resource by its underlying resource. If
false
, the inner most enclosing QVT element is
to be foundnull
if no is found.QvtModelException
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.