| /******************************************************************************* |
| * Copyright (c) 2011, 2014 IBM Corporation and others |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ******************************************************************************/ |
| package org.eclipse.equinox.metatype; |
| |
| import org.osgi.service.metatype.AttributeDefinition; |
| |
| /** |
| * An {@link Extendable extendable} version of {@link AttributeDefinition |
| * attribute definition} allowing access to any {@link |
| * Extendable#getExtensionAttributes(String) extension attributes} provided by |
| * third parties. |
| * <p/> |
| * For example, an Equinox attribute definition will contain all XML attributes |
| * specified as part of the <AD/> element with namespaces other than the |
| * metatype namespace as extension attributes. |
| * |
| * @since 1.2 |
| * @noimplement This interface is not intended to be implemented by clients. |
| */ |
| public interface EquinoxAttributeDefinition extends AttributeDefinition, Extendable { |
| /** |
| * Get the maximum value this attribute may hold as specified by the |
| * optional "max" XML attribute of the <AD> element. |
| * |
| * @return The maximum value this attribute may hold, or <code>null</code> |
| * if unspecified. |
| * @since 1.3 |
| */ |
| public String getMax(); |
| |
| /** |
| * Get the minimum value this attribute may hold as specified by the |
| * optional "min" XML attribute of the <AD> element. |
| * |
| * @return The minimum value this attribute may hold, or <code>null</code> |
| * if unspecified. |
| * @since 1.3 |
| */ |
| public String getMin(); |
| } |