All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.metamodel.facets.object.immutable.ImmutableFacetNever Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.metamodel.facets.object.immutable;

import org.nakedobjects.metamodel.adapter.NakedObject;
import org.nakedobjects.metamodel.facets.FacetHolder;
import org.nakedobjects.metamodel.facets.When;


public class ImmutableFacetNever extends ImmutableFacetAbstract {

    public ImmutableFacetNever(final FacetHolder holder) {
        super(When.NEVER, holder);
    }

    /**
     * Always returns null.
     */
    @Override
    public String disabledReason(final NakedObject no) {
        return null;
    }

    @Override
    public boolean isNoop() {
        return true;
    }

}

// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy