|
Added
Link Here
|
| 1 |
package org.eclipse.equinox.metatype.i1; |
| 2 |
|
| 3 |
import java.util.List; |
| 4 |
|
| 5 |
/** |
| 6 |
* A value for an attribute of an object. |
| 7 |
* |
| 8 |
* An Attribute contains the data from a single <code><attribute></code> |
| 9 |
* element within the metadata XML. It represents a value, whose intent and |
| 10 |
* format are described by the associated {@link #getAttributeDefinition() |
| 11 |
* attribute definition}, for a configuration dictionary. |
| 12 |
* |
| 13 |
* @ThreadSafe |
| 14 |
* @noimplement This interface is not intended to be implemented by clients. |
| 15 |
*/ |
| 16 |
public interface Attribute extends Extendable { |
| 17 |
/** |
| 18 |
* Returns the attribute definition associated with this attribute as |
| 19 |
* defined by the <code>adref</code> attribute of the <code> |
| 20 |
* <attribute></code> element. |
| 21 |
* |
| 22 |
* @return The attribute definition associated with this attribute. |
| 23 |
*/ |
| 24 |
EquinoxAttributeDefinition getAttributeDefinition(); |
| 25 |
|
| 26 |
/** |
| 27 |
* Returns the values for this attribute as specified within the <code> |
| 28 |
* content</code> attribute of the <code><attribute></code> element. |
| 29 |
* If there is more than one value, the returned string will be a |
| 30 |
* comma-delimited list. All escape characters are retained. |
| 31 |
* |
| 32 |
* @return The values for this attribute. |
| 33 |
*/ |
| 34 |
String getContent(); |
| 35 |
|
| 36 |
/** |
| 37 |
* Returns the list of values for this attribute as specified within zero |
| 38 |
* or more child <code><value></code> elements of the <code> |
| 39 |
* <attribute></code> element. The list order represents the element |
| 40 |
* order presented within the XML. The list will be empty if no <code> |
| 41 |
* <value></code> elements were present. |
| 42 |
* |
| 43 |
* @return A list of values for this attribute. |
| 44 |
*/ |
| 45 |
List<String> getValues(); |
| 46 |
} |