Skip to content

Package: Preconditions

Preconditions

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2018 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * jonas - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.bazaar;
15:
16: import static java.lang.annotation.ElementType.TYPE;
17:
18: import java.lang.annotation.Retention;
19: import java.lang.annotation.RetentionPolicy;
20: import java.lang.annotation.Target;
21:
22: /**
23: * Annotation to allow {@link Vendor}s to specify an array of {@link Precondition}s.
24: *
25: * @author jonas
26: *
27: */
28: @Retention(RetentionPolicy.RUNTIME)
29: @Target(TYPE)
30: public @interface Preconditions {
31:         /**
32:          * An array of {@link Precondition}s.
33:          *
34:          * @return An array of {@link Precondition}s
35:          */
36:         Precondition[] preconditions();
37: }