org.nakedobjects.metamodel.facetdecorator.FacetDecorator Maven / Gradle / Ivy
The newest version!
package org.nakedobjects.metamodel.facetdecorator;
import org.nakedobjects.metamodel.facets.Facet;
import org.nakedobjects.metamodel.facets.FacetHolder;
public interface FacetDecorator {
/**
* If applicable, replace the provided {@link Facet} with a decorating {@link Facet} that should
* be held by the provided {@link FacetHolder required holder}.
*
*
* @return the decorating {@link Facet}, or null if this decoration does not apply to this Facet.
*/
Facet decorate(Facet facet, FacetHolder requiredHolder);
Class[] getFacetTypes();
String getFacetTypeNames();
}
// Copyright (c) Naked Objects Group Ltd.