Package com.iizix.prop.vs
Class VSAnnotationReferenceProcessor
java.lang.Object
com.iizix.prop.vs.VSAnnotationReferenceProcessor
- All Implemented Interfaces:
IAnnotationReferenceProcessor<VirtualSpace,
VSComponent>
public class VSAnnotationReferenceProcessor extends Object implements IAnnotationReferenceProcessor<VirtualSpace,VSComponent>
The VS reference processor used for the @VSRef annotation.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptiongetReferencePath
(GProp<?> comp) Returns the relative reference path of a component.Returns the class for the scope reference.resolveReference
(GProp<?> scope, String relativeReference) Resolves a reference name to a UI component.
Constructor Details
VSAnnotationReferenceProcessor
public VSAnnotationReferenceProcessor()
Method Details
getScopeClass
Returns the class for the scope reference.- Specified by:
getScopeClass
in interfaceIAnnotationReferenceProcessor<VirtualSpace,
VSComponent> - Returns:
- VirtualSpace.class.
resolveReference
public VSComponent resolveReference(GProp<?> scope, String relativeReference) throws PropTypeException, NotFoundException Resolves a reference name to a UI component.- Specified by:
resolveReference
in interfaceIAnnotationReferenceProcessor<VirtualSpace,
VSComponent> - Parameters:
scope
- The panel in scope, should be instance of UIPanelBase.relativeReference
- The relative name from the panel.- Returns:
- The component found, never null.
- Throws:
PropTypeException
- If the property is not found or if the property is of wrong type.NotFoundException
- If the component is not found.
getReferencePath
Returns the relative reference path of a component.- Specified by:
getReferencePath
in interfaceIAnnotationReferenceProcessor<VirtualSpace,
VSComponent> - Parameters:
comp
- The component.- Returns:
- The path.
- Throws:
IllegalStateException
- If the tree is invalid.PropTypeException
- If the property type is invalid.