Class AbstractFixedVirtualizedBaseRelativeReference<TARGET extends IPropCnr>

  • All Implemented Interfaces:
    EventListener, ICircularRetargetParent, IGProp<ReferenceString>, IPropReference, java.lang.Cloneable
    Direct Known Subclasses:

    public abstract class AbstractFixedVirtualizedBaseRelativeReference<TARGET extends IPropCnr>
    extends FixedVirtualizedAbstractReference<TARGET>
    The Base Relative Reference property class hold the reference to another property in the same base container. The reference is fixed when it's

    When virtualizing this property reference, the referenced target from the original is "burned in" as a fixed value for the virtualized copy. This class is typically used for references that cannot be modified dynamically, e.g. a data connector,

    This relative referencing can be done with acceptance of different types of classes. When constructing the relative reference, the PropCnr must be set.

    Christopher Mindus
    • Constructor Detail

      • AbstractFixedVirtualizedBaseRelativeReference

        protected AbstractFixedVirtualizedBaseRelativeReference()
        Creates a Base Relative Reference property with no name and with a null value.
      • AbstractFixedVirtualizedBaseRelativeReference

        public AbstractFixedVirtualizedBaseRelativeReference​(Atom propertyAtom)
        Creates a Base Relative Reference property with the specified name with a null value.
        propertyAtom - the property atom.
      • AbstractFixedVirtualizedBaseRelativeReference

        public AbstractFixedVirtualizedBaseRelativeReference​(Atom propertyAtom,
                                                             java.lang.String newValue)
        Creates a Base Relative Reference property with the specified name and value.
        propertyAtom - the property atom.
        newValue - the new string value for the property.
    • Method Detail

      • doPostResolve

        protected boolean doPostResolve()
        Returns if resolving of this reference should be done in post- (true) or pre-stage (false).
        doPostResolve in class AbstractReference<TARGET extends IPropCnr>
        true by default, i.e. in post-mode once main references are resolved.
      • getLookupPropReference

        protected java.lang.String getLookupPropReference​(ReferenceString name)
        Creates the reference string to look-up from the ReferenceString. Override this method for e.g. Base or Fixed Relative referencing.
        getLookupPropReference in class AbstractReference<TARGET extends IPropCnr>
        name - The reference name.
        The property reference string to look-up.
      • setLookedUpReference

        protected java.lang.String setLookedUpReference​(java.lang.String name)
        Sets the reference found that also has been validated. This method gives the opportunity for a subclass to remove e.g. the Base or Fixed Relative reference from the string start.
        setLookedUpReference in class AbstractReference<TARGET extends IPropCnr>
        name - The full reference.
        The reference to set in this property as ReferenceString.
      • validateReferenceScope

        protected java.lang.String validateReferenceScope​(TARGET property)
        Called when the a property container has been renamed or moved in order to perform validation of the reference, e.g. if a base property has been moved out of scope. The implementor can assign or clear property errors by returning the error string.
        validateReferenceScope in class AbstractReference<TARGET extends IPropCnr>
        property - Property to validate the scope of, i.e. the referenced property.
        The error message, or null for valid. Default implementation returns null.
      • getScopeErrorMessage

        protected java.lang.String getScopeErrorMessage()
        Gets the error message when the base container doesn't validate scope. Override to produce a better error message for the specialized reference implementation.
        "Target reference is not a child of the base property container".