Class ExtensionProperty<E extends IRespondingMutableElement<E>>
java.lang.Object
ch.nolix.system.property.extension.ExtensionProperty<E>
- Type Parameters:
E- the type of the extension of aExtensionProperty.
- All Implemented Interfaces:
MaterializationRequestable, Property, IExtensionProperty<E>
public final class ExtensionProperty<E extends IRespondingMutableElement<E>>
extends Object
implements IExtensionProperty<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddedOrChangedAttribute(INode<?> attribute) voidfillUpAttributesIntoList(ILinkedList<INode<?>> list) Fills up the attributes of the currentPropertyinto the given list.booleanstatic <T extends IRespondingMutableElement<T>>
ExtensionProperty<T> withExtension(T extension) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MaterializationRequestable
isView
-
Method Details
-
withExtension
public static <T extends IRespondingMutableElement<T>> ExtensionProperty<T> withExtension(T extension) - Type Parameters:
T- the type of the extension of the createdExtensionProperty- Parameters:
extension-- Returns:
- a new
ExtensionPropertywith the given extension - Throws:
RuntimeException- if the given extension is null
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentPropertyif the given attribute is for the currentProperty.- Specified by:
addedOrChangedAttributein interfaceProperty- Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
Property, false otherwise
-
fillUpAttributesIntoList
Fills up the attributes of the currentPropertyinto the given list.- Specified by:
fillUpAttributesIntoListin interfaceProperty- Parameters:
list-
-
getStoredExtension
- Specified by:
getStoredExtensionin interfaceIExtensionProperty<E extends IRespondingMutableElement<E>>- Returns:
- the extension of the current
IExtensionProperty.
-
isMaterialized
public boolean isMaterialized()- Specified by:
isMaterializedin interfaceMaterializationRequestable- Returns:
- true if the current
MaterializationRequestableis materialized, false otherwise
-