Class VirtualizedItem<PROPCNR extends PropCnr>
java.lang.Object
com.iizix.server.app.VirtualizedItem<PROPCNR>
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionVirtualizedItem(String reference, PROPCNR virtualizedProperty, PROPCNR originalProperty, long sequenceNumber) Constructor.Method Summary
Modifier and TypeMethodDescription<GP extends IGProp<?>>
GPgetOriginalChild(GP virtualizedChild) Gets the original child property from a property located in the virtualized property container.<GP extends GProp<?>>
GPgetVirtualChild(GP originalChild) Gets the virtualized child property from a property located in the original property container.
Field Details
reference
The reference property name, same asoriginalProperty.getReferencePropName().fullPathName
The full path name of the property.virtualizedProperty
originalProperty
sequenceNumber
public final long sequenceNumberThe sequence number.
Constructor Details
VirtualizedItem
public VirtualizedItem(String reference, PROPCNR virtualizedProperty, PROPCNR originalProperty, long sequenceNumber) Constructor.- Parameters:
reference- The reference property name.virtualizedProperty- The virtualized property.originalProperty- The original property.sequenceNumber- The sequence number.
Method Details
getVirtualChild
Gets the virtualized child property from a property located in the original property container.If the
originalChildis not a child oforiginalPropertya warning is logged.- Parameters:
originalChild- The original child, child oforiginalProperty.- Returns:
- The virtualized child that corresponds,
nullfor no match. This can happen when the virtual property tree has been modified. If a property with the same path is found, but not with the same property class,nullis returned.
getOriginalChild
Gets the original child property from a property located in the virtualized property container.If the
virtualizedChildis not a child ofvirtualizedPropertya warning is logged.- Parameters:
virtualizedChild- The virtualized child, child ofvirtualizedProperty.- Returns:
- The original child that corresponds,
nullfor no match. This can happen when the virtual property tree has been modified. If a property with the same path is found, but not with the same property class,nullis returned.