Forge - Parent 2.0.0.Alpha1

org.jboss.forge.maven.projects.facets
Class MavenMetadataFacet

java.lang.Object
  extended by org.jboss.forge.facets.AbstractFacet<Project>
      extended by org.jboss.forge.maven.projects.facets.MavenMetadataFacet
All Implemented Interfaces:
Facet<Project>, MetadataFacet, ProjectFacet

@Dependent
public class MavenMetadataFacet
extends AbstractFacet<Project>
implements MetadataFacet

Author:
Lincoln Baxter, III

Field Summary
 
Fields inherited from class org.jboss.forge.facets.AbstractFacet
origin
 
Constructor Summary
MavenMetadataFacet()
           
 
Method Summary
 Dependency getOutputDependency()
           
 String getProjectName()
           
 String getProjectVersion()
           
 String getTopLevelPackage()
           
 boolean install()
          Perform necessary setup for this Facet to be considered installed in the given Faceted instance.
 boolean isInstalled()
          Return true if the Facet is available for the given Faceted instance, false if otherwise.
 void setOrigin(Project project)
          Set the origin on which this Facet will operate.
 void setProjectName(String name)
           
 void setTopLevelPackage(String groupId)
           
 
Methods inherited from class org.jboss.forge.facets.AbstractFacet
equals, getOrigin, hashCode, uninstall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.forge.facets.Facet
getOrigin, uninstall
 

Constructor Detail

MavenMetadataFacet

public MavenMetadataFacet()
Method Detail

getProjectName

public String getProjectName()
Specified by:
getProjectName in interface MetadataFacet

getProjectVersion

public String getProjectVersion()
Specified by:
getProjectVersion in interface MetadataFacet

setOrigin

public void setOrigin(Project project)
Description copied from class: AbstractFacet
Set the origin on which this Facet will operate.

Specified by:
setOrigin in interface ProjectFacet
Overrides:
setOrigin in class AbstractFacet<Project>

install

public boolean install()
Description copied from interface: Facet
Perform necessary setup for this Facet to be considered installed in the given Faceted instance. This method should NOT register the facet; facet registration is handled by the Faceted instance if installation is successful.

Specified by:
install in interface Facet<Project>
Returns:
true if installation was successful, false if not.

isInstalled

public boolean isInstalled()
Description copied from interface: Facet
Return true if the Facet is available for the given Faceted instance, false if otherwise.

Specified by:
isInstalled in interface Facet<Project>

setProjectName

public void setProjectName(String name)
Specified by:
setProjectName in interface MetadataFacet

setTopLevelPackage

public void setTopLevelPackage(String groupId)
Specified by:
setTopLevelPackage in interface MetadataFacet

getTopLevelPackage

public String getTopLevelPackage()
Specified by:
getTopLevelPackage in interface MetadataFacet

getOutputDependency

public Dependency getOutputDependency()
Specified by:
getOutputDependency in interface MetadataFacet

Forge - Parent 2.0.0.Alpha1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.