org.mevenide.idea.psi.project
Class PsiProject

java.lang.Object
  extended by org.mevenide.idea.psi.support.AbstractPsiObject
      extended by org.mevenide.idea.psi.support.AbstractPsiPropertyObservable<PsiNamedPropertyChangeListener>
          extended by org.mevenide.idea.psi.support.AbstractPsiNamedPropertyObservable
              extended by org.mevenide.idea.psi.project.PsiProject
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, PropertyObservable

public class PsiProject
extends AbstractPsiNamedPropertyObservable

Author:
Arik

Field Summary
 
Fields inherited from class org.mevenide.idea.psi.support.AbstractPsiPropertyObservable
psi
 
Fields inherited from class org.mevenide.idea.psi.support.AbstractPsiObject
xmlFile
 
Constructor Summary
PsiProject(com.intellij.psi.xml.XmlFile pXmlFile)
          Creates a new instance for the given XML (POM) file.
 
Method Summary
 String getArtifactId()
           
 String getAspectSourceDirectory()
           
 PsiContributors getContributors()
           
 String getCurrentVersion()
           
 PsiDependencies getDependencies()
           
 String getDescription()
           
 PsiDevelopers getDevelopers()
           
 String getDistributionAddress()
           
 String getDistributionDirectory()
           
 String getExtend()
           
 String getGroupId()
           
 String getInceptionYear()
           
 String getIssueTrackingUrl()
           
 String getLogoUri()
           
 PsiMailingLists getMailingLists()
           
 String getName()
           
 PsiOrganization getOrganization()
           
 String getPackageName()
           
 PsiProject getParent()
          Returns the PSI parent project.
 String getPomVersion()
           
 PsiReports getReports()
           
 PsiResources getResources()
           
 PsiScmBranches getScmBranches()
           
 PsiScmRepository getScmRepository()
           
 String getShortDescription()
           
 String getSiteAddress()
           
 String getSiteDirectory()
           
 String getSourceDirectory()
           
 PsiTestResources getTestResources()
           
 String getUnitTestSourceDirectory()
           
 String getUrl()
           
 PsiVersions getVersions()
           
 void setArtifactId(String pValue)
           
 void setAspectSourceDirectory(String pAspectSourceDirectory)
           
 void setCurrentVersion(String pValue)
           
 void setDescription(String pValue)
           
 void setDistributionAddress(String pDistributionAddress)
           
 void setDistributionDirectory(String pDistributionDirectory)
           
 void setExtend(String pValue)
           
 void setGroupId(String pValue)
           
 void setInceptionYear(String pValue)
           
 void setIssueTrackingUrl(String pValue)
           
 void setLogoUri(String pValue)
           
 void setName(String pValue)
           
 void setPackageName(String pValue)
           
 void setPomVersion(String pValue)
           
 void setShortDescription(String pValue)
           
 void setSiteAddress(String pSiteAddress)
           
 void setSiteDirectory(String pSiteDirectory)
           
 void setSourceDirectory(String pSourceDirectory)
           
 void setUnitTestSourceDirectory(String pUnitTestSourceDirectory)
           
 void setUrl(String pValue)
           
 
Methods inherited from class org.mevenide.idea.psi.support.AbstractPsiNamedPropertyObservable
registerTag
 
Methods inherited from class org.mevenide.idea.psi.support.AbstractPsiPropertyObservable
addPropertyChangeListener, addPropertyChangeListener, getValue, removePropertyChangeListener, removePropertyChangeListener, setValue
 
Methods inherited from class org.mevenide.idea.psi.support.AbstractPsiObject
getXmlFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsiProject

public PsiProject(com.intellij.psi.xml.XmlFile pXmlFile)
Creates a new instance for the given XML (POM) file.

Parameters:
pXmlFile - the POM file
Method Detail

getParent

public PsiProject getParent()
Returns the PSI parent project.

This method will parse the "extend" tag value, and use it to find the parent POM file (relative path for this POM file is supported). If the parent POM project is found, a PSI project is created for it and returned.

NOTE: this is not a bound property. To track parent changes - track the "extend" property.

Returns:
a PSI project for the parent POM, or null if the extend tag has an empty value, or if the parent POM cannot be found/parsed.

getPomVersion

public final String getPomVersion()

setPomVersion

public void setPomVersion(String pValue)
                   throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getExtend

public final String getExtend()

setExtend

public void setExtend(String pValue)
               throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getName

public final String getName()

setName

public void setName(String pValue)
             throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getCurrentVersion

public final String getCurrentVersion()

setCurrentVersion

public void setCurrentVersion(String pValue)
                       throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getArtifactId

public final String getArtifactId()

setArtifactId

public void setArtifactId(String pValue)
                   throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getGroupId

public final String getGroupId()

setGroupId

public void setGroupId(String pValue)
                throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getUrl

public final String getUrl()

setUrl

public void setUrl(String pValue)
            throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getLogoUri

public final String getLogoUri()

setLogoUri

public void setLogoUri(String pValue)
                throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getInceptionYear

public final String getInceptionYear()

setInceptionYear

public void setInceptionYear(String pValue)
                      throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getPackageName

public final String getPackageName()

setPackageName

public void setPackageName(String pValue)
                    throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getShortDescription

public final String getShortDescription()

setShortDescription

public void setShortDescription(String pValue)
                         throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getDescription

public final String getDescription()

setDescription

public void setDescription(String pValue)
                    throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getIssueTrackingUrl

public final String getIssueTrackingUrl()

setIssueTrackingUrl

public void setIssueTrackingUrl(String pValue)
                         throws com.intellij.util.IncorrectOperationException
Throws:
com.intellij.util.IncorrectOperationException

getDistributionDirectory

public String getDistributionDirectory()

setDistributionDirectory

public void setDistributionDirectory(String pDistributionDirectory)

getDistributionAddress

public String getDistributionAddress()

setDistributionAddress

public void setDistributionAddress(String pDistributionAddress)

getSiteAddress

public String getSiteAddress()

setSiteAddress

public void setSiteAddress(String pSiteAddress)

getSiteDirectory

public String getSiteDirectory()

setSiteDirectory

public void setSiteDirectory(String pSiteDirectory)

getSourceDirectory

public String getSourceDirectory()

setSourceDirectory

public void setSourceDirectory(String pSourceDirectory)

getAspectSourceDirectory

public String getAspectSourceDirectory()

setAspectSourceDirectory

public void setAspectSourceDirectory(String pAspectSourceDirectory)

getUnitTestSourceDirectory

public String getUnitTestSourceDirectory()

setUnitTestSourceDirectory

public void setUnitTestSourceDirectory(String pUnitTestSourceDirectory)

getOrganization

public final PsiOrganization getOrganization()

getMailingLists

public final PsiMailingLists getMailingLists()

getDependencies

public final PsiDependencies getDependencies()

getDevelopers

public PsiDevelopers getDevelopers()

getContributors

public PsiContributors getContributors()

getScmRepository

public PsiScmRepository getScmRepository()

getScmBranches

public PsiScmBranches getScmBranches()

getVersions

public PsiVersions getVersions()

getResources

public PsiResources getResources()

getTestResources

public PsiTestResources getTestResources()

getReports

public PsiReports getReports()


Copyright © 2005 The Codehaus. All Rights Reserved.