V_ARRAY - The type of the default value array of the attribute.public class AttributeDefinitionImpl<V_ARRAY> extends Object implements org.osgi.service.metatype.AttributeDefinition, org.everit.osgi.ecm.metadata.AttributeMetadataHolder<V_ARRAY>
AttributeDefinition that provides information about an attribute
of the component via MetatypeService.| Constructor and Description |
|---|
AttributeDefinitionImpl(org.everit.osgi.ecm.metadata.AttributeMetadata<V_ARRAY> attributeMetadata,
Localizer localizer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCardinality() |
String[] |
getDefaultValue() |
String |
getDescription() |
String |
getID() |
org.everit.osgi.ecm.metadata.AttributeMetadata<V_ARRAY> |
getMetadata() |
String |
getName() |
String[] |
getOptionLabels() |
String[] |
getOptionValues() |
int |
getType() |
String |
validate(String value) |
public AttributeDefinitionImpl(org.everit.osgi.ecm.metadata.AttributeMetadata<V_ARRAY> attributeMetadata, Localizer localizer)
attributeMetadata - The metadata information of the component attribute.localizer - The localizer helps generating localized representation of the labels.public int getCardinality()
getCardinality in interface org.osgi.service.metatype.AttributeDefinitionpublic String[] getDefaultValue()
getDefaultValue in interface org.osgi.service.metatype.AttributeDefinitionpublic String getDescription()
getDescription in interface org.osgi.service.metatype.AttributeDefinitionpublic String getID()
getID in interface org.osgi.service.metatype.AttributeDefinitionpublic org.everit.osgi.ecm.metadata.AttributeMetadata<V_ARRAY> getMetadata()
getMetadata in interface org.everit.osgi.ecm.metadata.AttributeMetadataHolder<V_ARRAY>public String getName()
getName in interface org.osgi.service.metatype.AttributeDefinitionpublic String[] getOptionLabels()
getOptionLabels in interface org.osgi.service.metatype.AttributeDefinitionpublic String[] getOptionValues()
getOptionValues in interface org.osgi.service.metatype.AttributeDefinitionpublic int getType()
getType in interface org.osgi.service.metatype.AttributeDefinitionCopyright © 2011–2015 Everit Kft.. All rights reserved.