Package com.iizix.text
Class KStringHolder.TagReference<TARGET>
java.lang.Object
com.iizix.text.KStringHolder.TagReference<TARGET>
- All Implemented Interfaces:
- EventListener,- IPropReference,- IPropReference2
- Enclosing class:
- KStringHolder
Class that holds and maintains the reference for a tag.
- Nested Class Summary- Nested classes/interfaces inherited from interface com.iizix.prop.IPropReference- IPropReference.IRefType, IPropReference.ReferenceChangeEvent, IPropReference.RefType
- Method SummaryModifier and TypeMethodDescriptionGets the reference Type.Gets the target reference also trying to resolve the reference, i.e.- boolean- isReferenceValid- (GProp<?> property) Validates the property reference that has been looked up.- boolean- isValid()Checks if the resolving of the reference is valid with the automatic resolving mechanism.- voidCalled to process an event.- void- onReferenceEvent- (PropReference ref, IPropReference.ReferenceChangeEvent event, GEvent triggerEvent) Called when a property reference event occurs.
- Method Details- onReferenceEventpublic void onReferenceEvent- (PropReference ref, IPropReference.ReferenceChangeEvent event, GEvent triggerEvent) Called when a property reference event occurs. The events are ReferenceChangeEvent.FOUND, FOUND_WRONG_CLASS, RENAMED, MOVED, NEW_PROPERTY, BROKEN.- Trigger GEvent's are: PROP_RENAMED, PROP_CNR_RENAMED or PROP_PROJECT_RENAMED for "RENAMED", PROP_DISPOSED for DISPOSED. The PROP_RESOLVE_REFERENCES can sometimes cause the trigger event to be set. - Specified by:
- onReferenceEventin interface- IPropReference
- Parameters:
- ref- The property reference object.
- event- The event.
- triggerEvent- The event that triggered this reference event, null for none.
 
- isReferenceValidValidates the property reference that has been looked up.- Specified by:
- isReferenceValidin interface- IPropReference
- Parameters:
- property- The property to validate.
- Returns:
- true if valid, false otherwise.
 
- getReferenceTypeGets the reference Type.- Specified by:
- getReferenceTypein interface- IPropReference
- Returns:
- The reference type, generally a value from the enum IPropReference.RefType, otherwise a static final implementation of the reference type with locale support.
 
- isValidpublic boolean isValid()Checks if the resolving of the reference is valid with the automatic resolving mechanism.- Returns:
- true if the reference is valid, false otherwise.
 
- getTargetReferenceGets the target reference also trying to resolve the reference, i.e. using automatic resolving mechanism.- Returns:
- The target reference instance, or nullif not found.
 
- onEventCalled to process an event.- Specified by:
- onEventin interface- EventListener
- Parameters:
- event- The event.