Class ImmutableValueAttribute<T,A extends Attribute<T,A>>
- java.lang.Object
-
- io.github.factoryfx.factory.attribute.Attribute<T,A>
-
- io.github.factoryfx.factory.attribute.ImmutableValueAttribute<T,A>
-
- All Implemented Interfaces:
AttributeCopy<T>,AttributeMatch<T>,AttributeMerger<T>,AttributeValue<T>
- Direct Known Subclasses:
BigDecimalAttribute,BigIntegerAttribute,BooleanAttribute,ByteArrayAttribute,ByteAttribute,CharAttribute,DoubleAttribute,DurationAttribute,EncryptedStringAttribute,EnumAttribute,FileContentAttribute,FloatAttribute,I18nAttribute,InstantAttribute,IntegerAttribute,LocalDateAttribute,LocalDateTimeAttribute,LocaleAttribute,LocalTimeAttribute,LongAttribute,ObjectValueAttribute,PasswordAttribute,ShortAttribute,StringAttribute,URIAttribute,ValueListAttribute,ValueMapAttribute,ValueSetAttribute
public abstract class ImmutableValueAttribute<T,A extends Attribute<T,A>> extends Attribute<T,A>
base class for Attributes with immutable value(for ChangeListener)
-
-
Constructor Summary
Constructors Constructor Description ImmutableValueAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdefaultValue(T defaultValue)Tget()java.lang.StringgetDisplayText()java.util.Optional<T>getNullable()protected TgetValue()voidinternal_addBackReferences(FactoryBase<?,?> root, FactoryBase<?,?> parent)voidinternal_copyTo(AttributeCopy<T> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)booleaninternal_mergeMatch(AttributeMatch<T> value)alternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttributebooleaninternal_required()voidinternal_reset()voidinternal_semanticCopyTo(AttributeCopy<T> copyAttribute)java.util.List<ValidationError>internal_validate(FactoryBase<?,?> parent, java.lang.String attributeVariableName)Anullable()voidset(T value)protected voidsetValue(T value)-
Methods inherited from class io.github.factoryfx.factory.attribute.Attribute
addonText, createAttributeStorageMetadata, de, en, es, fr, internal_addListener, internal_endUsage, internal_getAddonText, internal_getListeners, internal_getPreferredLabelText, internal_getPreferredTooltipText, internal_hasWritePermission, internal_isUserReadOnly, internal_merge, internal_removeAllListener, internal_removeListener, it, labelText, labelText, listenersEmpty, permission, pt, tooltipDe, tooltipEn, updateListeners, userReadOnly, userReadOnly, validation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMatch
internal_referenceEquals, internal_referenceListEquals
-
Methods inherited from interface io.github.factoryfx.factory.attribute.AttributeMerger
internal_mergeFactoryList
-
-
-
-
Field Detail
-
value
protected T value
-
-
Method Detail
-
internal_mergeMatch
public boolean internal_mergeMatch(AttributeMatch<T> value)
Description copied from interface:AttributeMatchalternative to equals on value, type-safe , less verbose, without worrying about hidden contracts indented for merge some with some serial case e.g ObjectValueAttribute- Parameters:
value- compare value- Returns:
- true if equals
-
get
public T get()
-
set
public void set(T value)
-
internal_copyTo
public void internal_copyTo(AttributeCopy<T> copyAttribute, int level, int maxLevel, java.util.List<FactoryBase<?,?>> oldData, FactoryBase<?,?> parent, FactoryBase<?,?> root)
-
internal_semanticCopyTo
public void internal_semanticCopyTo(AttributeCopy<T> copyAttribute)
-
getDisplayText
public java.lang.String getDisplayText()
-
getValue
protected T getValue()
-
setValue
protected void setValue(T value)
-
internal_required
public boolean internal_required()
-
nullable
public A nullable()
-
internal_validate
public java.util.List<ValidationError> internal_validate(FactoryBase<?,?> parent, java.lang.String attributeVariableName)
-
internal_reset
public void internal_reset()
-
internal_addBackReferences
public void internal_addBackReferences(FactoryBase<?,?> root, FactoryBase<?,?> parent)
- Parameters:
root- factory tree rootparent- data that contains the attribute
-
getNullable
public java.util.Optional<T> getNullable()
-
-