Forge - Facets Addon API 2.0.0.Alpha3

org.jboss.forge.facets
Class AbstractFacet<FACETED extends Faceted<?>>

java.lang.Object
  extended by org.jboss.forge.facets.AbstractFacet<FACETED>
All Implemented Interfaces:
Facet<FACETED>, MutableOrigin<FACETED>

public abstract class AbstractFacet<FACETED extends Faceted<?>>
extends Object
implements Facet<FACETED>, MutableOrigin<FACETED>

A base convenience Facet abstract class.

Author:
Lincoln Baxter, III, Ken Finnigan

Field Summary
protected  FACETED origin
           
 
Constructor Summary
AbstractFacet()
           
 
Method Summary
 boolean equals(Object obj)
           
 FACETED getOrigin()
          Return the Faceted instance on which this Facet operates.
 int hashCode()
          Facet instances are the same if they are registered to the same project.
 void setOrigin(FACETED origin)
          Set the origin on which this Facet will operate.
 boolean uninstall()
          Remove this Facet from its Faceted instance, and perform any necessary cleanup.
 
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
install, isInstalled
 

Field Detail

origin

protected FACETED extends Faceted<?> origin
Constructor Detail

AbstractFacet

public AbstractFacet()
Method Detail

getOrigin

public FACETED getOrigin()
Description copied from interface: Facet
Return the Faceted instance on which this Facet operates.

Specified by:
getOrigin in interface Facet<FACETED extends Faceted<?>>

setOrigin

public void setOrigin(FACETED origin)
Set the origin on which this Facet will operate.

Specified by:
setOrigin in interface MutableOrigin<FACETED extends Faceted<?>>

uninstall

public boolean uninstall()
Description copied from interface: Facet
Remove this Facet from its Faceted instance, and perform any necessary cleanup.

Specified by:
uninstall in interface Facet<FACETED extends Faceted<?>>

hashCode

public int hashCode()
Facet instances are the same if they are registered to the same project.

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Forge - Facets Addon API 2.0.0.Alpha3

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