Class Extension<E extends IRespondingMutableElement<E>>
java.lang.Object
ch.nolix.system.property.extension.Extension<E>
- Type Parameters:
E- is the type of the extension of aExtension.
- All Implemented Interfaces:
MaterializationRequestable, IProperty, IExtension<E>
public final class Extension<E extends IRespondingMutableElement<E>>
extends Object
implements IExtension<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddedOrChangedAttribute(INode<?> attribute) voidfillUpAttributesIntoList(ILinkedList<INode<?>> list) Fills up the attributes of the currentIPropertyinto the given list.booleanstatic <T extends IRespondingMutableElement<T>>
Extension<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
- Type Parameters:
T- is the type of the extension of the createdExtension.- Parameters:
extension-- Returns:
- a new
Extensionwith the given extension. - Throws:
RuntimeException- if the given extension is null.
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentIPropertyif the given attribute is for the currentIProperty.- Specified by:
addedOrChangedAttributein interfaceIProperty- Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
IProperty, false otherwise.
-
fillUpAttributesIntoList
Fills up the attributes of the currentIPropertyinto the given list.- Specified by:
fillUpAttributesIntoListin interfaceIProperty- Parameters:
list-
-
getStoredExtension
- Specified by:
getStoredExtensionin interfaceIExtension<E extends IRespondingMutableElement<E>>- Returns:
- the extension of the current
IExtension.
-
isMaterialized
public boolean isMaterialized()- Specified by:
isMaterializedin interfaceMaterializationRequestable- Returns:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-