Class AbstractProperty

    • Constructor Detail

      • AbstractProperty

        public AbstractProperty()
    • Method Detail

      • setValue

        public void setValue​(Object value)
        Basic 'setValue' implementation. It is checked whether this property contains a composite value. If so, the composite value of this property is updated. Composite values are expected to be supplied as a {see java.util.Collection}. If needed, array conversion takes place. If the property is not composite, the value-setting is delegated to the 'setRegularValue' method. Maps cannot be updated at this moment.
        Specified by:
        setValue in interface Property
        Parameters:
        value - Object; The new value of this property.
        See Also:
        Property.setValue(java.lang.Object)
      • setRegularValue

        protected abstract void setRegularValue​(Object value)
        Method used to set a regular (i.e. not-composite) property value.
        Parameters:
        value - Object; the new value
      • getComposedType

        public ComposedTypeEnum getComposedType()
        Returns the collection type of the contained value (i.e. a composite value). The definition whether a value is considered composite depends on the property paradigm used by this Property.
        Specified by:
        getComposedType in interface Property
        Returns:
        the CollectionTypeEnum of this Property.
      • getComponentType

        public Class<?> getComponentType()
        Returns the type of the collection components contained in this Property.
        Specified by:
        getComponentType in interface Property
        Returns:
        The type of the collection components contained in this Property. Returns null when isCollection() returns false, or when the component type could not be determined by this Property.