commonj.connector.metadata.discovery.properties
Interface BoundedMultiValuedProperty

All Superinterfaces:
Cloneable, MultiValuedProperty, Property, PropertyDescriptor, SingleTypedProperty

public interface BoundedMultiValuedProperty
extends MultiValuedProperty

A MultiValuedProperty that has a bounded size for the list of values it can hold.

Since:
1.0

Field Summary
 
Fields inherited from interface commonj.connector.metadata.discovery.properties.MultiValuedProperty
MULTI_SELECT, SINGLE_SELECT
 
Method Summary
 int getBoundedSize()
          Returns the maximum number of values the property can hold.
 boolean isAllRequired()
          Returns a flag indicating if all the indices must be filled with values for this property.
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.MultiValuedProperty
addValue, addValue, addValueAsString, addValueAsString, allowDuplicateValues, get, getSelectionStyle, getValues, getValuesAsStrings, removeValue, removeValue, removeValueAsString, setSelection
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.SingleTypedProperty
getPropertyType
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.Property
getValidationMessage, isSet, isValid, unSet
 
Methods inherited from interface commonj.connector.metadata.discovery.properties.PropertyDescriptor
addPropertyChangeListener, clone, getDescription, getDisplayName, getID, getName, isEnabled, removePropertyChangeListener
 

Method Detail

getBoundedSize

int getBoundedSize()
Returns the maximum number of values the property can hold.

Returns:
Returns the maximum number of values the property can hold. This must return a value greater than zero.

isAllRequired

boolean isAllRequired()
Returns a flag indicating if all the indices must be filled with values for this property. If this method returns true then there must be a valid value set on every index between zero and getBoundedSize()-1;

Returns:
a boolean flag indicating if all the indices must be filled with values for this property.